Access
Create a user-owned Postdot API key
POST
sessionCookiecookie
better-auth.session_token<token>The Better Auth email/password session cookie used by the web application.
- body
name?stringLength
length <= 100projectIds?array<>|nullactionAccess?array<string|string|string|string|string|string|string>|nullexpiresAt?|nullResponse for status 201
application/json- response
key*token*stringThe plaintext API key. It is returned only once when the key is created.
Length
1 <= lengthcurl -X POST 'https://postbot.example/api/api-keys' \
-H 'Content-Type: application/json' \
-d '{}'Example Response
{
"key": {
"id": "string",
"name": "string",
"tokenPrefix": "string",
"projectAccess": "all",
"actionAccess": "all",
"expiresAt": 0,
"createdAt": 0,
"updatedAt": 0
},
"token": "string"
}