distribution_templates:query

Description: Retrieve a list of distribution templates.


Request Schema

{
  "payload": {
    "type": "distribution_templates:query",
    "q": {
      "per_page": 10,
      "page": 1,
      "name_cont": "Din"
    }
  },
  "signature": "payload_ed25519_hex_signature",
  "source_public_key": "your_client_public_key"
}

Request Attributes

Response Schema

{
  "source_public_key": "community_public_key",
  "source_site": {
    "protocol": "http",
    "fqdn": "arkipel.localhost:3000"
  },
  "created_at": "2025-11-13T20:52:49Z",
  "signature": "8b6392d5550605bd6ccddf9c21ebec470de4b44e4b4deb746076e37ab61c5346e07e7c7c7cebb5bbee41cdd92a476bcd3f02373d146ec165b31c31fc31c9ce0d",
  "payload": {
    "q": {
      "per_page": 10,
      "page": 1,
      "total": 10
    },
    "resources": [
      {
        "id": 1,
        "name": "Déjeuner + Dîner + Souper",
        "lines": [
          {
            "variant_id": 22450,
            "name": "Déjeuner",
            "quantity": 1
          },
          {
            "variant_id": 22451,
            "name": "Dîner",
            "quantity": 1
          },
          {
            "variant_id": 22452,
            "name": "Souper",
            "quantity": 1
          }
        ]
      },
      { ... }
    ],
    "type": "distribution_templates:query"
  }
}