Skip to Content
The Ngamia platform API is in preview. Endpoints may change before general availability.
API referenceWorkspace

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

FieldTypeRequiredNotes
workspaceobject
youobject

Responses

StatusMeaning
200The workspace of the credential
401Missing, invalid, expired or revoked credential (unauthorized).
403The 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)

FieldTypeRequiredNotes
namestringmin length 1, max length 128
default_modelstring or nullmax length 200
model_api_keystring 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

FieldTypeRequiredNotes
workspaceobject

Responses

StatusMeaning
200Updated
400The request is invalid (invalid_request).
403The role or key scope does not allow this (forbidden).
Last updated on