Skip to main content

Suggestions Endpoint Reference

Reference for 6 Suggestions endpoints of the Talonic API: parameters, request body, curl and Node.js examples, response and errors.

What waits for a person's decision — questions about your data, suggested field mappings and suggested matches between tables — and the decisions.

Every request needs an API key in the Authorization: Bearer header. Examples read the key from the TALONIC_API_KEY environment variable.

GET/v1/suggestions/questions

Required scope: reviews:read

Query parameters

statusstring ("open", "answered", "deferred", "dismissed")Filter by status.

curl

curl -X GET 'https://api.talonic.com/v1/suggestions/questions' \
  -H "Authorization: Bearer $TALONIC_API_KEY"

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/suggestions/questions", {
  method: 'GET',
  headers: {
    Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
  },
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
const data = await res.json();

Response 200 — OK

{
  "data": [
    {}
  ]
}
  • 400 — The request is invalid.
  • 401 — Missing or invalid API key.
  • 403 — The API key does not have the required scope.
  • 429 — Daily rate limit exceeded.
POST/v1/suggestions/questions/{id}/answer

Required scope: reviews:write

Path parameters

id*string (uuid)

Request body (application/json)

option*integer

curl

curl -X POST 'https://api.talonic.com/v1/suggestions/questions/3fa85f64-5717-4562-b3fc-2c963f66afa6/answer' \
  -H "Authorization: Bearer $TALONIC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "option": 1
}'

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/suggestions/questions/3fa85f64-5717-4562-b3fc-2c963f66afa6/answer", {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    "option": 1
  }),
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
const data = await res.json();

Response 200 — OK

{
  "question": {},
  "applied": 1,
  "skipped": 1
}
  • 400 — The request is invalid.
  • 401 — Missing or invalid API key.
  • 403 — The API key does not have the required scope.
  • 404 — The requested resource was not found.
  • 409 — The request conflicts with the current resource state.
  • 429 — Daily rate limit exceeded.
GET/v1/suggestions/mappings

Required scope: reviews:read

Query parameters

statusstring ("suggested", "auto_applied", "confirmed", "rejected")Filter by status.
source_idstring (uuid)Only one source.
limitintegerPage size.
offsetintegerRows to skip.

curl

curl -X GET 'https://api.talonic.com/v1/suggestions/mappings' \
  -H "Authorization: Bearer $TALONIC_API_KEY"

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/suggestions/mappings", {
  method: 'GET',
  headers: {
    Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
  },
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
const data = await res.json();

Response 200 — OK

{
  "data": [
    {}
  ]
}
  • 400 — The request is invalid.
  • 401 — Missing or invalid API key.
  • 403 — The API key does not have the required scope.
  • 429 — Daily rate limit exceeded.
POST/v1/suggestions/mappings/{id}/decision

Required scope: reviews:write

Path parameters

id*string (uuid)

Request body (application/json)

action*string ("confirm", "reject", "retarget")
field_registry_idstring (uuid)
proposedobject

curl

curl -X POST 'https://api.talonic.com/v1/suggestions/mappings/3fa85f64-5717-4562-b3fc-2c963f66afa6/decision' \
  -H "Authorization: Bearer $TALONIC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "action": "confirm",
  "field_registry_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "proposed": {
    "canonical_name": "string",
    "display_name": "string",
    "data_type": "string",
    "description": "string"
  }
}'

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/suggestions/mappings/3fa85f64-5717-4562-b3fc-2c963f66afa6/decision", {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    "action": "confirm",
    "field_registry_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "proposed": {
      "canonical_name": "string",
      "display_name": "string",
      "data_type": "string",
      "description": "string"
    }
  }),
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
const data = await res.json();

Response 200 — OK

{}
  • 400 — The request is invalid.
  • 401 — Missing or invalid API key.
  • 403 — The API key does not have the required scope.
  • 404 — The requested resource was not found.
  • 429 — Daily rate limit exceeded.
GET/v1/suggestions/links

Required scope: reviews:read

Query parameters

statusstring ("suggested", "confirmed", "rejected")Filter by status.
source_idstring (uuid)Only one source.
limitintegerPage size.
offsetintegerRows to skip.

curl

curl -X GET 'https://api.talonic.com/v1/suggestions/links' \
  -H "Authorization: Bearer $TALONIC_API_KEY"

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/suggestions/links", {
  method: 'GET',
  headers: {
    Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
  },
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
const data = await res.json();

Response 200 — OK

{
  "data": [
    {}
  ]
}
  • 400 — The request is invalid.
  • 401 — Missing or invalid API key.
  • 403 — The API key does not have the required scope.
  • 429 — Daily rate limit exceeded.
POST/v1/suggestions/links/{id}/decision

Required scope: reviews:write

Path parameters

id*string (uuid)

Request body (application/json)

action*string ("confirm", "reject")

curl

curl -X POST 'https://api.talonic.com/v1/suggestions/links/3fa85f64-5717-4562-b3fc-2c963f66afa6/decision' \
  -H "Authorization: Bearer $TALONIC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "action": "confirm"
}'

Node.js (18+)

const res = await fetch("https://api.talonic.com/v1/suggestions/links/3fa85f64-5717-4562-b3fc-2c963f66afa6/decision", {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.TALONIC_API_KEY}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    "action": "confirm"
  }),
});
if (!res.ok) throw new Error(`${res.status}: ${await res.text()}`);
const data = await res.json();

Response 200 — OK

{}
  • 400 — The request is invalid.
  • 401 — Missing or invalid API key.
  • 403 — The API key does not have the required scope.
  • 404 — The requested resource was not found.
  • 429 — Daily rate limit exceeded.