organization:query

Description: Retrieve a single organization by ID.


Request Schema

{
  "payload": {
    "type": "organization:query",
    "import_id": "IMPORT_ID_TO_FIND"
  },
  "signature": "payload_ed25519_hex_signature",
  "source_public_key": "your_client_public_key"
}

Request Attributes

See global request attributes

Possible find attributes (one or both, first record matching used for find):

  1. payload.id - Integer - The organization’s internal Arkipel ID
  2. payload.import_id - String - External organization reference

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": {
    "type": "organization:query",
    "resource": {
      "id": 1,
      "name": "Food Bank",
      "import_id": "FL0001",
      "status": "active",
      "category": { "name": "Food", "name_fr": "Alimentation", "name_en": "Food" },
      "locale": "fr",
      "note": "Lorem Ipsum\ndolor sit amet.",
      "contact_informations": [
        { "type": "Email", "label": "Office", "info": "info@foodbank.org", "main": true }
      ],
      "addresses": [
        {
          "name": "Office",
          "street1": "259 Wellington St. W",
          "city": "Toronto",
          "zip": "M5V 3P9",
          "region_code": "ON",
          "country_code": "CA",
          "main": true
        }
      ],
      "collaborations": [
        { "organization": { "id": 1, "name": "Food Bank" }, "person": { "id": 2, "first_name": "Jane", "last_name": "Doe" }, "main": true, "title": "Director" }
      ],
      "tags": ["partner"],
      "created_at": "2026-11-13T20:52:49Z",
      "updated_at": "2026-11-13T20:52:49Z"
    }
  }
}

The resource contains the full organization record, including nested addresses, contact_informations, collaborations (with the linked people), category and tags.

Errors

When no organization matches, the response uses the HTTP 404 status and includes an error message (see Error Handling):

{
  "payload": { "type": "organization:query" },
  "error": "Organization not found for id: 1 or import_id: IMPORT_ID_TO_FIND",
  "status": "not_found"
}