Syndai Docs

Import secrets from a .env file

POST
/api/v1/external/coding/secrets/import

Store many name/value pairs in one environment at once: either every value is saved or none is. A name listed twice or an empty value is 400, and the same provider checks as setting one secret apply (409, 422). Runs paused waiting for these secrets resume. Requires the coding:secrets:write scope.

Authorization

CustomerApiKey
headerAuthorizationBearer <API Key>

Customer API key sent as a bearer token

Query Parameters

customer_id?|null

Request Body

application/json
  1. body
acknowledge_risk?boolean
Defaultfalse
environment*string
Match^[a-z][a-z0-9-]{0,31}$
items*array<>
Items1 <= items <= 200
repository_id?|null

Response Body

Request fulfilled, document follows

application/json
  1. response
secrets*array<>
Example Request
curl -X POST 'https://api.syndai.ai/api/v1/external/coding/secrets/import' \  -H 'Content-Type: application/json' \  -d '{  "environment": "string",  "items": [    {      "key_name": "string",      "value": "pa$$word"    }  ]}'
Example Response
{  "secrets": [    {      "delivery": "string",      "description": "string",      "environment": "string",      "expires_at": "string",      "key_name": "string",      "kind": "string",      "last_resolved_at": "string",      "last_verified_at": "string",      "recipe_key": "string",      "repository_id": "b349ae61-b973-4c6c-a5e0-89183ba99ff3",      "updated_at": "string",      "verified_account": "string",      "verify_status": "string"    }  ]}