GET /secrets
When to use: list all secrets for dashboards and sync jobs.
Ability: secrets:read • Optional query: per_page (default: 15)
API Reference
The BurnLinks API lets developers create and manage one-time secrets programmatically. Use this API when you need automation around secure secret sharing between systems, CI pipelines, internal tools, or support workflows.
Base URL
https://burnlinks.com/api/v1
Auth
Bearer PAT
Content Type
application/json
Use environment-specific hosts to separate development/testing from production traffic.
Test Mode
https://burnlinks.com/api/v1
Use for local/dev integrations and pre-release validation.
Live Mode
https://burnlinks.com/api/v1
Use for production automations and real operational workflows.
Authorization: Bearer YOUR_TOKEN
Token creation example
curl -X POST "https://burnlinks.com/api/v1/auth/token" \
-H "Content-Type: application/json" \
-d '{
"email": "dev@example.com",
"password": "password",
"device_name": "ci-runner",
"abilities": ["secrets:read", "secrets:write"]
}'
Success example
{
"message": "Secret created successfully.",
"data": {
"id": 12,
"token": "...",
"expire_mode": "views",
"expire_value": 1
}
}
Validation error example
{
"message": "The given data was invalid.",
"errors": {
"expire_mode": [
"The selected expire mode is invalid."
]
}
}
All endpoints are team-scoped. Tokens can only access secrets inside the token's team.
GET /secrets
When to use: list all secrets for dashboards and sync jobs.
Ability: secrets:read • Optional query: per_page (default: 15)
POST /secrets
When to use: create a new secret before sending to a recipient.
Ability: secrets:write • Required: content, expire_mode (views|minutes), expire_value (1-10080)
GET /secrets/{secret}
When to use: fetch one secret after selecting it from a list.
Ability: secrets:read
PUT /secrets/{secret}
When to use: update content or expiration strategy of an existing secret.
Ability: secrets:write • Optional fields: content, expire_mode, expire_value
DELETE /secrets/{secret}
When to use: remove secrets that are no longer needed or should be immediately invalidated.
Ability: secrets:write
Apply client-side retry logic with exponential backoff for 429 responses.
Authenticated requests
Useful headers
Recommended integration pattern