跳到正文
GrowSocmed文档Social media command center
API 参考AI agents

Add knowledge

Add knowledge: text, a web page, or the account's posts, saved replies or comment replies (files: POST /knowledge/file)

POST
/knowledge

Add knowledge: text, a web page, or the account's posts, saved replies or comment replies (files: POST /knowledge/file)

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
kind*string
Value in"text""link""posts""saved_replies""comment_replies"
title*string
Length1 <= length <= 120
body?string
Lengthlength <= 200000
url?string
Formaturi
Lengthlength <= 2000
account_id?string
Formatuuid

Response Body

Created

response?unknownapplication/json
Example Request
curl -X POST 'https://socmed.growpaces.com/api/v1/knowledge' \  -H 'Content-Type: application/json' \  -d '{  "kind": "text",  "title": "string"}'
Example Response201
null