Set a secret
Stores a value workflows of this suite can use by name ("secret:NAME") without ever seeing it: a webhook address, an API key.
PUT/v1/suites/{suiteId}/secrets/{name}
OPENROUTER_API_KEY makes the suite’s AI steps use its own OpenRouter key instead of credits. Names are UPPER_SNAKE_CASE.
Requires the members:write scope. Operation secrets.set. MCP tool secrets_set. CLI: grid82 secrets set (npx grid82).
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
suiteId | string | yes | |
name | string | yes |
Headers
| Name | Type | Required | Description |
|---|---|---|---|
Idempotency-Key | string | no | Any unique string. Sending the same key with the same request again returns the first response (marked Idempotency-Replayed: true) instead of running it twice. Reusing it for a different request is refused with 409. Kept for 24 hours. Up to 255 characters. |
Request body
| Field | Type | Required | Description |
|---|---|---|---|
value | string | yes | Up to 4096 characters. |
Response
Success
dataobjectrequiredRefused
errorobjectrequired