Workspace
Read and change the workspace your credential belongs to, including its model key.
Get the workspace and who I am
GET /v1/workspace
curl -X GET https://api.ngamia.com/v1/workspace \
-H "Authorization: Bearer $NGAMIA_TOKEN"Response 200 fields
| Field | Type | Required | Notes |
|---|---|---|---|
workspace | object | ||
you | object |
Responses
| Status | Meaning |
|---|---|
200 | The workspace of the credential |
401 | Missing, invalid, expired or revoked credential (unauthorized). |
403 | The person is not a member of this workspace (not_a_member) or was removed (forbidden). |
Change workspace settings (admin)
PATCH /v1/workspace
model_api_key is the workspace’s key for the Ngamia model gateway;
agents cannot run until it is set. It is stored encrypted and never
returned (see model_key_configured). Send null to clear a field.
Request body (application/json)
| Field | Type | Required | Notes |
|---|---|---|---|
name | string | min length 1, max length 128 | |
default_model | string or null | max length 200 | |
model_api_key | string or null |
curl -X PATCH https://api.ngamia.com/v1/workspace \
-H "Authorization: Bearer $NGAMIA_TOKEN" \
-H 'content-type: application/json' \
-d '{}'Response 200 fields
| Field | Type | Required | Notes |
|---|---|---|---|
workspace | object |
Responses
| Status | Meaning |
|---|---|
200 | Updated |
400 | The request is invalid (invalid_request). |
403 | The role or key scope does not allow this (forbidden). |
Last updated on