跳到正文
GrowSocmed文档Social media command center

Draft a DM reply with an agent

Let an agent draft a reply in a DM conversation (nothing is sent)

POST
/inbox/conversations/{id}/draft

Let an agent draft a reply in a DM conversation (nothing is sent)

Authorization

apiKey
headerAuthorizationBearer <token>

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

Path Parameters

id*string
Formatuuid

Request Body

application/json
  1. body
agent_id*string
Formatuuid

Response Body

OK

application/json
  1. response
status*string
reply*string|null
reason*string|null
Example Request
curl -X POST 'https://socmed.growpaces.com/api/v1/inbox/conversations/497f6eca-6276-4993-bfeb-53cbbbba6f08/draft' \  -H 'Content-Type: application/json' \  -d '{  "agent_id": "2b1e3b65-2c04-4fa2-a2d7-467901e98978"}'
Example Response200
{  "status": "string",  "reply": "string",  "reason": "string"}