API Reference
Get Organization
Fetch a single organisation's full record, including plan, owner, member count, and active feature flags. Caller must be a member.
GET/organizations/{org_id}
Authentication
Accepts a JWT bearer token (Authorization: Bearer eyJ…) or an API key (X-API-Key: ms_live_…). API-key callers should send X-Project-ID unless the key is project-locked. Cross-tenant operators must send X-Tenant-ID.
Path parameters
| Field | Type | Required | Description |
|---|---|---|---|
org_id | integer | required | Organisation id. |
Response
Returns 200 OK with the following body.
| Field | Type | Required | Description |
|---|---|---|---|
id | integer | optional | Organisation id. |
name | string | optional | Display name. |
slug | string | optional | URL slug. |
plan | string | optional | Plan tier. |
owner_user_id | integer | optional | Owner user id. |
member_count | integer | optional | Total active members. |
features | object | optional | Feature flag map. |
created_at | string | optional | RFC 3339 UTC. |
200.json
{"id": 12,"name": "Acme Robotics","slug": "acme-robotics","plan": "pro","owner_user_id": 42,"member_count": 14,"features": {"sso": true,"scim": true,"audit_export": true},"created_at": "2026-05-04T12:30:11Z"}
Errors
| Status | Code | Description |
|---|---|---|
| 400 | validation_error | Body or query failed schema validation. The error includes the offending field name. |
| 401 | unauthenticated | Missing or invalid bearer token / API key. |
| 403 | forbidden | Authenticated principal lacks the required scope, role, or project access. |
| 404 | not_found | Target resource does not exist or is not visible to the calling tenant. |
| 429 | rate_limited | Per-IP or per-route limit exceeded. Respect the Retry-After header. |
| 500 | internal_error | Unhandled server error. Quote the request_id when contacting support. |
Examples
cURL
curl -X GET https://api.memorysync.io/organizations/EXAMPLE_ID \-H "Authorization: Bearer $MEMORYSYNC_KEY"
javascript
import { MemorySync } from 'memorysync'const client = new MemorySync({ apiKey: process.env.MEMORYSYNC_KEY })const result = await client.request({method: 'GET',path: '/organizations/EXAMPLE_ID',})console.log(result)
python
from memorysync import Clientclient = Client(api_key=os.environ["MEMORYSYNC_KEY"])result = client.request(method="GET",path="/organizations/EXAMPLE_ID",)print(result)
Behavior & notes
Idempotent through Idempotency-Key on writes. Replays within 24h return the original response unchanged.