Import secrets from a .env file
POST
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.
CustomerApiKeyheader
AuthorizationBearer <API Key>Customer API key sent as a bearer token
customer_id?|nullapplication/json- body
acknowledge_risk?booleanDefault
falseenvironment*stringMatch
^[a-z][a-z0-9-]{0,31}$items*array<>Items
1 <= items <= 200repository_id?|nullRequest fulfilled, document follows
application/json- response
secrets*array<>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" } ]}