POST
/
secrets
cURL
curl --request POST \
  --url https://api.datagrid.com/v1/secrets \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "<string>",
  "value": "<string>"
}'
{
  "object": "secret",
  "id": "<string>",
  "created_at": "<string>",
  "name": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Response

201 - application/json

Successfully created secret

The Secret object represents a securely stored secret that can be referenced in converse API calls.