API keys operations

Mint and manage API keys.

Each operation below is reachable at POST /v1/op/{operation_id} or the resource path POST /v1/{resource}/{action}, with a Bearer token (a gpra_ API key or a session token). Back to the Operations Reference index.

api_keys.create

Mint an organization API key (the secret is returned once).

Scopeapi_keys:write
Side-effectexport
HTTPPOST /v1/op/api_keys.create · POST /v1/api_keys/create
Python / TypeScriptclient.api_keys.create(…)
CLIgeopera api-keys create …

RequestApiKeyCreateInput

FieldTypeRequiredDescription
namestringyes
permissionsarray of string
rate_limitinteger
expires_in_daysinteger

ResponseApiKeyCreateOutput.

api_keys.list

List an organization’s API keys (metadata only — never the secret).

Scopeapi_keys:read
Side-effectread
HTTPPOST /v1/op/api_keys.list · POST /v1/api_keys/list
Python / TypeScriptclient.api_keys.list(…)
CLIgeopera api-keys list …

RequestApiKeyListInput (see the OpenAPI schema for fields).

Response — a streaming or binary payload (NDJSON / file / tile). Call the HTTP endpoint directly; the JSON SDK return does not apply.

api_keys.revoke

Revoke an organization API key.

Scopeapi_keys:write
Side-effectdestructive
HTTPPOST /v1/op/api_keys.revoke · POST /v1/api_keys/revoke
Python / TypeScriptclient.api_keys.revoke(…)
CLIgeopera api-keys revoke …

RequestApiKeyRevokeInput

FieldTypeRequiredDescription
key_idstringyes

ResponseApiKeyRevokeOutput.