API Reference
Job and environment secret management
List secrets
Authorization
bearerAuth AuthorizationBearer <token>
In: header
Query Parameters
project_id*string
job_id?string
environment?string
Response Body
application/json
curl -X GET "http://localhost:8080/v1/secrets?project_id=string"[
{
"id": "string",
"project_id": "string",
"job_id": "string",
"environment": "string",
"secret_key": "string",
"key_version": 0,
"created_at": "2019-08-24T14:15:22Z",
"updated_at": "2019-08-24T14:15:22Z"
}
]Create a secret
Authorization
bearerAuth AuthorizationBearer <token>
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
curl -X POST "http://localhost:8080/v1/secrets" \ -H "Content-Type: application/json" \ -d '{ "project_id": "string", "environment": "string", "secret_key": "string", "secret_value": "string" }'{
"id": "string",
"project_id": "string",
"job_id": "string",
"environment": "string",
"secret_key": "string",
"key_version": 0,
"created_at": "2019-08-24T14:15:22Z",
"updated_at": "2019-08-24T14:15:22Z"
}Delete a secret
Authorization
bearerAuth AuthorizationBearer <token>
In: header
Path Parameters
secretID*string
Response Body
curl -X DELETE "http://localhost:8080/v1/secrets/string"Empty
Was this page helpful?