Organizations
Create an API key
Changed onCreate an organization or project API key. Creating organization API keys requires an admin session. Organization API keys can only create project keys, and only with scopes they hold on that project.
post/organizations/current/api-keys
Request
- Base URLhttps://api.hookdeck.com/2025-07-01
- Auth
- HTTP bearer
- or HTTP basic
Request body
Example request
{
"label": "CI pipeline",
"type": "organization",
"scopes": [
"gateway.sources.read"
]
}Response
The created API key
Example response
{
"id": "apk_3fVq8tR1nZx0",
"label": "CI pipeline",
"key": "hd_org_a1b2c3d4e5f6...",
"organization_id": "org_9bML1qH2vXp3",
"key_fingerprint": "a1b2c3d4",
"scopes": [
"gateway.sources.read",
"gateway.events.write"
],
"grants": {
"tm_9bML1qH2vXp3": {
"scopes": [
"gateway.events.read"
]
}
},
"updated_at": "2025-06-01T12:00:00.000Z",
"created_at": "2025-01-15T08:30:00.000Z"
}Changes
- info
endpoint added
- info