API Keys API — Agentuity Documentation

API Keys API

Create and manage API keys for authentication

Create and manage API keys for authentication.

https://catalyst-usw.agentuity.cloud

Authentication

All requests require a Bearer token. Pass your SDK key in the Authorization header.

HeaderValue
AuthorizationBearer YOUR_SDK_KEY

You can find your SDK key in the Agentuity Console under your project settings.


Create API Key

Create a new API key. The key value is only returned at creation time.

POST/cli/apikey
https://catalyst-usw.agentuity.cloud/cli/apikey

Request Body

API key creation payload.

FieldTypeDescription
namestringName of the API key
expiresAtstringExpiration timestamp for the API key
projectIdstring | nullOptional project scope for the key (optional)
orgIdstring | nullOptional organization scope for the key (optional)

Response

Returns the new key ID and value. The value is only returned at creation time.

StatusDescription
201API key created
401Unauthorized — invalid or missing Bearer token

Response Fields

FieldTypeDescription
idstringthe API key id
valuestringthe API key value

Example

curl -X POST 'https://catalyst-usw.agentuity.cloud/cli/apikey' \
  -H 'Authorization: Bearer $AGENTUITY_SDK_KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "name": "My API Key",
  "expiresAt": "2026-12-31T23:59:59Z"
}'

List API Keys

List API keys with optional filtering by organization or project.

GET/cli/apikey
https://catalyst-usw.agentuity.cloud/cli/apikey

Parameters

query
NameTypeRequiredDescription
orgIdstringNoFilter by organization ID
projectIdstringNoFilter by project ID

Response

Array of API key objects.

StatusDescription
200API keys returned
401Unauthorized — invalid or missing Bearer token

Response Fields

FieldTypeDescription
idstringthe API key id
namestringthe API key name
orgIdstringthe organization id
typestringthe API key type
expiresAtstring | nullthe expiration date
lastUsedAtstring | nullthe last used date (optional)
createdAtstringthe creation date
projectobject | nullthe associated project (optional)

Example

curl -X GET 'https://catalyst-usw.agentuity.cloud/cli/apikey' \
  -H 'Authorization: Bearer $AGENTUITY_SDK_KEY'

Get API Key

Get a specific API key by ID.

GET/cli/apikey/{id}
https://catalyst-usw.agentuity.cloud/cli/apikey/{id}

Parameters

path
NameTypeRequiredDescription
idstringYesAPI key ID

Response

API key object.

StatusDescription
200API key returned
401Unauthorized — invalid or missing Bearer token
404API key not found

Example

curl -X GET 'https://catalyst-usw.agentuity.cloud/cli/apikey/ak_abc123' \
  -H 'Authorization: Bearer $AGENTUITY_SDK_KEY'

Delete API Key

Delete an API key by ID.

DELETE/cli/apikey/{id}
https://catalyst-usw.agentuity.cloud/cli/apikey/{id}

Parameters

path
NameTypeRequiredDescription
idstringYesAPI key ID

Response

Empty response on success.

StatusDescription
204API key deleted
401Unauthorized — invalid or missing Bearer token
404API key not found

Example

curl -X DELETE 'https://catalyst-usw.agentuity.cloud/cli/apikey/ak_abc123' \
  -H 'Authorization: Bearer $AGENTUITY_SDK_KEY'