Reten Docs

Task Integration API

Connect your system with Reten to query task-type activities, submit results, and receive activities.

The Reten task integration API allows tenant developers to query assigned task-type activities, submit results, and receive activities in real time. This section covers exclusively the integration for TASK type activities. There are two integration modes depending on the data flow direction.

This documentation is intended for tenant developers who integrate their systems with Reten using a provider available on the platform (e.g., YOM). If you need to onboard a new provider to the platform, contact the Reten team.

Integration modes

ModeDirectionDescriptionUse case
PullYour system → RetenYour system queries activities and submits results via the REST APIAsynchronous integration, batch processing, systems that prefer to control the polling rate
Push (Dispatch)Reten → ProviderReten sends activities to the provider's endpoint in real timeReal-time integration, systems that need to receive activities immediately upon creation

Quick authentication

Integrations authenticate with an API key, sent in the x-api-key header:

x-api-key: YOUR_API_KEY

The API key authenticates your integration, defines the available permissions, and automatically resolves the associated tenant. There is no need to send the x-tenant-id header. Listing tasks and submitting results are project-optional: a project key always works in its own project, while a tenant key covers every project of the tenant and sends x-project-id only to narrow a request to one project or to submit a result without activity_id — see Key scope.

The integration endpoints also accept a user token (JWT), but the API key is the method intended for integrations. See Authentication for details.

Environments

Reten Environments

EnvironmentAdmin PanelAPI Base URL
Developmentapp-development.reten.aihttps://api-development.reten.ai
Stagingapp-staging.reten.aihttps://api-staging.reten.ai
Productionapp.reten.aihttps://api.reten.ai

Use the admin panel URL to manage API keys and dispatch configurations. Replace BASE_URL in code examples with the API base URL for your environment.

Getting started

Available endpoints

MethodPathDescription
GET/api/integration/activities/tasksList task-type activities visible to your API key
POST/api/integration/activity-results/tasksSubmit the result of a task-type activity
GET/api/integration/task-result-type-configsList available result type configurations
POST/api/integration/commerces/batch-upsertCreate or update up to 500 commerces in one request — see Batch Upsert
POST/api/integration/operators/batch-upsertCreate or update up to 500 operators in one request — see Batch Upsert
POST/api/integration/routes/batch-upsertCreate or update up to 500 routes in one request — see Batch Upsert