Reten Docs

List Result Configurations

Query the available result types for task-type activities.

GET /api/integration/task-result-type-configs

Returns the result types active in the tenant for task-type activities, ordered by code. Use this information to send valid codes in the task_result.result field when submitting a result.

This catalog belongs to the current format of Submit Result, the one that sends task_result.result. An integration that submits with answers does not use it: its result codes are the options of the code question of each form — see List Forms.

Authentication: Required — permission activity:view

Required header

HeaderValue
x-api-keyYOUR_API_KEY

Example

curl -X GET BASE_URL/api/integration/task-result-type-configs \
  -H "x-api-key: YOUR_API_KEY"
const response = await fetch(
  `${BASE_URL}/api/integration/task-result-type-configs`,
  {
    headers: {
      "x-api-key": "YOUR_API_KEY",
    },
  }
);

const configs = await response.json();
import requests

response = requests.get(
    f"{BASE_URL}/api/integration/task-result-type-configs",
    headers={
        "x-api-key": "YOUR_API_KEY",
    },
)

configs = response.json()

Response 200 OK

[
  {
    "code": "business_disinterested",
    "label": "🚫 Cliente no interesado",
    "requiresFutureScheduledAt": false
  },
  {
    "code": "is_closed",
    "label": "🔒 Local cerrado",
    "requiresFutureScheduledAt": false
  },
  {
    "code": "success",
    "label": "✅ Venta",
    "requiresFutureScheduledAt": false
  },
  {
    "code": "visit_rescheduled",
    "label": "📅 Cliente pide reagendar visita",
    "requiresFutureScheduledAt": true
  }
]

Configuration fields

FieldTypeDescription
codestringInternal result type identifier — this is the value you must send in task_result.result when submitting a result
labelstringHuman-readable result type name — this is the text you should display to the operator in the user interface
requiresFutureScheduledAtbooleanIf true, a result with this code must include task_result.future_scheduled_at, which must fall today or later in the tenant's timezone. The tenant administrator can change this flag at any time, and it applies to the results submitted from that change on, including tasks that were already open. The API reads it live when it receives each result: query this catalog before submitting instead of keeping a copy

code and label serve different purposes. The label (e.g., "✅ Venta") is what the operator (salesperson, call center, etc.) sees and selects in the interface. The code (e.g., success) is the internal identifier that your system must send to the API in the task_result.result field. Never send the label as the result — the API only accepts the code.

Query this endpoint before submitting results to ensure you are using valid codes. Result types are configured by the tenant administrator and may vary between tenants. Only active types are returned: one the administrator deactivates disappears from this list.

Error Responses

StatusDescription
401Invalid, revoked or expired API key, or its owner is inactive (see Errors)
403The key does not have the activity:view permission