Coelevate Documentation
API ReferenceContext Repository

Get the project this key belongs to

Returns the identity of the project the calling key resolves to: its id and the environment that serves it.

GET /context/v1/project

Returns the identity of the project the calling key resolves to: its id and the environment that serves it. Call it before writing to confirm the key points at the project you intend. It takes no parameters and returns nothing about any other project.

Requires the context:read scope.

Responses

StatusMeaning
200The request succeeded.
401The token is missing, expired or invalid.
403The token does not carry the scope this operation requires.
404No such project, or the token belongs to a different project.

The 200 response body:

FieldTypeRequiredDescription
environmentstringyesThe environment serving this project, such as staging or demo.
project_idstringyesThe id of the project the key belongs to.

Example

curl -sS "$API_URL/context/v1/project" \
  -H "Authorization: Bearer $TOKEN"

On this page