Secrets
Use these operations to interact with secrets in Cortex.
Required permissions
Your API key must have the
Create secretspermission.
API key must have the Create secrets permission.
All requests to the Cortex API need to provide an Authorization: Bearer <token> header, where <token> is an API key created in the Settings page of your workspace.
Number of results to return per page, between 1 and 1000. Default 250.
250Page number to return, 0-indexed. Default 0.
0Successfully retrieved secrets
Current page number, 0-indexed
Total number of results
Total number of pages
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?pageSize=250&page=0 HTTP/1.1
Host: api.getcortexapp.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"page": 1,
"secrets": [
{
"id": "se2da8159dbeefb974",
"name": "My Secret",
"tag": "my-secret"
}
],
"total": 1,
"totalPages": 1
}API key must have the Create secrets permission.
All requests to the Cortex API need to provide an Authorization: Bearer <token> header, where <token> is an API key created in the Settings page of your workspace.
Entity identifier - can be a tag or CID
Successfully retrieved secret
Unique, immutable, 18-character auto-generated identifier for the secret
se2da8159dbeefb974Human-readable name for the secret
My SecretUnique identifier for the secret
my-secretSecret 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 YOUR_SECRET_TOKEN
Accept: */*
{
"id": "se2da8159dbeefb974",
"name": "My Secret",
"tag": "my-secret"
}API key must have the Create secrets permission.
All requests to the Cortex API need to provide an Authorization: Bearer <token> header, where <token> is an API key created in the Settings page of your workspace.
Human-readable name for the secret
My SecretValue of the secret
my-secret-passwordUnique identifier for the secret
my-secretSuccessfully created secret
Unique, immutable, 18-character auto-generated identifier for the secret
se2da8159dbeefb974Human-readable name for the secret
My SecretUnique identifier for the secret
my-secretBad 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 YOUR_SECRET_TOKEN
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.
All requests to the Cortex API need to provide an Authorization: Bearer <token> header, where <token> is an API key created in the Settings page of your workspace.
Entity identifier - can be a tag or CID
Human-readable name for the secret
My SecretValue of the secret
my-secret-passwordSuccessfully updated secret
Unique, immutable, 18-character auto-generated identifier for the secret
se2da8159dbeefb974Human-readable name for the secret
My SecretUnique identifier for the secret
my-secretBad 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 YOUR_SECRET_TOKEN
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.
All requests to the Cortex API need to provide an Authorization: Bearer <token> header, where <token> is an API key created in the Settings page of your workspace.
Entity identifier - can be a tag or CID
Secret successfully deleted
No content
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 YOUR_SECRET_TOKEN
Accept: */*
No content
Last updated
Was this helpful?