API Keys

Operations related to API keys (generate and revoke your Enterprise X-Api-Key).

List Enterprise API Keys

GET
https://api.prompteasy.eu/v1/api-keys

Response

List of API keys

Response fields application/json
Show child attributes
idinteger
Example
1
servicestring
Example
my-production-backend
urlsstring | null
Example
https://tenant.com,https://app.tenant.com
created_atstring<date-time>
updated_atstring<date-time>
403Forbidden

Forbidden

Authorization

ApiKeyAuthapiKey in header
BearerAuthhttp (bearer)

Create a new Enterprise API Key

POST
https://api.prompteasy.eu/v1/api-keys

Body

application/json
servicestringrequired
Example
my-production-backend
urlsstring | null

Comma-separated list of allowed origin URLs where the API key can be used via browser

Example
https://tenant.com,https://app.tenant.com

Response

201CreatedApiKeyWithToken

API key created successfully

Response fields application/json
idinteger
Example
1
servicestring
Example
my-production-backend
urlsstring | null
Example
https://tenant.com,https://app.tenant.com
tokenstring
Example
pe_abcdef1234567890abcdef1234567890abcdef12
created_atstring<date-time>
updated_atstring<date-time>
403Forbidden

Forbidden

Authorization

ApiKeyAuthapiKey in header
BearerAuthhttp (bearer)

Revoke an Enterprise API Key

DELETE
https://api.prompteasy.eu/v1/api-keys/{apiKey}

Parameters

apiKeyintegerrequiredpath

Response

200OKobject

API key revoked successfully

Response fields application/json
messagestring
Example
API key revoked.
403Forbidden

Forbidden

Authorization

ApiKeyAuthapiKey in header
BearerAuthhttp (bearer)