Skip to main content
API keys are used to authenticate requests to the Sendook API. Each API key is associated with an organization and provides full access to that organization’s resources.
API keys provide complete access to your organization. Keep them secure and never commit them to version control or expose them in client-side code.

Create API Key

Create a new API key for your organization.
The API key value is only returned once during creation. Store it securely - you won’t be able to retrieve it again.

Request Body

string
required
A descriptive name for the API key to help you identify its purpose.Cannot be empty or contain only whitespace.Example: "Production API Key", "Development Key", "CI/CD Pipeline"

Response

string
Unique identifier for the API key.
string
The descriptive name of the API key.
string
The actual API key value. This is only returned when creating the key.
Store this value securely. It will not be shown again.
string
ID of the organization this API key belongs to.
boolean
Whether the API key is active. New keys are active by default.
string
ISO 8601 timestamp of when the API key was created.
string
ISO 8601 timestamp of when the API key was last updated.

List API Keys

Retrieve all API keys for your organization.
For security reasons, the actual key values are never returned when listing API keys.

Response

Returns an array of API key objects.
string
Unique identifier for the API key.
string
The descriptive name of the API key.
string
ID of the organization this API key belongs to.
boolean
Whether the API key is active.
string
ISO 8601 timestamp of when the API key was created.
string
ISO 8601 timestamp of when the API key was last updated.

Get API Key

Retrieve a specific API key by its ID.

Path Parameters

string
required
The unique identifier of the API key to retrieve.

Response

string
Unique identifier for the API key.
string
The descriptive name of the API key.
string
ID of the organization this API key belongs to.
boolean
Whether the API key is active.
string
ISO 8601 timestamp of when the API key was created.
string
ISO 8601 timestamp of when the API key was last updated.

Delete API Key

Delete an API key. Once deleted, the key can no longer be used to authenticate API requests.
This action is permanent and cannot be undone. Any applications using this API key will immediately lose access.

Path Parameters

string
required
The unique identifier of the API key to delete.

Response

Returns the deleted API key object.
string
Unique identifier for the deleted API key.
string
The descriptive name of the API key.
string
ID of the organization this API key belonged to.
boolean
Will be false for deleted keys.
string
ISO 8601 timestamp of when the API key was created.
string
ISO 8601 timestamp of when the API key was last updated.

Authentication

API keys are used to authenticate all requests to the Sendook API. Include your API key in the Authorization header of each request:

Example Request

Security Best Practices

Store API keys in environment variables or secure secret management systems. Never hardcode them in your application code.
Regularly rotate your API keys for enhanced security:
  1. Create a new API key
  2. Update your applications to use the new key
  3. Delete the old API key
This minimizes the impact if a key is ever compromised.
Use different API keys for different environments:
  • Development
  • Staging
  • Production
This provides isolation and makes it easier to manage access.
Use descriptive names for your API keys to track which keys are used where. This makes it easier to identify and revoke compromised keys.

Error Responses

401 Unauthorized
  • Missing or invalid API key
  • Deleted or inactive API key
403 Forbidden
  • API key doesn’t have permission to access the requested resource