POST /account/api-keys
Create an organization key.
TypeScript SDKThe npm client, generated from the API spec.Python SDKThe PyPI client, sync and async.
| Method | Path |
|---|---|
| POST | /v1/account/api-keys |
Requires a verified GitHub administrator. Authenticate as a dashboard user or with a user token. An organization API key cannot create other keys. The secret is returned only once.
curl -X POST "https://api.ellipsis.dev/v1/account/api-keys" \
-H "Authorization: Bearer $ELLIPSIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{"name":"..."}'import os
from ellipsis import Ellipsis
client = Ellipsis(api_key=os.environ["ELLIPSIS_API_TOKEN"])
result = client.account.api_keys.create(
"...",
)
print(result)import { Ellipsis } from '@ellipsis-dev/sdk';
const client = new Ellipsis({
apiKey: process.env.ELLIPSIS_API_TOKEN!,
});
const result = await client.account.apiKeys.create({ name: '...' });
console.log(result);Request
Example request body
{
"name": "string"
}
Body parameters
namestringrequired
Response
Example response · 201
{
"secret": "string"
}