Skip to main content
POST
/
api
/
v2
/
chatbots
/
{chatbotId}
/
documents
/
resync
Bulk resync documents
curl --request POST \
  --url https://sitegpt.ai/api/v2/chatbots/{chatbotId}/documents/resync \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "documentIds": [
    "document-id"
  ]
}
'
{
  "ok": true,
  "data": {
    "document": {
      "id": "document-id",
      "name": "Example document",
      "createdAt": "2026-05-13T00:00:00.000Z"
    }
  },
  "meta": {
    "requestId": "request-id"
  }
}

Documentation Index

Fetch the complete documentation index at: https://sitegpt.ai/docs/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

chatbotId
string
required

Body

application/json
documentIds
string[]

Specific knowledge document IDs to act on.

query
string
sources
string[]
statuses
string[]
types
string[]
state
enum<string>
Available options:
all,
failed,
pending,
trained
all
boolean

Select all documents matching the supplied filters.

confirm
boolean

Required true for destructive bulk delete actions.

Response

Successful SiteGPT API v2 response.

ok
boolean
required
data
object
required
meta
object
required