organizations:query
Description: Retrieve a list of organizations.
Request Schema
{
"payload": {
"type": "organizations:query",
"q": {
"per_page": 10,
"page": 1,
"name_cont": "food"
}
},
"signature": "payload_ed25519_hex_signature",
"source_public_key": "your_client_public_key"
}
Request Attributes
- See global request attributes
- See search request attributes, and:
-
payload.q.name_cont- String - Organizations containing a given string inname -
payload.q.import_id_eq- String - Organizations with the given external reference -
payload.q.category_id_eq- Integer - Organizations in the given category (seeorganization_categories:query) -
payload.q.status_eq- String - Organizations with the givenstatus(wizard,active,inactive)
Only real organizations are returned: households, wizard records and discarded records are excluded.
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": 2
},
"resources": [
{
"id": 1,
"name": "Food Bank",
"import_id": "FL0001",
"status": "active",
"category": { "name": "Food", "name_fr": "Alimentation", "name_en": "Food" },
"addresses": [ ... ],
"contact_informations": [ ... ],
"collaborations": [ ... ],
"tags": ["partner"]
},
{ "id": 2, "name": "Community Center", ... }
],
"type": "organizations:query"
}
}
Each resource is the full organization record, including nested addresses, contact_informations, collaborations, category and tags.
Errors
Invalid filters or values return the HTTP 400 status and include an error message (see Error Handling).
Related Messages
-
organization:query- Retrieve a single organization -
organizations:upsert- Create or update organizations -
organization:delete- Delete a single organization -
households:query- Query households (same response convention)