# API Keys

Create service accounts and API keys for server-to-server integrations.

6 operations in the API Keys resource group.

## Operations

- [List service accounts](/reference/api-keys/list-service-accounts.md) - GET `/service-accounts` - Returns service accounts that can own API keys for server-to-server integrations.
- [Create service account](/reference/api-keys/create-service-account.md) - POST `/service-accounts` - Creates a named integration identity before issuing API keys.
- [Delete service account](/reference/api-keys/delete-service-account.md) - DELETE `/service-accounts/{id}` - Deletes a service account and prevents its keys from being used.
- [List API keys for a service account](/reference/api-keys/list-api-keys.md) - GET `/service-accounts/{id}/api-keys` - Returns API keys created for the service account. Plaintext key values are never returned here.
- [Create API key](/reference/api-keys/create-api-key.md) - POST `/service-accounts/{id}/api-keys` - Creates an API key for a service account. Store the plaintext key from this response because it is shown once.
- [Revoke API key](/reference/api-keys/revoke-api-key.md) - DELETE `/api-keys/{id}` - Revokes an API key so it can no longer authenticate requests.

## Schemas

- [ProblemDetails](/reference/schemas/problem-details.md) - object - RFC 9457 Problem Details response with a stable Flownally error code.
- [FieldViolation](/reference/schemas/field-violation.md) - object
- [Window](/reference/schemas/messaging-window.md) - object - Tells a client whether the current actor can send in this conversation right now.
- [ListServiceAccountsResponse](/reference/schemas/list-service-accounts-response.md) - object
- [ServiceAccount](/reference/schemas/service-account.md) - object - Server-to-server integration identity.
- [CreateServiceAccountRequest](/reference/schemas/create-service-account-request.md) - object - Integration identity to create.
- [ListAPIKeysResponse](/reference/schemas/list-api-keys-response.md) - object - API keys for a service account.
- [APIKeyInfo](/reference/schemas/api-key-info.md) - object - API key metadata. The plaintext key is only returned when the key is created.
- [CreateAPIKeyRequest](/reference/schemas/create-api-key-request.md) - object - API key to create for the service account.
- [CreateAPIKeyResponse](/reference/schemas/create-api-key-response.md) - object - API key creation response. The `key` value is shown once.
