Skip to content
400 Bad Request Request error

Invalid acting context

errorCode: ERR-0107

What it means

An API key can act under a space or a project, never both at the same time.

What you can do

Check the request against the message and try again.

Example response

application/problem+json
{
  "type": "https://docs.atlas.ilionx.dev/errors/ERR-0107",  "title": "Bad Request",  "status": 400,  "detail": "An API key can act under a space or a project, never both at the same time.",  "instance": "/v1/…",  "errorCode": "ERR-0107"}

Branch on errorCode, not on detail: the code is stable, the wording may change.