Save the AI key
Save the AI provider key (checked first; stored encrypted)
PUT
Save the AI provider key (checked first; stored encrypted)
apiKeyheader
AuthorizationBearer <token>API key from Developer → API keys (gs_…). An unbound key takes the workspace from the X-Workspace header.
application/json- body
provider*stringValue in
"anthropic""openai""gemini""openrouter""custom"base_url?|Format
uriLength
length <= 300api_key*stringLength
8 <= length <= 500OK
response?unknownapplication/jsoncurl -X PUT 'https://socmed.growpaces.com/api/v1/ai/connection' \ -H 'Content-Type: application/json' \ -d '{ "provider": "anthropic", "api_key": "stringst"}'Example Response200
null