Try asking a question about Knot to the AI assistant, or install the MCP server or Knot skill to build with AI right from your IDE.
curl --request POST \
--url https://development.knotapi.com/detected-accounts/sync \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"external_user_id": "abc",
"cursor": "eyJpZCI6MjI3ODEsIl9wb2ludHNUb05leHRJdGVtcyI6dHJ1ZX0",
"limit": 100
}
'{
"detected_accounts": [
{
"merchant": {
"id": 35,
"name": "Spotify",
"logo": "https://knot.imgix.net/merchants/KBQ5j6cN010PPpwbO7RpKGyDrCpsZ91FRhwnZp5u.png"
},
"login_method": "GOOGLE_SSO",
"account_created_at": "2025-08-24T11:53:09Z",
"detected_at": "2025-10-23T17:00:00Z"
},
{
"merchant": {
"id": 44,
"name": "Walmart",
"logo": "https://knot.imgix.net/merchants/walmart.png"
},
"login_method": "",
"account_created_at": "",
"detected_at": "2025-08-01T17:00:05Z"
}
],
"next_cursor": "eyJpZCI6MjI3ODEsIl9wb2ludHNUb05leHRJdGVtcyI6dHJ1ZX0",
"limit": 100
}Sync a user’s detected accounts using cursor-based pagination.
curl --request POST \
--url https://development.knotapi.com/detected-accounts/sync \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"external_user_id": "abc",
"cursor": "eyJpZCI6MjI3ODEsIl9wb2ludHNUb05leHRJdGVtcyI6dHJ1ZX0",
"limit": 100
}
'{
"detected_accounts": [
{
"merchant": {
"id": 35,
"name": "Spotify",
"logo": "https://knot.imgix.net/merchants/KBQ5j6cN010PPpwbO7RpKGyDrCpsZ91FRhwnZp5u.png"
},
"login_method": "GOOGLE_SSO",
"account_created_at": "2025-08-24T11:53:09Z",
"detected_at": "2025-10-23T17:00:00Z"
},
{
"merchant": {
"id": 44,
"name": "Walmart",
"logo": "https://knot.imgix.net/merchants/walmart.png"
},
"login_method": "",
"account_created_at": "",
"detected_at": "2025-08-01T17:00:05Z"
}
],
"next_cursor": "eyJpZCI6MjI3ODEsIl9wb2ludHNUb05leHRJdGVtcyI6dHJ1ZX0",
"limit": 100
}Documentation Index
Fetch the complete documentation index at: https://docs.knotapi.com/llms.txt
Use this file to discover all available pages before exploring further.
NEW_DETECTED_ACCOUNTS_AVAILABLE webhook.
Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password. Use your client_id as the username and your secret as the password value.
The input parameters required for syncing detected accounts.
Your unique identifier for the user.
"abc"
Cursor token pointing to the last detected account retrieved. The /detected-accounts/sync endpoint uses cursor-based pagination to track which detected accounts have already been seen, minimizing data redundancy.
On the first call, the endpoint returns all detected accounts paginated. In subsequent calls, only new detected accounts are provided using the next cursor.
"eyJpZCI6MjI3ODEsIl9wb2ludHNUb05leHRJdGVtcyI6dHJ1ZX0"
Maximum number of detected accounts to retrieve (min: 1, max: 100).
100
Was this page helpful?
Suggestions