Skip to main content

HTTP API reference › Gala Launchpad › api-keys

Gala Launchpad — api-keys

5 operations in this group.

GET /v1/api-keys​

ApiKeyController_findAll

List API keys

List all API keys for the authenticated user

Authentication: apiKeyAuth, bearer

Responses​

200 — Cursor-paginated API key metadata. Raw keys are never returned.​

Content type: application/json

Schema: ApiSuccessEnvelopeMetadataDto & object

FieldTypeRequiredDescription
errorboolean enum: falseyesSuccessful response marker.
messagestringyesResponse message.
statusnumberyesHTTP status code.
dataApiKeyListResponseDtoyes

401 — Unauthorized - missing or invalid JWT or API key​

Content type: application/json

Schema: ApiErrorResponseDto

FieldTypeRequiredDescription
codestringnoOptional machine-readable error code.
messagestringyesError message.
statusCodenumberyesHTTP status code.

500 — Internal server error - failed to retrieve API keys from database​

Content type: application/json

Schema: ApiErrorResponseDto

FieldTypeRequiredDescription
codestringnoOptional machine-readable error code.
messagestringyesError message.
statusCodenumberyesHTTP status code.

default — Shared error envelope returned by the application exception filter.​

Content type: application/json

Schema: ApiErrorEnvelope

FieldTypeRequiredDescription
errorboolean enum: trueyes
messageoneOf: string | array<string>yes
statusintegeryesHTTP status code.
messagestringyes
statusCodeintegeryesHTTP status code.

Example response​

[]

POST /v1/api-keys​

ApiKeyController_create

Create API key

Create a new API key (raw key returned only once)

Authentication: apiKeyAuth, bearer

Responses​

200 — API key created successfully. The raw key is returned only once.​

Content type: application/json

Schema: ApiSuccessEnvelopeMetadataDto & object

FieldTypeRequiredDescription
errorboolean enum: falseyesSuccessful response marker.
messagestringyesResponse message.
statusnumberyesHTTP status code.
dataCreateApiKeyResponseDtoyes

400 — Bad request - role is invalid (MODERATOR/TECHNICAL_PRODUCER/MANAGER/OWNER), expiresAt not valid ISO 8601, or token names invalid​

Content type: application/json

Schema: ApiErrorResponseDto

FieldTypeRequiredDescription
codestringnoOptional machine-readable error code.
messagestringyesError message.
statusCodenumberyesHTTP status code.

401 — Unauthorized - missing or invalid JWT or API key​

Content type: application/json

Schema: ApiErrorResponseDto

FieldTypeRequiredDescription
codestringnoOptional machine-readable error code.
messagestringyesError message.
statusCodenumberyesHTTP status code.

500 — Internal server error - failed to create API key in database​

Content type: application/json

Schema: ApiErrorResponseDto

FieldTypeRequiredDescription
codestringnoOptional machine-readable error code.
messagestringyesError message.
statusCodenumberyesHTTP status code.

default — Shared error envelope returned by the application exception filter.​

Content type: application/json

Schema: ApiErrorEnvelope

FieldTypeRequiredDescription
errorboolean enum: trueyes
messageoneOf: string | array<string>yes
statusintegeryesHTTP status code.
messagestringyes
statusCodeintegeryesHTTP status code.

Example response​

[]

GET /v1/api-keys/&#123;id&#125;​

ApiKeyController_findOne

Get API key

Get a single API key by ID

Authentication: apiKeyAuth, bearer

Parameters​

NameInRequiredTypeDescription
idpathrequiredstring

Responses​

200 — API key metadata without the raw key or stored key hash.​

Content type: application/json

Schema: ApiSuccessEnvelopeMetadataDto & object

FieldTypeRequiredDescription
errorboolean enum: falseyesSuccessful response marker.
messagestringyesResponse message.
statusnumberyesHTTP status code.
dataApiKeyResponseDtoyes

401 — Unauthorized - missing or invalid JWT or API key​

Content type: application/json

Schema: ApiErrorResponseDto

FieldTypeRequiredDescription
codestringnoOptional machine-readable error code.
messagestringyesError message.
statusCodenumberyesHTTP status code.

403 — Forbidden - user is not the API key owner​

Content type: application/json

Schema: ApiErrorResponseDto

FieldTypeRequiredDescription
codestringnoOptional machine-readable error code.
messagestringyesError message.
statusCodenumberyesHTTP status code.

404 — API key not found - id parameter does not match any existing key​

Content type: application/json

Schema: ApiErrorResponseDto

FieldTypeRequiredDescription
codestringnoOptional machine-readable error code.
messagestringyesError message.
statusCodenumberyesHTTP status code.

500 — Internal server error - failed to retrieve API key from database​

Content type: application/json

Schema: ApiErrorResponseDto

FieldTypeRequiredDescription
codestringnoOptional machine-readable error code.
messagestringyesError message.
statusCodenumberyesHTTP status code.

default — Shared error envelope returned by the application exception filter.​

Content type: application/json

Schema: ApiErrorEnvelope

FieldTypeRequiredDescription
errorboolean enum: trueyes
messageoneOf: string | array<string>yes
statusintegeryesHTTP status code.
messagestringyes
statusCodeintegeryesHTTP status code.

Example response​

[]

DELETE /v1/api-keys/&#123;id&#125;​

ApiKeyController_revoke

Revoke API key

Revoke an API key (soft delete)

Authentication: apiKeyAuth, bearer

Parameters​

NameInRequiredTypeDescription
idpathrequiredstring

Responses​

200 — API key revoked; the success envelope has no JSON data field.​

Content type: application/json

Schema: ApiSuccessEnvelopeMetadataDto

FieldTypeRequiredDescription
errorboolean enum: falseyesSuccessful response marker.
messagestringyesResponse message.
statusnumberyesHTTP status code.

401 — Unauthorized - missing or invalid JWT or API key​

Content type: application/json

Schema: ApiErrorResponseDto

FieldTypeRequiredDescription
codestringnoOptional machine-readable error code.
messagestringyesError message.
statusCodenumberyesHTTP status code.

403 — Forbidden - user is not the API key owner​

Content type: application/json

Schema: ApiErrorResponseDto

FieldTypeRequiredDescription
codestringnoOptional machine-readable error code.
messagestringyesError message.
statusCodenumberyesHTTP status code.

404 — API key not found - id parameter does not match any existing key​

Content type: application/json

Schema: ApiErrorResponseDto

FieldTypeRequiredDescription
codestringnoOptional machine-readable error code.
messagestringyesError message.
statusCodenumberyesHTTP status code.

500 — Internal server error - failed to revoke API key in database​

Content type: application/json

Schema: ApiErrorResponseDto

FieldTypeRequiredDescription
codestringnoOptional machine-readable error code.
messagestringyesError message.
statusCodenumberyesHTTP status code.

default — Shared error envelope returned by the application exception filter.​

Content type: application/json

Schema: ApiErrorEnvelope

FieldTypeRequiredDescription
errorboolean enum: trueyes
messageoneOf: string | array<string>yes
statusintegeryesHTTP status code.
messagestringyes
statusCodeintegeryesHTTP status code.

Example response​

[]

PATCH /v1/api-keys/&#123;id&#125;​

ApiKeyController_update

Update API key

Update API key metadata and permissions

Authentication: apiKeyAuth, bearer

Parameters​

NameInRequiredTypeDescription
idpathrequiredstring

Responses​

200 — Serialized API key model returned by the current controller implementation.​

Content type: application/json

Schema: ApiSuccessEnvelopeMetadataDto & object

FieldTypeRequiredDescription
errorboolean enum: falseyesSuccessful response marker.
messagestringyesResponse message.
statusnumberyesHTTP status code.
dataApiKeyModelResponseDtoyes

400 — Bad request - role is invalid, expiresAt not valid ISO 8601, or token names not found​

Content type: application/json

Schema: ApiErrorResponseDto

FieldTypeRequiredDescription
codestringnoOptional machine-readable error code.
messagestringyesError message.
statusCodenumberyesHTTP status code.

401 — Unauthorized - missing or invalid JWT or API key​

Content type: application/json

Schema: ApiErrorResponseDto

FieldTypeRequiredDescription
codestringnoOptional machine-readable error code.
messagestringyesError message.
statusCodenumberyesHTTP status code.

403 — Forbidden - user is not the API key owner​

Content type: application/json

Schema: ApiErrorResponseDto

FieldTypeRequiredDescription
codestringnoOptional machine-readable error code.
messagestringyesError message.
statusCodenumberyesHTTP status code.

404 — API key not found - id parameter does not match any existing key​

Content type: application/json

Schema: ApiErrorResponseDto

FieldTypeRequiredDescription
codestringnoOptional machine-readable error code.
messagestringyesError message.
statusCodenumberyesHTTP status code.

500 — Internal server error - failed to update API key in database​

Content type: application/json

Schema: ApiErrorResponseDto

FieldTypeRequiredDescription
codestringnoOptional machine-readable error code.
messagestringyesError message.
statusCodenumberyesHTTP status code.

default — Shared error envelope returned by the application exception filter.​

Content type: application/json

Schema: ApiErrorEnvelope

FieldTypeRequiredDescription
errorboolean enum: trueyes
messageoneOf: string | array<string>yes
statusintegeryesHTTP status code.
messagestringyes
statusCodeintegeryesHTTP status code.

Example response​

[]

Previous group: Analytics · Next group: cache-management