Partner API
List child organisations owned by the authenticated partner. Deleted organisations are excluded by default.
500falseOrganisations listed.
Missing, malformed, disabled, deleted, or non-partner API key.
Internal Server Error.
GET /partner/v1/organisations HTTP/1.1
Host: api.gospace.app
x-api-key: YOUR_API_KEY
Accept: */*
{
"success": true,
"identifier": "partner_organisations_listed",
"data": [
{
"organisation_id": "65f1a7a8260c3f3322a0e1b9",
"organisation_key": "prod_123456789abc",
"organisation_name": "Example Child Organisation",
"country": "GB",
"division_key": "1c3906b5-d770-4d82-9d0c-c22f1c12e6aa",
"deleted_at": "2026-01-01T00:00:00.000Z",
"partner_external_id": "customer-12345",
"created_at": "2026-01-01T00:00:00.000Z",
"updated_at": "2026-01-01T00:00:00.000Z"
}
]
}Create a child organisation owned by the authenticated partner. The response includes one newly generated standard organisation API key. Use that child organisation API key for data writes into the child organisation.
Example Child OrganisationISO 3166-1 alpha-2 country code.
GBEurope/LondonOptional name for the initial division. Defaults to organisation_name.
HeadquartersOptional partner-side identifier for this organisation.
customer-12345Organisation created.
Bad Request - Invalid request body.
Missing, malformed, disabled, deleted, or non-partner API key.
Internal Server Error.
POST /partner/v1/organisations HTTP/1.1
Host: api.gospace.app
x-api-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 171
{
"organisation_name": "Example Child Organisation",
"country": "GB",
"division_timezone": "Europe/London",
"division_name": "Headquarters",
"partner_external_id": "customer-12345"
}{
"success": true,
"identifier": "partner_organisation_created",
"data": {
"organisation_id": "65f1a7a8260c3f3322a0e1b9",
"organisation_key": "prod_123456789abc",
"organisation_name": "Example Child Organisation",
"country": "GB",
"division_key": "1c3906b5-d770-4d82-9d0c-c22f1c12e6aa",
"deleted_at": null,
"partner_external_id": "customer-12345",
"created_at": "2026-04-22T09:00:00.000Z",
"updated_at": "2026-04-22T09:00:00.000Z",
"organisation_api_key": "prod_123456789abc.gb.1c3906b5-d770-4d82-9d0c-c22f1c12e6aa.4f9f2d80-0de8-478f-a55d-2f3376fe7a8b"
}
}Retrieve one child organisation by MongoDB organisation ID. Organisations not owned by the authenticated partner are rejected.
^[a-f\\d]{24}$falseOrganisation found.
Missing, malformed, disabled, deleted, or non-partner API key.
Organisation not found or not owned by the authenticated partner.
Internal Server Error.
GET /partner/v1/organisations/{organisation_id} HTTP/1.1
Host: api.gospace.app
x-api-key: YOUR_API_KEY
Accept: */*
{
"success": true,
"identifier": "partner_organisation_found",
"data": {
"organisation_id": "65f1a7a8260c3f3322a0e1b9",
"organisation_key": "prod_123456789abc",
"organisation_name": "Example Child Organisation",
"country": "GB",
"division_key": "1c3906b5-d770-4d82-9d0c-c22f1c12e6aa",
"deleted_at": "2026-01-01T00:00:00.000Z",
"partner_external_id": "customer-12345",
"created_at": "2026-01-01T00:00:00.000Z",
"updated_at": "2026-01-01T00:00:00.000Z"
}
}Soft-delete an owned child organisation and revoke its organisation API keys. If the deleted target is itself a partner organisation, child organisations linked to that partner are also soft-deleted and their keys revoked.
^[a-f\\d]{24}$Organisation deleted.
Missing, malformed, disabled, deleted, or non-partner API key.
Organisation not found or not owned by the authenticated partner.
Internal Server Error.
DELETE /partner/v1/organisations/{organisation_id} HTTP/1.1
Host: api.gospace.app
x-api-key: YOUR_API_KEY
Accept: */*
{
"success": true,
"identifier": "partner_organisation_deleted",
"data": {
"organisation_ids": [
"text"
]
}
}Update safe partner-facing organisation metadata only. Fields such as country, location, shard_key, organisation_key, divisions, is_partner, and ownership fields cannot be updated through this API.
^[a-f\\d]{24}$Organisation updated.
Bad Request - Invalid request body.
Missing, malformed, disabled, deleted, or non-partner API key.
Organisation not found or not owned by the authenticated partner.
Internal Server Error.
PATCH /partner/v1/organisations/{organisation_id} HTTP/1.1
Host: api.gospace.app
x-api-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 97
{
"organisation_name": "Updated Child Organisation",
"partner_external_id": "customer-12345-updated"
}{
"success": true,
"identifier": "partner_organisation_updated",
"data": {
"organisation_id": "65f1a7a8260c3f3322a0e1b9",
"organisation_key": "prod_123456789abc",
"organisation_name": "Example Child Organisation",
"country": "GB",
"division_key": "1c3906b5-d770-4d82-9d0c-c22f1c12e6aa",
"deleted_at": "2026-01-01T00:00:00.000Z",
"partner_external_id": "customer-12345",
"created_at": "2026-01-01T00:00:00.000Z",
"updated_at": "2026-01-01T00:00:00.000Z"
}
}Retrieve storage and API request usage for an owned child organisation for a single month. Monthly totals are returned when available; otherwise daily storage and API usage records are aggregated.
^[a-f\\d]{24}$2026-04Pattern: ^\\d{4}-\\d{2}$Usage found.
Bad Request - Invalid usage month.
Missing, malformed, disabled, deleted, or non-partner API key.
Organisation not found or not owned by the authenticated partner.
Internal Server Error.
GET /partner/v1/organisations/{organisation_id}/usage?usage_month=2026-04 HTTP/1.1
Host: api.gospace.app
x-api-key: YOUR_API_KEY
Accept: */*
{
"success": true,
"identifier": "partner_organisation_usage_found",
"data": {
"organisation_id": "text",
"organisation_key": "text",
"usage_month": "2026-04",
"timezone": "UTC",
"total_bytes": 0,
"total_documents": 0,
"days_recorded": 0,
"peak_total_bytes": 0,
"peak_total_documents": 0,
"total_requests": 0,
"api_days_recorded": 0,
"peak_total_requests": 0
}
}Last updated