Organization settings

Revoke one of my connected apps or CLI logins

Sign out one of the calling person's own connections, for example a lost laptop. Revoking a CLI login ends it in every organization. Another person's connection is answered 404. Every role may end its own connections. From a dashboard session or the person's Primitive CLI any of them; any other app the person connected may end only its own connection (403 otherwise).

Person only: a dashboard session or the person's own OAuth token (the CLI or an app they connected). API keys, agent connection keys and agents are refused.

post/me/grants/{id}/revoke

Request

  • Base URL
    https://api.primitive.dev/v1
  • URL
    https://api.primitive.dev/v1/me/grants/{id}/revoke
  • Auth
    HTTP bearer

Path parameters

idstring required

The connection id from listMyGrants.

Headers

Idempotency-Keystring

Optional client-supplied idempotency key. Retrying a request with the same key returns the original result instead of performing the action a second time; if omitted the server derives one from the canonical payload hash. Safe to retry network failures without duplicating side effects.

Request body

kind'oauth' | 'cli_login' required

Response

Success

successtrue required

Changes

No operation changes recorded.