Secrets
Use these operations to interact with secrets in Cortex.
Required permissions
Your API key must have the
Create secrets
permission.
API key must have the Create secrets
permission.
Number of results to return per page, between 1 and 1000. Default 250.
250
Page number to return, 0-indexed. Default 0.
0
Successfully retrieved secrets
Bad Request
The client has exceeded the rate limit by performing too many requests in a short period. Retry the request after a delay.
GET /api/v1/secrets HTTP/1.1
Host: api.getcortexapp.com
Authorization: Bearer JWT
Accept: */*
{
"page": 1,
"secrets": [
{
"id": "se2da8159dbeefb974",
"name": "My Secret",
"tag": "my-secret"
}
],
"total": 1,
"totalPages": 1
}
API key must have the Create secrets
permission.
The specified secret tag or unique, auto-generated identifier for the secret.
Successfully retrieved secret
Secret not found
The client has exceeded the rate limit by performing too many requests in a short period. Retry the request after a delay.
GET /api/v1/secrets/{tagOrId} HTTP/1.1
Host: api.getcortexapp.com
Authorization: Bearer JWT
Accept: */*
{
"id": "se2da8159dbeefb974",
"name": "My Secret",
"tag": "my-secret"
}
API key must have the Create secrets
permission.
Human-readable name for the secret
My Secret
Value of the secret
my-secret-password
Unique identifier for the secret
my-secret
Successfully created secret
Bad Request
The client has exceeded the rate limit by performing too many requests in a short period. Retry the request after a delay.
POST /api/v1/secrets HTTP/1.1
Host: api.getcortexapp.com
Authorization: Bearer JWT
Content-Type: application/json
Accept: */*
Content-Length: 68
{
"name": "My Secret",
"secret": "my-secret-password",
"tag": "my-secret"
}
{
"id": "se2da8159dbeefb974",
"name": "My Secret",
"tag": "my-secret"
}
API key must have the Create secrets
permission.
The specified secret tag or unique, auto-generated identifier for the secret.
Human-readable name for the secret
My Secret
Value of the secret
my-secret-password
Successfully updated secret
Bad Request
Secret not found
The client has exceeded the rate limit by performing too many requests in a short period. Retry the request after a delay.
PUT /api/v1/secrets/{tagOrId} HTTP/1.1
Host: api.getcortexapp.com
Authorization: Bearer JWT
Content-Type: application/json
Accept: */*
Content-Length: 50
{
"name": "My Secret",
"secret": "my-secret-password"
}
{
"id": "se2da8159dbeefb974",
"name": "My Secret",
"tag": "my-secret"
}
API key must have the Create secrets
permission.
The specified secret tag or unique, auto-generated identifier for the secret.
Secret successfully deleted
Bad Request
Secret not found
The client has exceeded the rate limit by performing too many requests in a short period. Retry the request after a delay.
DELETE /api/v1/secrets/{tagOrId} HTTP/1.1
Host: api.getcortexapp.com
Authorization: Bearer JWT
Accept: */*
No content
Last updated
Was this helpful?