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.
/v1/suggestions/questionsRequired scope: reviews:read
Query parameters
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.
/v1/suggestions/questions/{id}/answerRequired scope: reviews:write
Path parameters
Request body (application/json)
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.
/v1/suggestions/mappingsRequired scope: reviews:read
Query parameters
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.
/v1/suggestions/mappings/{id}/decisionRequired scope: reviews:write
Path parameters
Request body (application/json)
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.
/v1/suggestions/linksRequired scope: reviews:read
Query parameters
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.
/v1/suggestions/links/{id}/decisionRequired scope: reviews:write
Path parameters
Request body (application/json)
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.