Create and Use API Keys
You need an API key to interact with Zeabur’s Public API.
Creating an API Key
Open Zeabur Dashboard > Settings > API Keys to see all currently active keys.
Click “Generate new API key” to create a new API key with the current timestamp.
Click the “eye” button to view the API key.
Click the “copy” button to copy the API key.
Revoking an API Key
Open Zeabur Dashboard > Settings > API Keys to see all currently active keys. Click the “delete” button to immediately revoke the API key.
Using an API Key
Pass Bearer API_TOKEN
in the Authorization
header when calling the API, as shown in the example below:
curl --request POST \
--url https://api.zeabur.com/graphql \
--header 'Authorization: Bearer {YOUR_API_TOKEN}' \
--header 'Content-Type: application/json' \
--data '{"query":"query { me { username } }"}'