Skip to main content
POST
/
sources
/
{id}
/
sync
cURL
curl -X POST "https://app.cotool.ai/sources/:id/sync" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json"
{
  "source": {
    "id": "<string>",
    "name": "<string>",
    "displayName": "<string>",
    "description": "<string>",
    "apiType": "<string>",
    "isBuiltIn": true,
    "feedUrl": "<string>",
    "serverUrl": "<string>",
    "organizationId": "<string>",
    "createdBy": "<string>",
    "hasApiKey": true,
    "enabled": true,
    "sourceEnabled": true,
    "subscriptionEnabled": true,
    "scheduleCron": "<string>",
    "maxEntries": 123,
    "lastFetchedAt": "<string>",
    "lastStatus": "<string>",
    "lastError": "<string>",
    "itemCountLast24h": 123,
    "createdAt": "<string>",
    "updatedAt": "<string>",
    "syncJob": {
      "jobId": "<string>",
      "queuedAt": "<string>",
      "startedAt": "<string>",
      "finishedAt": "<string>",
      "updatedAt": "<string>",
      "attemptCount": 123,
      "error": "<string>"
    }
  },
  "jobId": "<string>"
}

Authorizations

Authorization
string
header
required

API Key authentication for programmatic access. Include your API key in the Authorization header as: Bearer your_api_key_here

Path Parameters

id
string
required

Response

Successful response

source
object
required
jobId
string
required