Skip to Content
GrowSocmedDocsSocial media command center

Save the AI key

Save the AI provider key (checked first; stored encrypted)

PUT
/ai/connection

Save the AI provider key (checked first; stored encrypted)

Authorization

apiKey
headerAuthorizationBearer <token>

API key from Developer → API keys (gs_…). An unbound key takes the workspace from the X-Workspace header.

Request Body

application/json
  1. body
provider*string
Value in"anthropic""openai""gemini""openrouter""custom"
base_url?|
Formaturi
Lengthlength <= 300
api_key*string
Length8 <= length <= 500

Response Body

OK

response?unknownapplication/json
Example Request
curl -X PUT 'https://socmed.growpaces.com/api/v1/ai/connection' \  -H 'Content-Type: application/json' \  -d '{  "provider": "anthropic",  "api_key": "stringst"}'
Example Response200
null