Checks API
NOTE: Truora provides a Postman collection online that includes the necessary tools to simplify the testing process.
Welcome to the Truora Check RESTful API reference. If you haven’t already, we strongly advise you to check out our Guides Section.
Truora Check API allows performing full background checks on people, vehicles and companies. There are three main types of background checks:
- Personal background check: Verifies national IDs in multiple databases of public and legal entities in the LATAM region. For every national ID, returns information on: personal identity, criminal records, international background check, and professional background.
- Vehicle background check: Verifies the vehicle documents and the owner identity in multiple databases of public and legal entities in the LATAM region. For every vehicle and owner type, returns information on: personal identity, driving records, criminal records, and vehicle information.
- Company background check: Verifies the tax ID or a company name in multiple databases of public and legal entities in the LATAM region. For every company, returns the associated: business status, legal and criminal records, and media reports.
Authentication
To access Truora’s services and perform API calls securely, you need to authenticate your requests. This is done by including a specific authentication token, known as the ”Truora-API-Key” in the header of your requests.
By providing this key in your API requests, you establish a secure and authorized connection, enabling seamless interaction with Truora’s services.
Base URL
https://api.checks.truora.com
Checks
Checks API enables you to create and retrieve background checks. It consults multiple databases and provides a comprehensive set of information to assess the reliability of a person, vehicle, or company. Explore our guide on Background Checks for further details.
Create check
Creates a background check and queues it to start collecting information. The full details of background checks can be retrieved with their respective Check IDs using getCheck endpoint. Keep in mind that, depending on the check type, input document, and country of a search, certain inputs are required. You should always provide as many inputs as possible in order to get the highest accuracy.
If your check type is not referenced in the following table, please reach out to find out the fields that apply for you.
Request example
curl --request POST \
--url 'https://api.checks.truora.com/v1/checks' \
--header 'Truora-API-Key: {api_key}' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data '{"country":"ALL","type":"person","user_authorized":true}'
Request body
application/x-www-form-urlencodedALL
BR
CO
CL
MX
PE
CR
Document country
Indicates whether the person subject to the validation authorized the validation. Must be true in order to proceed [Required for API key V1 or later]
person
vehicle
company
custom_type_name
Background check type. Replace custom_type_name with the name of your custom type to perform a custom type check
ID for Venezuelans working in Peru
This field also apply for PPT (Permiso de Protección Temporal) in Colombia
Person birth certificate
Optional external identifier stored in the database along with the main structure. Used for reference purposes only, without affecting processing or logic. (Maximum length: 128 characters).
Person foreign ID
male
masculino
hombre
h
female
femenino
mujer
m
Person gender. Used for the Renapo (Registro Nacional de Poblacion) Alternative method in Mexico. Required in order to get complete background checks in Mexico instead national_id using Alternative method.
CO
MX
PE
BR
EC
CL
VE
Country of birth. Required if native_national_id is provided
Driver’s license number
Person document issue date in “YYYY-mm-dd” format (e.g. 2008-12-31) . This date is used to get some additional information about a person in some cases
National ID
national-id, foreign-id, tax-id or passport
Professional ID card
Folio for Chilean certificate search. Chile only
Colombian escrow
15-digit IMEI to be validated
Person passport
Document number of Chilean identity. This number is used to get some additional information about a person. Chile only
Verification code registered for criminal records in Peru and Chile
Report ID the background check will be inserted into
Diplomatic ID
Person or entity first name. If the document type and number are not provided, the report might include homonyms. Required when searching by first name, Required in order to get complete background checks in Brazil and Mexico if alternative method for Renapo is used.
Vehicle NIV number
Company name “Don’t forget this required field to complete background checks in Brazil”
Person birthdate. This date is used to get some additional information about a person and to filter homonyms in some cases. YYYY-MM-DD format, Required for complete background checks in Brazil and Perú and Mexico if alternative method for Renapo is used.
National ID from the person native country. Keep in mind that you must provide the native_country if you enter a native_national_id
ID for Venezuelans working in Colombia
Indicates whether the check score is to be periodically revised and its frequency. It can be daily, weekly, monthly, yearly or have a custom frequency written as a number accompanied by d: day, w: week, m: month, y: year for instance: 3d: every three days, 2w: every two weeks. Ignore this field if the check is only to be performed once
ID of the vehicle owner
Vehicle license plate
Payment day of a vehicle circulation permit (Chile only)
DF
AC
AL
AP
AM
BA
CE
ES
GO
MA
MT
MS
MG
PA
PB
PR
PE
PI
RJ
RN
RS
RO
RR
SC
SP
SE
TO
ALL
Region where the background is to be checked in addition to the region where the person is from. By default, background checks in Brazil are performed in the person region of birth according to their CPF. Required for Brazil only. Keep in mind that a nation-wide search can take more than 24 hours to complete, whereas region-specific searches take from 2 to 20 min to complete.
Allowed values are: DF: Distrito Federal, AC: Acre, AL: Alagoas, AP: Amapá, AM: Amazonas, BA: Bahía, CE: Ceará, ES: Espírito Santo, GO: Goiás, MA: Maranhão, MT: Mato Grosso, MS: Mato Grosso do Sul, MG: Minas Gerais, PA: Pará, PB: Paraíba, PR: Paraná, PE: Pernambuco, PI: Piauí, RJ: Río de Janeiro, RN: Río Grande do Norte, RS: Río Grande do Sul, RO: Rondônia, RR: Roraima, SC: Santa Catarina, SP: São Paulo, SE: Sergipe, TO : Tocantins, ALL: nation-wide search
Used for the RG (Registro Geral) identification in Brazil, and Renapo (Registro Nacional de Personas) identification in Mexico. This identification has different formats according to the state that issues the document. It can have numbers and letters but other characters (- * , . ) are omitted, Required in order to get complete background checks in Brazil and Mexico if alternative method for Renapo is used.
Company ID used for tax payments
Defines the behavior of the API when creating a background check with the same input values used for a recently created background check.
When true, forces the creation of a new background check; otherwise, it returns the result of the background check created earlier.
Person phone number. Required by law to notify the person their background is being checked
Person or entity last name. If the document type and number are not provided, the report might include homonyms. Required when searching by last name. Required in order to get complete background checks in Brazil and Mexico if alternative method for Renapo is used.
Was this helpful?
Your feedback helps us improve the docs.
Receive webhook
Request example
curl --request POST \
--url 'https://api.checks.truora.com/v1/webhooks/{webhook_type}' \
--header 'Truora-API-Key: {api_key}'
Path Parameters
The type of webhook (e.g., complyadvantage, etc.)
Was this helpful?
Your feedback helps us improve the docs.
List checks
Request example
curl --request GET \
--url 'https://api.checks.truora.com/v1/checks' \
--header 'Truora-API-Key: {api_key}'
Query Parameters
ID of the report of background checks to be returned.
Start key value for the pagination.
Was this helpful?
Your feedback helps us improve the docs.
Get check
Returns the results of the check that matches the ID provided, complete with a set of scores explained below.
Scores:
- Global Score: Average risk associated with a person, company or vehicle, according to the background check results. The global score considers results that are validated with the ID number provided. The score ranges from 0 to 1, where 0 represents high risk and 1 low risk.
- ID Score: Average risk associated with a person according to the background check results. The ID score considers the results that are validated with a person identity document. The score ranges from 0 to 1, where 0 represents high risk and 1 low risk.
- Name Score: Average risk associated with a person according to the background check results. The name score considers results that are validated against the name of a person and could not be validated with their ID number. These results might have homonyms associated with them. The score ranges from 0 to 1, where 0 represents high risk and 1 low risk.
In order to calculate these scores, a weighted average is considered with different weights allocated to each dataset. Scores can be customized using the config endpoints by assigning a weight to each dataset according to its relevance.
Keep in mind that results from the API vary depending on the country, check type and the inputs entered on check creation.
Request example
curl --request GET \
--url 'https://api.checks.truora.com/v1/checks/{check_id}' \
--header 'Truora-API-Key: {api_key}'
Path Parameters
A unique identifier for a check.
Was this helpful?
Your feedback helps us improve the docs.
Get Check Attachments
Request example
curl --request GET \
--url 'https://api.checks.truora.com/v1/checks/{check_id}/attachments' \
--header 'Truora-API-Key: {api_key}'
Path Parameters
A unique identifier for a check.
Was this helpful?
Your feedback helps us improve the docs.
List Check Details
Request example
curl --request GET \
--url 'https://api.checks.truora.com/v1/checks/{check_id}/details' \
--header 'Truora-API-Key: {api_key}'
Path Parameters
A unique identifier for a check.
Query Parameters
Specifies the desired language for details; use lowercase ISO 639-1 format. If not specified, details will be provided in their original language.
Start key value for the pagination.
Was this helpful?
Your feedback helps us improve the docs.
Summarize
Request example
curl --request GET \
--url 'https://api.checks.truora.com/v1/checks/{check_id}/summarize' \
--header 'Truora-API-Key: {api_key}'
Path Parameters
A unique identifier for a check.
Was this helpful?
Your feedback helps us improve the docs.
Get the status of a database
Request example
curl --request GET \
--url 'https://api.checks.truora.com/v1/health?country={country}&unixTimestampSeconds={unixTimestampSeconds}&unixtimezoneOffsetSeconds={unixtimezoneOffsetSeconds}' \
--header 'Truora-API-Key: {api_key}'
Query Parameters
Country code in uppercase ISO 3166 format (e.g., CO for Colombia).
Unix timestamp in seconds. Send a day timestamp to view the database hourly status for that day or send the current time to know the current database status.
Offset between the local time and the UTC time in seconds. (e.g., Colombia is at UTC -18000 seconds).
Was this helpful?
Your feedback helps us improve the docs.
Delete check
Request example
curl --request DELETE \
--url 'https://api.checks.truora.com/v1/checks/{check_id}' \
--header 'Truora-API-Key: {api_key}'
Path Parameters
A unique identifier for a check.
Was this helpful?
Your feedback helps us improve the docs.
Custom-Type
The Custom Type API enables the creation of custom searches, allowing you to include only the desired datasets in background checks, thus enhancing the check efficiency. Moreover, you can customize the impact of each dataset on the global score by assigning it a weight value between 0 and 1. It’s important to note that the sum of all weights must equal 1.
You can use custom types in your checks to perform custom-type checks. For detailed information, refer to our Custom Type guide.
Create custom type
typeRequest example
curl --request POST \
--url 'https://api.checks.truora.com/v1/config' \
--header 'Truora-API-Key: {api_key}' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data '{"country":"ALL","type":"string"}'
Request body
application/x-www-form-urlencodedALL
BR
CL
CO
MX
PE
Country where this set of rules applies. Use “all” if the check type searches by name by relying on international databases
Custom type name. It cannot be person, vehicle, or company. Use this type in your checks to perform custom-type checks
Driving license weight for score calculation. From 0 to 1. If not provided, the dataset is skipped entirely decreasing the search time
Affiliation and insurance weight for score calculation. From 0 to 1. If not provided, the dataset is skipped entirely decreasing the search time
Alert in media weight for score calculation. From 0 to 1. If not provided, the dataset is skipped entirely decreasing the search time
Criminal record weight for score calculation. From 0 to 1. If not provided, the dataset is skipped entirely decreasing the search time
Business background weight for score calculation. From 0 to 1. If not provided, the dataset is skipped entirely decreasing the search time
Personal identity weight for score calculation. From 0 to 1. If not provided, the dataset is skipped entirely decreasing the search time
Taxes and financial background weight for score calculation. From 0 to 1. If not provided, the dataset is skipped entirely decreasing the search time
Vehicle information weight for score calculation. From 0 to 1. If not provided, the dataset is skipped entirely decreasing the search time
Vehicle certificate background weight for score calculation. From 0 to 1. If not provided, the dataset is skipped entirely decreasing the search time
Professional background weight for score calculation. From 0 to 1. If not provided, the dataset is skipped entirely decreasing the search time
Traffic fines weight for score calculation. From 0 to 1. If not provided, the dataset is skipped entirely decreasing the search time
International background weight for score calculation. From 0 to 1. If not provided, the dataset is skipped entirely decreasing the search time
Legal background weight for score calculation. From 0 to 1. If not provided, the dataset is skipped entirely decreasing the search time
Was this helpful?
Your feedback helps us improve the docs.
Update custom type
Request example
curl --request PUT \
--url 'https://api.checks.truora.com/v1/config' \
--header 'Truora-API-Key: {api_key}' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data '{"country":"ALL","type":"string"}'
Request body
application/x-www-form-urlencodedALL
BR
CL
CO
MX
PE
Country where this set of rules applies. Use “all” if the check type searches by name by relying on international databases
Custom type name. It cannot be person, vehicle, or company. Use this type in your checks to perform custom-type checks
Alert in media weight for score calculation. From 0 to 1. If not provided, the dataset is skipped entirely decreasing the search time
International background weight for score calculation. From 0 to 1. If not provided, the dataset is skipped entirely decreasing the search time
Business background weight for score calculation. From 0 to 1. If not provided, the dataset is skipped entirely decreasing the search time
Affiliation and insurance weight for score calculation. From 0 to 1. If not provided, the dataset is skipped entirely decreasing the search time
Legal background weight for score calculation. From 0 to 1. If not provided, the dataset is skipped entirely decreasing the search time
Criminal record weight for score calculation. From 0 to 1. If not provided, the dataset is skipped entirely decreasing the search time
Driving license weight for score calculation. From 0 to 1. If not provided, the dataset is skipped entirely decreasing the search time
Personal identity weight for score calculation. From 0 to 1. If not provided, the dataset is skipped entirely decreasing the search time
Taxes and financial background weight for score calculation. From 0 to 1. If not provided, the dataset is skipped entirely decreasing the search time
Vehicle information weight for score calculation. From 0 to 1. If not provided, the dataset is skipped entirely decreasing the search time
Vehicle certificate background weight for score calculation. From 0 to 1. If not provided, the dataset is skipped entirely decreasing the search time
Professional background weight for score calculation. From 0 to 1. If not provided, the dataset is skipped entirely decreasing the search time
Traffic fines weight for score calculation. From 0 to 1. If not provided, the dataset is skipped entirely decreasing the search time
Was this helpful?
Your feedback helps us improve the docs.
List custom types
Request example
curl --request GET \
--url 'https://api.checks.truora.com/v1/config' \
--header 'Truora-API-Key: {api_key}'
Query Parameters
Start key value for the pagination.
Was this helpful?
Your feedback helps us improve the docs.
Delete custom type
Allows deleting a custom type. Please note that person, vehicle, and company custom types can not be deleted.
After deletion, the response will display the remaining custom types associated with the country of the deleted custom type.
Request example
curl --request DELETE \
--url 'https://api.checks.truora.com/v1/config?country={country}&type={type}' \
--header 'Truora-API-Key: {api_key}'
Query Parameters
Country where the custom type is valid. Use ISO 3166 format in uppercase (e.g., CO for Colombia)
Name of the custom type to be deleted.
Was this helpful?
Your feedback helps us improve the docs.
Settings
Allows the configuration of parameters such as names matching type, retries and max duration.
Create setting
Request example
curl --request POST \
--url 'https://api.checks.truora.com/v1/settings' \
--header 'Truora-API-Key: {api_key}'
Request body
application/x-www-form-urlencodedIndicates the maximum amount of time a check can take to fetch responses. It follows the following format "xt" where x is a number and t is a letter ( m for minutes or h for hours). Example 25m indicates 25 minutes, 2h indicates 2 hours. This value must be between 15 minutes and 7 days (168 hours). When not configured, it is set to default. If retries is enabled, the default max duration is set to 48 hours; otherwise, it is set to 3 hours for Colombia, Mexico, Peru, and Brazil; 48 hours for Chile and International searches; and 72 hours for Costa Rica
soft
exact
Defines the matching type between the names retrieved from the identity databases and the names found in the criminal, legal and international databases to determine whether a record should be included in the check or not. soft (used by default) means matching names when they are similar enough to be considered the same person (e.g., Maria Alejandra Gomez would match Alejandra Gomez). exact means the names must perfectly match. Keep in mind that this feature is a configuration at a Client level, so it will affect all your check types
Indicates whether or not database queries must be retried until they successfully return a response or until the max_duration time is reached
Was this helpful?
Your feedback helps us improve the docs.
Credentials
Allows the management of credentials for the checks API.
Create or update credential
Request example
curl --request POST \
--url 'https://api.checks.truora.com/v1/config/credentials/{database_id}' \
--header 'Truora-API-Key: {api_key}' \
--header 'Content-Type: application/json' \
--data '{"password":"string","username":"string"}'
Request body
application/jsonUsername for the collector credential
Password for the collector credential
Additional authentication complements
Was this helpful?
Your feedback helps us improve the docs.
List credentials
Request example
curl --request GET \
--url 'https://api.checks.truora.com/v1/config/credentials' \
--header 'Truora-API-Key: {api_key}'
Was this helpful?
Your feedback helps us improve the docs.
Delete credential
Request example
curl --request DELETE \
--url 'https://api.checks.truora.com/v1/config/credentials/{database_id}' \
--header 'Truora-API-Key: {api_key}'
Was this helpful?
Your feedback helps us improve the docs.
Continuous
Enables the creation of recurring checks with customizable frequency, providing notifications whenever there are changes in check scores.
Create Continuous Check
Request example
curl --request POST \
--url 'https://api.checks.truora.com/v1/continuous-checks' \
--header 'Truora-API-Key: {api_key}' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data '{"check_id":"string","end_date":"string","frequency":"string"}'
Request body
application/x-www-form-urlencodedTime between background checks. It can be daily, weekly, monthly, yearly or have a custom frequency written as a number accompanied by a letter d: day, w: week, m: month, y: year. For instance: 3d: every three days, 2w: every two weeks
Date on which background checks will stop. YYYY-MM-DD format. For the date to be valid, it must allow at least one check to be run according to the frequency.
Background checks to be processed recurrently
Was this helpful?
Your feedback helps us improve the docs.
Update Continuous Checks
Request example
curl --request PUT \
--url 'https://api.checks.truora.com/v1/continuous-checks/{continuous_check_id}' \
--header 'Truora-API-Key: {api_key}'
Request body
application/x-www-form-urlencoded0
1
API Key version to be used for the continuous check hooks. This version must match API key version you use. Version 0 is used by default.
Time between background checks
enabled
disabled
Indicates whether the background checks must be processed recurrently
Path Parameters
Unique ID assigned after calling CreateContinuousCheck.
Was this helpful?
Your feedback helps us improve the docs.
List Continuous Checks
Request example
curl --request GET \
--url 'https://api.checks.truora.com/v1/continuous-checks' \
--header 'Truora-API-Key: {api_key}'
Was this helpful?
Your feedback helps us improve the docs.
Get Continuous Checks
Request example
curl --request GET \
--url 'https://api.checks.truora.com/v1/continuous-checks/{continuous_check_id}' \
--header 'Truora-API-Key: {api_key}'
Path Parameters
Unique ID assigned after calling CreateContinuousCheck.
Was this helpful?
Your feedback helps us improve the docs.
List Continuous Check Logs
Request example
curl --request GET \
--url 'https://api.checks.truora.com/v1/continuous-checks/{continuous_check_id}/history' \
--header 'Truora-API-Key: {api_key}'
Path Parameters
Unique ID assigned after calling CreateContinuousCheck.
Was this helpful?
Your feedback helps us improve the docs.
Enables the export of a comprehensive PDF containing the obtained information, Truora’s assigned score, and consulted datasets. For more details, refer to Background Checks: PDF, Variables and Attachments guide.
Create PDF
Request example
curl --request POST \
--url 'https://api.checks.truora.com/v1/checks/{check_id}/pdf' \
--header 'Truora-API-Key: {api_key}'
Path Parameters
A unique identifier for a check.
Was this helpful?
Your feedback helps us improve the docs.
Get PDF
Request example
curl --request GET \
--url 'https://api.checks.truora.com/v1/checks/{check_id}/pdf' \
--header 'Truora-API-Key: {api_key}'
Path Parameters
A unique identifier for a check.
Query Parameters
Specifies the language of the PDF; use lowercase ISO 639-1 format. If not specified, the PDF will be downloaded in Spanish by default.
Was this helpful?
Your feedback helps us improve the docs.
Batch
Given a valid xlsx file, this endpoint takes the information from the file and starts creating the checks and associating it to the specified report object. For a step-by-step explanation of all methods and required fields for submitting a batch, please refer to the Background Checks Batch via API guide.
Create Batch
This endpoint facilitates the creation of batches of different types. This endpoint does not include input file uploading or batch start logic.
The check inputs to be uploaded in the file can be manually mapped using columns_mapping.{input_name} body params, by default the inputs accepted by the check type will be mapped. The request will return a columns array with the order in which the inputs should be in the xlsx file.
The batch creation request returns a temporary URL in the file_upload_link field. This URL must be used to make a PUT request with the file containing the mapped batch data. It is crucial to note that the URL has a limited expiration time (30min) and will only allow the first submitted file to be uploaded. Therefore, it is highly recommended to carefully review the information before uploading.
Request example
curl --request POST \
--url 'https://api.checks.truora.com/v1/batches' \
--header 'Truora-API-Key: {api_key}' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data '{"country":"ALL","service":"checks","type":"person"}'
Request body
application/x-www-form-urlencodedperson
vehicle
company
custom_type_name
Type of the batch checks. Replace custom_type_name with the name of your custom type to perform a batch of custom type checks. In case you want to create a custom type please visit How to Create a Custom Type for Background Check guide for more information.
checks
The service for which the batch will be processed
ALL
BR
CO
CL
MX
PE
CR
The country of batch checks
Date on which background checks will stop to create a batch of continuous checks. YYYY-MM-DD format. For the date to be valid, it must allow at least one check to be run according to the frequency.
Time between background checks to create a batch of continuous checks. It can be daily, weekly, monthly, yearly or have a custom frequency written as a number accompanied by a letter d: day, w: week, m: month, y: year. For instance: 3d: every three days, 2w: every two weeks
Columns mapping of the xlsx file. This body parameter must be sent for each column you want to upload in the xlsx file, replacing the input_name with the name of the input (e.g. columns_mapping.national_id). The value must be the index of the column in the file, being 0 for column A, 1 for column B and so on. If no column mapping is sent, all inputs for the selected custom type will be automatically mapped.
Was this helpful?
Your feedback helps us improve the docs.
Request Batch Report Generation
Request example
curl --request POST \
--url 'https://api.checks.truora.com/v1/batches/{batch_id}/report' \
--header 'Truora-API-Key: {api_key}' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data '{"format":"string"}'
Request body
application/x-www-form-urlencodedBatch report file format
Path Parameters
Unique identifier of the batch.
Was this helpful?
Your feedback helps us improve the docs.
Start Batch
Request example
curl --request POST \
--url 'https://api.checks.truora.com/v1/batches/{batch_id}/start' \
--header 'Truora-API-Key: {api_key}'
Path Parameters
Unique identifier of the batch.
Was this helpful?
Your feedback helps us improve the docs.
Stop Batch
Request example
curl --request PUT \
--url 'https://api.checks.truora.com/v1/batches/{batch_id}' \
--header 'Truora-API-Key: {api_key}'
Path Parameters
Unique identifier of the batch.
Was this helpful?
Your feedback helps us improve the docs.
Get Batch
Request example
curl --request GET \
--url 'https://api.checks.truora.com/v1/batches/{batch_id}' \
--header 'Truora-API-Key: {api_key}'
Path Parameters
Unique identifier of the batch.
Was this helpful?
Your feedback helps us improve the docs.
Get Batch Report
Request example
curl --request GET \
--url 'https://api.checks.truora.com/v1/batches/{batch_id}/report' \
--header 'Truora-API-Key: {api_key}'
Path Parameters
Unique identifier of the batch.
Was this helpful?
Your feedback helps us improve the docs.
Create Rule
Request example
curl --request POST \
--url 'https://api.account.truora.com/v1/bre/rules' \
--header 'Truora-API-Key: {api_key}'
Request body
application/x-www-form-urlencodedCondition for the rule, written in jsonlogic
checks.check.finished
Event type
Rule name
Was this helpful?
Your feedback helps us improve the docs.
Set action env var
Request example
curl --request POST \
--url 'https://api.account.truora.com/v1/bre/rules/{rule_id}/actions/{action_id}/envs' \
--header 'Truora-API-Key: {api_key}'
Request body
application/x-www-form-urlencodedVariable name (must start with a letter, alphanumeric and underscore only)
Whether the value is stored as secret (encrypted)
Variable value
Was this helpful?
Your feedback helps us improve the docs.
Edit Rule
Request example
curl --request PUT \
--url 'https://api.account.truora.com/v1/bre/rules/{rule_id}' \
--header 'Truora-API-Key: {api_key}'
Request body
application/x-www-form-urlencodedCondition for the rule, written in jsonlogic
checks.check.finished
Event type
Rule name
Was this helpful?
Your feedback helps us improve the docs.
List Rules
Request example
curl --request GET \
--url 'https://api.account.truora.com/v1/bre/rules' \
--header 'Truora-API-Key: {api_key}'
Was this helpful?
Your feedback helps us improve the docs.
Get Rule
Request example
curl --request GET \
--url 'https://api.account.truora.com/v1/bre/rules/{rule_id}' \
--header 'Truora-API-Key: {api_key}'
Was this helpful?
Your feedback helps us improve the docs.
Get action env vars
Request example
curl --request GET \
--url 'https://api.account.truora.com/v1/bre/rules/{rule_id}/actions/{action_id}/envs' \
--header 'Truora-API-Key: {api_key}'
Was this helpful?
Your feedback helps us improve the docs.
Delete Rule
Request example
curl --request DELETE \
--url 'https://api.account.truora.com/v1/bre/rules/{rule_id}' \
--header 'Truora-API-Key: {api_key}'
Was this helpful?
Your feedback helps us improve the docs.
Delete env var
Request example
curl --request DELETE \
--url 'https://api.account.truora.com/v1/bre/rules/{rule_id}/actions/{action_id}/envs/{var_name}' \
--header 'Truora-API-Key: {api_key}'
Was this helpful?
Your feedback helps us improve the docs.
Get variables spec
Request example
curl --request GET \
--url 'https://api.account.truora.com/v1/bre/variables-spec' \
--header 'Truora-API-Key: {api_key}'
Was this helpful?
Your feedback helps us improve the docs.
Create Rule Action
Request example
curl --request POST \
--url 'https://api.account.truora.com/v1/bre/rules/{rule_id}/actions' \
--header 'Truora-API-Key: {api_key}'
Request body
application/x-www-form-urlencodedenabled
disabled
Action status
http_request
email
create_check
Action type
Action name
Was this helpful?
Your feedback helps us improve the docs.
Update Action
Request example
curl --request PUT \
--url 'https://api.account.truora.com/v1/bre/rules/{rule_id}/actions/{action_id}' \
--header 'Truora-API-Key: {api_key}'
Request body
application/x-www-form-urlencodedAction name
enabled
disabled
Action status
http_request
email
create_check
Action type
Was this helpful?
Your feedback helps us improve the docs.
Get Rule Actions
Request example
curl --request GET \
--url 'https://api.account.truora.com/v1/bre/rules/{rule_id}/actions' \
--header 'Truora-API-Key: {api_key}'
Was this helpful?
Your feedback helps us improve the docs.
Delete Action
Request example
curl --request DELETE \
--url 'https://api.account.truora.com/v1/bre/rules/{rule_id}/actions/{action_id}' \
--header 'Truora-API-Key: {api_key}'
Was this helpful?
Your feedback helps us improve the docs.
Create User
Request example
curl --request POST \
--url 'https://api.account.truora.com/v1/account/users' \
--header 'Truora-API-Key: {api_key}' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data '{"country":"string","email":"string","language":"es","phone_number":"string"}'
Request body
application/x-www-form-urlencodedes
en
pt
Language used for the user communications
Email of the user. Becomes the username and is stored lowercased
Country code specified in ISO 3166 Alpha-2 format, for example CO for Colombia
Phone number in E.164 format, for example +573001234567
Role assigned to the user. Defaults to default_access and must reference an existing role
Billing hub for the user. Required when the tenant has billing hubs and must match one of them exactly
Display name of the user
Was this helpful?
Your feedback helps us improve the docs.
Update User
Request example
curl --request PUT \
--url 'https://api.account.truora.com/v1/account/users/{username}' \
--header 'Truora-API-Key: {api_key}'
Request body
application/x-www-form-urlencodedName of the role to be assigned to the user. Must reference an existing role
Billing hub for the user. Stored uppercased and must match a tenant billing hub
Display name of the user
Phone number in E.164 format, for example +573009876543
Path Parameters
The user’s username, typically their email. URL-encode @ and + characters.
Was this helpful?
Your feedback helps us improve the docs.
List Users
Request example
curl --request GET \
--url 'https://api.account.truora.com/v1/account/users' \
--header 'Truora-API-Key: {api_key}'
Query Parameters
Pagination cursor taken from the next link of a previous response.
Was this helpful?
Your feedback helps us improve the docs.
Delete User
Request example
curl --request DELETE \
--url 'https://api.account.truora.com/v1/account/users' \
--header 'Truora-API-Key: {api_key}' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data '{"email":"string"}'
Request body
application/x-www-form-urlencodedEmail of the user to delete. Identifies the user in the request body, not in the URL path
Was this helpful?
Your feedback helps us improve the docs.
Activate / Deactivate User
Request example
curl --request PATCH \
--url 'https://api.account.truora.com/v1/account/users/{username}/status' \
--header 'Truora-API-Key: {api_key}'
Request body
application/x-www-form-urlencodedReason for the status change. Required and stored in the audit log
enabled
disabled
New status of the user in the account. One of enabled or disabled
Path Parameters
Username
Was this helpful?
Your feedback helps us improve the docs.
Create Role
Request example
curl --request POST \
--url 'https://api.account.truora.com/v1/roles' \
--header 'Truora-API-Key: {api_key}'
Request body
application/x-www-form-urlencodedHuman-readable description of the role
checks.behavior
checks.country_all
checks.country_ar
checks.country_br
checks.country_cl
checks.country_co
checks.country_co_premium
checks.country_cr
checks.country_ec
checks.country_mx
checks.country_pa
checks.country_pe
truora.keys
truora.users
validations.cell_phone_validation_br
validations.cell_phone_validation_co
validations.cell_phone_validation_mx
validations.documents_validation_br
validations.documents_validation_co
validations.documents_validation_mx
validations.email_validation
validations.enterprise_data
validations.face_recognition
validations.identity_questions
validations.voice_recognition
Enter this field as many times as necessary in order to include all permissions
Role name. It must be unique and also cannot be full_access or default_access
Optional JSON-Logic access rule. Repeat the field for each rule
Was this helpful?
Your feedback helps us improve the docs.
Update Role
Request example
curl --request PUT \
--url 'https://api.account.truora.com/v1/roles/{role_name}' \
--header 'Truora-API-Key: {api_key}'
Request body
application/x-www-form-urlencodedHuman-readable description of the role
checks.behavior
checks.country_all
checks.country_ar
checks.country_br
checks.country_cl
checks.country_co
checks.country_co_premium
checks.country_cr
checks.country_ec
checks.country_mx
checks.country_pa
checks.country_pe
truora.keys
truora.users
validations.cell_phone_validation_br
validations.cell_phone_validation_co
validations.cell_phone_validation_mx
validations.documents_validation_br
validations.documents_validation_co
validations.documents_validation_mx
validations.email_validation
validations.enterprise_data
validations.face_recognition
validations.identity_questions
validations.voice_recognition
Enter this field as many times as necessary in order to include all permissions
Role name. It must be unique and also cannot be full_access or default_access
Optional JSON-Logic access rule. Repeat the field for each rule
Path Parameters
The name of the role to operate on.
Was this helpful?
Your feedback helps us improve the docs.
List Permissions
Request example
curl --request GET \
--url 'https://api.account.truora.com/v1/permissions' \
--header 'Truora-API-Key: {api_key}'
Query Parameters
Optional. Use list=user to return the calling user’s role permissions instead of the account master set.
Was this helpful?
Your feedback helps us improve the docs.
List Roles
Request example
curl --request GET \
--url 'https://api.account.truora.com/v1/roles' \
--header 'Truora-API-Key: {api_key}'
Query Parameters
Pagination cursor taken from the next link of a previous response.
Was this helpful?
Your feedback helps us improve the docs.
Get Role
Request example
curl --request GET \
--url 'https://api.account.truora.com/v1/roles/{role_name}' \
--header 'Truora-API-Key: {api_key}'
Path Parameters
The name of the role to operate on.
Was this helpful?
Your feedback helps us improve the docs.
Digital Identity
NOTE: Truora provides a Postman collection online that includes the necessary tools to simplify the testing process.
Truora Digital Identity (Truora DI) is a versatile platform that allows you to create a personalized process for authenticating your users. It enables you to utilize a range of Validators in a single process to simplify user identity verification. The Validators enable diverse actions, ranging from verifying that a phone or email belongs to the user, to matching users´ biometrics against government sources. The platform offers the flexibility to create the processes securely and without introducing complexity to the user experience, ensuring your new users can promptly access and enjoy your services.
Authentication
To access Truora’s services and perform API calls securely, you need to authenticate your requests. This is done by including a specific authentication token, known as the ”Truora-API-Key” in the header of your requests.
By providing this key in your API requests, you establish a secure and authorized connection, enabling seamless interaction with Truora’s services.
Base URL
https://api.identity.truora.com
Web
Digital Identity Web is a versatile platform that allows you to create a customized process to authenticate your users. It allows you to use a number of validators in a unique process to simplify user identity verification.
Here you will find the endpoints you need to create process links and get results. If you need to create process flows please see the Documentation.
Send Identity Process Link
Request example
curl --request POST \
--url 'https://api.identity.truora.com/v1/web-integration/{flow}/process-access-link' \
--header 'Truora-API-Key: {api_key}' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data '{"lang":"en","message_channel":"whatsapp","phone_number":"string"}'
Request body
application/x-www-form-urlencodedIndicates the phone number of the person to whom the link will be sent. This parameter must be provided in E.164 format (e.g., +573001112233 for Colombia).
whatsapp
email
sms
Indicates the channel through which the link to initiate the validation will be sent. Before selecting the channel, note that some problems may occur when receiving the SMS due to external protocols of mobile service providers.
en
es
pt
Indicates the language of the message explaining why the validation link is being sent. This parameter must be sent using the ISO 639-1 lowercase format.
Target email address. Required if message_channel is set to email. Must follow a valid email format.
Identifier for the outbound message to use. Required if message_channel is set to whatsapp. Must be valid for redirection.
Template variables required for the outbound message. To use these variables, outbound_id must be explicitly set.
Was this helpful?
Your feedback helps us improve the docs.
Generate Token
Request example
curl --request POST \
--url 'https://api.identity.truora.com/v1/api-keys' \
--header 'Truora-API-Key: {api_key}' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data '{"key_type":"backend"}'
Request body
application/x-www-form-urlencodedbackend
web
API key type
ALL
BR
CL
CO
CR
EC
MX
PE
AR
SV
Country for the identity verification process. Required only if grant is set to digital-identity
List of emails to be validated during the identity verification process
URL where the user is to be redirected once the verification process has ended. Required if grant is set to digital-identity
Billing hubs allow for separated counters and billing. Required if the customer uses billing hubs
passport
driver-license
foreign-id
national-id
pep
Document type for the identity verification process. Only used if grant is set to digital-identity
Validation flow to be performed for the identity verification process. Required only if grant is set to digital-identity
digital-identity
signals
Indicates which service this API key grants access to. Required if key_type is set to web or sdk
API key name. Required only if key_type was set to backend
List of phone numbers to be validated during the identity verification process
User identifier for the person who will perform digital-identity validation. Only used if grant is set to digital-identity. If not sent it is generated automatically. Note that only Account IDs following the regex pattern [a-zA-Z0-9_.-]+ are supported. Please go to Create an Account ID to learn more about it.
API key version. Version 0 is used by default
Was this helpful?
Your feedback helps us improve the docs.
Download Process PDF
Retrieves the PDF document for a specified process by its ID.
If the PDF has not been requested before, it is generated first, progressing through:
- 202 Accepted →
"file_status":"requested" - 202 Accepted →
"file_status":"in_progress" - 302 Found * → Redirects to the PDF file when ready
- 200 OK → Returns the file
If the PDF has already been generated, the response immediately returns:
- 302 Found * → Redirects to the PDF file when ready
- 200 OK → Returns the file
Polling: If the file is not ready (202 Accepted), retry until 302 Found or 200 OK.
* 302 Redirect Handling: Most API clients and browsers follow redirects automatically. However, if your API client does not, extract the Location header containing the PDF’s URL and make a GET request to download the file.
Request example
curl --request GET \
--url 'https://api.identity.truora.com/v1/processes/{process_id}/pdf' \
--header 'Truora-API-Key: {api_key}'
Path Parameters
The ID of the completed process for which the PDF is requested.
Was this helpful?
Your feedback helps us improve the docs.
Get Result
Allows you to retrieve the current status and details of a process. The status begins as pending and updates to either success or failure when the process completes.
- Pending: The process is still ongoing.
- Success: All steps in the process have been successfully completed. If the flow includes validators, all
validation_statusvalues must also be successful. - Failure: Occurs due to an internal error, timeout, or if the process is declined or expired.
Here’s a comprehensive list of reasons why a process or validation might be declined or expired, as recorded in the declined_reason and expired_reason fields:
If a process includes validators and the identity process times out because a validation did not complete, but all inputs have been uploaded, the system grants an additional 5 minutes to receive a validation response with the final status. This behavior occurs up to 3 times.
On the final attempt to retrieve the validation response, if the validation remains in the pending status, the identity process status will update to failure, with failure_status set to expired.
If a process includes the attributes override_status and override_status_history, it means the final status was modified by an authorized user. In this case, use the override_status attribute instead of status to determine the final status of the process. The override_status_history attribute will contain the history of changes made to the status.
Request example
curl --request GET \
--url 'https://api.identity.truora.com/v1/processes/{process_id}/result' \
--header 'Truora-API-Key: {api_key}'
Path Parameters
The ID of the process for which results are being retrieved.
Was this helpful?
Your feedback helps us improve the docs.
Download Process Video Call Recordings
Retrieves the video call recordings for a specified process by its ID.
If the video call recordings have not been requested before, it is generated first, progressing through:
- 202 Accepted →
"file_status":"requested" - 202 Accepted →
"file_status":"in_progress" - 302 Found * → Redirects to the video call recordings file when ready
- 200 OK → Returns the file
If the video call recordings have already been generated, the response immediately returns:
- 302 Found * → Redirects to the video call recordings file when ready
- 200 OK → Returns the file
Polling: If the file is not ready (202 Accepted), retry until 302 Found or 200 OK.
* 302 Redirect Handling: Most API clients and browsers follow redirects automatically. However, if your API client does not, extract the Location header containing the video call recordings’s URL and make a GET request to download the file.
Request example
curl --request GET \
--url 'https://api.identity.truora.com/v1/processes/{process_id}/video-call-recordings' \
--header 'Truora-API-Key: {api_key}'
Path Parameters
The ID of the completed process for which the video call recordings is requested.
Was this helpful?
Your feedback helps us improve the docs.
Manage WhatsApp Business lines, inbound flows, campaigns, and sessions.
Create Inbound Flows
Set up inbound message that triggers a specific flow. All inputs are required for inbound creation.
To finish the inbound creation process, you must access the following link, by adding the PhoneNumber and the activating message. when you need to put a space in the activation message write this code %20
https://api.whatsapp.com/send/?phone=PhoneNumber&text=activatingmessage
Example https://api.whatsapp.com/send/?phone=57317770000&text=Hola%20Truora
Request example
curl --request POST \
--url 'https://api.identity.truora.com/v1/whatsapp/inbounds' \
--header 'Truora-API-Key: {api_key}'
Request body
application/x-www-form-urlencodedIdentifier of the Flow previously created.
Unique message the users will be sending to the business WhatsApp (WABA) in order to begin the Flow.
Phone number of the WABA that interacts with the users. Must include the country code. Example 14080001111.
Was this helpful?
Your feedback helps us improve the docs.
Create WABA subscription
Request example
curl --request POST \
--url 'https://api.identity.truora.com/v1/whatsapp/waba-subscription' \
--header 'Truora-API-Key: {api_key}'
Was this helpful?
Your feedback helps us improve the docs.
Provider Statuses
Request example
curl --request POST \
--url 'https://api.identity.truora.com/v1/whatsapp/{provider}/statuses' \
--header 'Truora-API-Key: {api_key}'
Was this helpful?
Your feedback helps us improve the docs.
Cancell Campaign
Request example
curl --request POST \
--url 'https://api.identity.truora.com/v1/whatsapp/campaigns/{campaign_id}/cancel' \
--header 'Truora-API-Key: {api_key}'
Was this helpful?
Your feedback helps us improve the docs.
Finish WhatsApp session
Request example
curl --request POST \
--url 'https://api.identity.truora.com/v1/whatsapp/finish-whatsapp-session' \
--header 'Truora-API-Key: {api_key}'
Was this helpful?
Your feedback helps us improve the docs.
Update Inbound Flow
Allows updating an inbound flow.
Note: Do not forget that if you already have a whatsapp link created and you update it, you must generate a new link.
Request example
curl --request POST \
--url 'https://api.identity.truora.com/v1/whatsapp/inbounds/{inbound_flow_id}' \
--header 'Truora-API-Key: {api_key}'
Request body
application/x-www-form-urlencodedIdentifier of the Flow previously created.
Unique message the users will be sending to the business WhatsApp (WABA) in order to begin the Flow.
Phone number of the WABA that interacts with the users. Must include the country code. Example 14080001111.
Was this helpful?
Your feedback helps us improve the docs.
Put WABA Line config
Request example
curl --request PUT \
--url 'https://api.identity.truora.com/v1/whatsapp/lines/{waba_line}/config' \
--header 'Truora-API-Key: {api_key}'
Path Parameters
The default_flow_id parameter is used to specify the ID of the default flow to be used in a WABA Line
Was this helpful?
Your feedback helps us improve the docs.
Get WABA Line
Request example
curl --request GET \
--url 'https://api.identity.truora.com/v1/whatsapp/lines/{waba_line}' \
--header 'Truora-API-Key: {api_key}'
Was this helpful?
Your feedback helps us improve the docs.
Get Inbound Flow
Request example
curl --request GET \
--url 'https://api.identity.truora.com/v1/whatsapp/inbounds/{inbound_flow_id}' \
--header 'Truora-API-Key: {api_key}'
Path Parameters
Unique identifier of inbound flows
Was this helpful?
Your feedback helps us improve the docs.
List Inbound Flows
Request example
curl --request GET \
--url 'https://api.identity.truora.com/v1/whatsapp/inbounds' \
--header 'Truora-API-Key: {api_key}'
Query Parameters
[Optional] start key value for pagination, if you want to go to the previous or next page.
Was this helpful?
Your feedback helps us improve the docs.
List WABA Lines
Request example
curl --request GET \
--url 'https://api.identity.truora.com/v1/whatsapp/lines' \
--header 'Truora-API-Key: {api_key}'
Was this helpful?
Your feedback helps us improve the docs.
Get Result
Allows you to retrieve the current status and details of a process. The status begins as pending and updates to either success or failure when the process completes.
- Pending: The process is still ongoing.
- Success: All steps in the process have been successfully completed. If the flow includes validators, all
validation_statusvalues must also be successful. - Failure: Occurs due to an internal error, timeout, or if the process is declined or expired.
Here’s a comprehensive list of reasons why a process or validation might be declined or expired, as recorded in the declined_reason and expired_reason fields:
If a process includes validators and the identity process times out because a validation did not complete, but all inputs have been uploaded, the system grants an additional 5 minutes to receive a validation response with the final status. This behavior occurs up to 3 times.
On the final attempt to retrieve the validation response, if the validation remains in the pending status, the identity process status will update to failure, with failure_status set to expired.
If a process includes the attributes override_status and override_status_history, it means the final status was modified by an authorized user. In this case, use the override_status attribute instead of status to determine the final status of the process. The override_status_history attribute will contain the history of changes made to the status.
Request example
curl --request GET \
--url 'https://api.identity.truora.com/v1/processes/{process_id}/result' \
--header 'Truora-API-Key: {api_key}'
Path Parameters
The ID of the process for which results are being retrieved.
Was this helpful?
Your feedback helps us improve the docs.
Get Campaign
Request example
curl --request GET \
--url 'https://api.identity.truora.com/v1/whatsapp/campaigns/{campaign_id}' \
--header 'Truora-API-Key: {api_key}'
Path Parameters
Unique identifier for the campaign
Was this helpful?
Your feedback helps us improve the docs.
Get Process Validations
Request example
curl --request GET \
--url 'https://api.identity.truora.com/v1/processes/{process_id}/validations' \
--header 'Truora-API-Key: {api_key}'
Was this helpful?
Your feedback helps us improve the docs.
List WABAs
Request example
curl --request GET \
--url 'https://api.identity.truora.com/v1/whatsapp/wabas' \
--header 'Truora-API-Key: {api_key}'
Was this helpful?
Your feedback helps us improve the docs.
Remove Inbound Flow
Request example
curl --request DELETE \
--url 'https://api.identity.truora.com/v1/whatsapp/inbounds/{inbound_flow_id}' \
--header 'Truora-API-Key: {api_key}'
Was this helpful?
Your feedback helps us improve the docs.
Update WABA Line
Request example
curl --request PATCH \
--url 'https://api.identity.truora.com/v1/whatsapp/lines/{waba_line}' \
--header 'Truora-API-Key: {api_key}'
Was this helpful?
Your feedback helps us improve the docs.
WA Engagement
Increase your customer engagement by automating your customer service, marketing and sales process in WhatsApp.
Delete Agent Templates
Request example
curl --request POST \
--url 'https://api.identity.truora.com/v1/engagement/agent/templates/delete' \
--header 'Truora-API-Key: {api_key}' \
--header 'Content-Type: application/json' \
--data '{"template_names":"string"}'
Request body
application/jsonArray of the names of the templates that should be deleted.
Was this helpful?
Your feedback helps us improve the docs.
Update agent capacity settings
Request example
curl --request POST \
--url 'https://api.identity.truora.com/v1/engagement/agent/capacities' \
--header 'Truora-API-Key: {api_key}' \
--header 'Content-Type: application/json' \
--data '{"update_type":"user"}'
Request body
application/jsonuser
default
toggle_capacity
Determines the type of update to be performed. “toggle_capacity” is used to enable or disable the agent capacity feature. The other types are used to update default or user-specific capacity settings.
Capacity value to use for the update. Not required for “toggle_capacity” update type.
List of targets whose settings will be updated. Only required for “user” update type.
Was this helpful?
Your feedback helps us improve the docs.
Send Outbound Message
status needs to be APPROVED before it can be sent.Request example
curl --request POST \
--url 'https://api.identity.truora.com/v1/whatsapp/outbounds/send' \
--header 'Truora-API-Key: {api_key}'
Request body
application/x-www-form-urlencodedThis field is used as a unique identifier for your user in the Truora’ system. If you send it, outbound messages sent to each user will be linked through this. Note that only Account IDs following the regex pattern [a-zA-Z0-9_.-]+ are supported. Please go to Create an Account ID to learn more about it.
[Required] Country code for the user phone number. Example: +57
[Required] If the Outbound Message is_notification field is false. Contains the FlowID of the flow that will start when the Outbound message is accepted by the user.
Example: IPF123
[Required] ID of an approved Outbound Message. Example: OTB123
[Required] Phone number without the country code of the user that will receive the message. Example: 0001234567
[Required] Must be true for starting the conversation.
User has authorized to be contacted through WhatsApp.
[Required] If the outbound message has variables like hello {{.name}} {{.lastname}}. The value must be the desired value of the variable.
It is important to send as many key-value pairs as variables present in the message.
Example: for the first variable var.name: Roger and for the second variable var.lastname: Federer.
Was this helpful?
Your feedback helps us improve the docs.
Update agent status
Request example
curl --request POST \
--url 'https://api.identity.truora.com/v1/engagement/agent/status' \
--header 'Truora-API-Key: {api_key}' \
--header 'Content-Type: application/json' \
--data '{"status":"online","username":"string"}'
Request body
application/jsonDetermines the user whose status will be updated.
online
offline
The new status the user will have.
Was this helpful?
Your feedback helps us improve the docs.
Create Outbound Messages
Creates an Outbound Message that allows sending messages to users as a first interaction. Each outbound message has two dynamic evaluations assigned by Meta: a status and a quality rating. Both are subject to change over time based on review processes and user feedback.
Status values:
PENDING: The outbound is under review by Meta and cannot be sent yet.APPROVED: The outbound has been approved and is eligible to be sent.REJECTED: The outbound was rejected by Meta and cannot be used.FLAGGED: The outbound has received a low quality rating. This is a warning state. If the quality improves to HIGH or MEDIUM for 7 consecutive days, the status will revert to APPROVED.DISABLED: The outbound maintained a low quality rating for over 7 days and was disabled. It cannot be edited or used to send messages.PAUSED: The outbound has been temporarily paused and cannot be sent.
Quality rating values:
HIGH: High read rate with no negative feedback (e.g., spam reports or blocks).MEDIUM: Some negative signals such as low engagement, spam reports, or occasional blocks.LOW: Frequent user reports, blocks, or very low engagement; the template may be paused.PENDING: Default value when the template is created. There is not enough data yet to evaluate quality.
Request example
curl --request POST \
--url 'https://api.identity.truora.com/v1/whatsapp/outbounds' \
--header 'Truora-API-Key: {api_key}' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data '{"category":"MARKETING","is_notification":true,"language_code":"en","outbound_name":"string","template_type":"TEXT","waba_phone_number":"string"}'
Request body
application/x-www-form-urlencodedTEXT
IMAGE
VIDEO
DOCUMENT
Defines the type of content included in the outbound message. Use TEXT when the message does not contain any media elements (image, video, or document).
Supported media types:
- IMAGE: image/jpeg, image/png (max 5 MB)
- VIDEO: video/mp4, video/3gpp (max 16 MB)
- DOCUMENT: Any valid MIME type (max 100 MB)
If category is AUTHENTICATION, only the TEXT template type is allowed.
en
en_GB
en_US
es
es_AR
es_MX
es_ES
pt_BR
pt_PT
Language code for the outbound message content.
Indicates whether the outbound message is a notification (true) or initiates a flow (false).
If set to true, the outbound is considered a notification and cannot be associated with a flow upon sending. Additionally, notification-type outbounds cannot include QUICK_REPLY buttons.
WABA Line (WhatsApp Business Account Phone Number) used to send the outbound message.
Identifier name for the outbound message.
Maximum 512 characters.
MARKETING
AUTHENTICATION
UTILITY
Message category. Refer to the Meta Template Categorization to determine the appropriate category when creating outbound messages.
Applicable only if category is MARKETING or UTILITY.
Optional plain text footer displayed immediately after the body component.
Maximum 60 characters.
Applicable only if category is AUTHENTICATION.
Set this as an integer to include a footer in the message indicating how many minutes remain before the authentication code expires. If omitted, no expiration footer will be shown.
The footer text is predefined based on the selected language_code. Examples:
- Spanish (es):
Este código caduca en <code_expiration_minutes> minutos. - English (en):
This code expires in <code_expiration_minutes> minutes. - Portuguese (pt_BR):
Este código expira em <code_expiration_minutes> minutos.
Valid values range from 1 to 90 minutes.
Applicable only if category is MARKETING or UTILITY.
Main message body in plain text. You may include multiple variables; use double curly braces: {{.variable_name}}.
-
Example without variables:
Shop our Holiday sale now! -
Example with variables:
Shop now through {{.website_url}} and use code {{.promo_code}} to get {{.discount_percentage}} off all merchandise.
Maximum 1024 characters.
If category is AUTHENTICATION, the message content is predefined based on the selected language and cannot be customized. A single variable ({{.code}}) is always used for the code value, and it must be provided each time the message is sent. Examples:
- Spanish (es):
Tu código de verificación es {{.code}}. Por tu seguridad, no lo compartas. - English (en):
{{.code}} is your verification code. For your security, do not share this code. - Portuguese (pt_BR):
Seu código de verificação é {{.code}}. Para sua segurança, não o compartilhe.
Optional interactive buttons that perform actions when tapped. Outbound messages can include up to 10 buttons in total.
This field is not available for outbounds with category set to AUTHENTICATION, since in that case a predefined COPY_CODE button is automatically included.
Each button in the array is an object with the following properties:
-
type(string): Type of button. Must be one of:QUICK_REPLY: Text-only buttons that send a predefined message when tapped. Up to 10 allowed. Must be grouped separately from non-quick reply buttons.URL: Opens a website when tapped. Up to 2 allowed.PHONE_NUMBER: Initiates a call to the specified number. Only 1 allowed.COPY_CODE: Copies a string to the clipboard. Only 1 allowed. Only supported ifcategoryis equal toMARKETING. A single variable ({{.code}}) is always used for the value to be copied, and it must be provided each time the message is sent. Maximum 15 characters.
-
text(string): Label of the button. Maximum 25 characters. ForCOPY_CODEbuttons, this must be an empty string ("") because the label is automatically set based on thelanguage_code. -
url(string): Required iftypeisURL. Website URL. Max 2000 characters. Supports 1 variable at the end; use double curly braces:{{.variable_name}}. The URL must include a valid host and use either thehttporhttpsscheme. For example,https://www.example.com/{{.url_path}}is valid, butftp://...or a URL without a hostname is not. -
phone_number(string): Required iftypeisPHONE_NUMBER. Business phone number to call. Max 20 characters.
The order of the buttons is determined by their position in the array — the first element (index 0) will be displayed as the first button, the second (index 1) as the second, and so on.
Button usage rules by outbound type:
- Notification outbounds (
is_notification = true) cannot includeQUICK_REPLYbuttons. - Flow-trigger outbounds (
is_notification = false) can include any combination of button types.
Valid groupings:
- QUICK_REPLY, QUICK_REPLY
- QUICK_REPLY, QUICK_REPLY, URL, PHONE_NUMBER
- URL, PHONE_NUMBER, QUICK_REPLY, QUICK_REPLY
Invalid groupings:
- QUICK_REPLY, URL, QUICK_REPLY
- URL, QUICK_REPLY, URL
Outbound messages containing 4 or more buttons, or a combination of a quick reply button and one or more buttons of another type, are not visible on WhatsApp desktop clients. Users receiving such messages will be prompted to view them on a mobile device.
Required if template_type is a media type (IMAGE, VIDEO, DOCUMENT).
This is the ID of the file previously uploaded to the Media service, which will be used as the media content in the message.
Object that defines the example values for each variable used in the outbound message. These variables are referenced in the content, header_text, URL buttons, or the code placeholder in AUTHENTICATION messages.
This object is only used as a sample for validating and previewing the outbound message during creation. It does not affect the actual content sent to end users.
Each key in this object must match the variable name used in the message template (without the {{. }} notation), and the value should be an object with a single field:
value(string): Example value assigned to the variable.
Example:
If your message contains:
"header_text": "Our new sale starts {{.sale_start_date}}!",
"content": "Shop now through {{.website_url}} and use code {{.promo_code}} to get {{.discount_percentage}} off all merchandise."
Then the var object should look like:
"var": {
"sale_start_date": { "value": "today" },
"website_url": { "value": "truora.com" },
"promo_code": { "value": "summerTruora2025" },
"discount_percentage": { "value": "25%" }
}
Applicable only if category is MARKETING or UTILITY and template_type is TEXT.
Optional text header that appears at the top of the outbound message. You can include up to one variable; use double curly braces: {{.variable_name}}.
-
Example without variable:
Our Holiday sale starts December 1st! -
Example with variable:
Our new sale starts {{.sale_start_date}}!
Maximum 60 characters.
Was this helpful?
Your feedback helps us improve the docs.
Create Agent Template
Request example
curl --request POST \
--url 'https://api.identity.truora.com/v1/engagement/agent/templates' \
--header 'Truora-API-Key: {api_key}' \
--header 'Content-Type: application/json' \
--data '{"template_name":"string","template_type":"text"}'
Request body
application/jsontext
Type of the template, which defines the content of the template.
Name of the template.
Was this helpful?
Your feedback helps us improve the docs.
Request a new chat export
Request example
curl --request POST \
--url 'https://api.identity.truora.com/v1/engagement/chat/export' \
--header 'Truora-API-Key: {api_key}' \
--header 'Content-Type: application/json' \
--data '{"export_format":"tsv","export_type":"all_chats","language":"en","time_range_end_date":"string","time_range_start_date":"string"}'
Request body
application/jsonen
pt
es
Language used in the formatting of the export output files.
all_chats
single_chat
Type of the export. Defines the scope of the chats included in it.
tsv
Format of the file or files the export request generates as output.
Date defining the start of the time range that should be used for the export. Currently only year and month are taken into account.
Date defining the end of the time range that should be used for the export. Currently only year and month are taken into account.
ID of the chat that will be exported. Only required if export_type is “single_chat”.
Optional name for the export request.
Was this helpful?
Your feedback helps us improve the docs.
Force chat assignment dequeue
Request example
curl --request POST \
--url 'https://api.identity.truora.com/v1/engagement/chat/{chat_id}/force-dequeue' \
--header 'Truora-API-Key: {api_key}' \
--header 'Content-Type: application/json' \
--data '{"assignment_type":"specific_agent"}'
Request body
application/jsonspecific_agent
The strategy used to override the assignment request.
The assignment target. Only required for certain assignment types. For specific agent assignments, it must be the agent’s email.
Was this helpful?
Your feedback helps us improve the docs.
Send a message to a chat
Request example
curl --request POST \
--url 'https://api.identity.truora.com/v1/engagement/chat/{chat_id}/send' \
--header 'Truora-API-Key: {api_key}'
Path Parameters
ID of the chat to send the message in.
Was this helpful?
Your feedback helps us improve the docs.
Update Outbound Message
Request example
curl --request PUT \
--url 'https://api.identity.truora.com/v1/whatsapp/outbounds/{outbound_id}' \
--header 'Truora-API-Key: {api_key}'
Was this helpful?
Your feedback helps us improve the docs.
Update Agent Template
Request example
curl --request PUT \
--url 'https://api.identity.truora.com/v1/engagement/agent/templates/{template_name}' \
--header 'Truora-API-Key: {api_key}' \
--header 'Content-Type: application/json' \
--data '{"template_type":"text"}'
Request body
application/jsontext
Type of the template, which defines the content of the template.
Was this helpful?
Your feedback helps us improve the docs.
Update chat owner/status
Request example
curl --request PUT \
--url 'https://api.identity.truora.com/v1/engagement/chat/agent/{chat_id}' \
--header 'Truora-API-Key: {api_key}'
Request body
application/jsonThe email of the agent that will become the chat’s owner.
open
closed
The new status of the chat.
Path Parameters
ID of the chat to be updated.
Was this helpful?
Your feedback helps us improve the docs.
Download Process PDF
Retrieves the PDF document for a specified process by its ID.
If the PDF has not been requested before, it is generated first, progressing through:
- 202 Accepted →
"file_status":"requested" - 202 Accepted →
"file_status":"in_progress" - 302 Found * → Redirects to the PDF file when ready
- 200 OK → Returns the file
If the PDF has already been generated, the response immediately returns:
- 302 Found * → Redirects to the PDF file when ready
- 200 OK → Returns the file
Polling: If the file is not ready (202 Accepted), retry until 302 Found or 200 OK.
* 302 Redirect Handling: Most API clients and browsers follow redirects automatically. However, if your API client does not, extract the Location header containing the PDF’s URL and make a GET request to download the file.
Request example
curl --request GET \
--url 'https://api.identity.truora.com/v1/processes/{process_id}/pdf' \
--header 'Truora-API-Key: {api_key}'
Path Parameters
The ID of the completed process for which the PDF is requested.
Was this helpful?
Your feedback helps us improve the docs.
Search Chats
Request example
curl --request GET \
--url 'https://api.identity.truora.com/v1/engagement/chat/search' \
--header 'Truora-API-Key: {api_key}'
Query Parameters
Filter used to search chats based on either their corresponding contact’s name or phone number.
If set to “true”, only chats whose assignments are currently enqueued will be returned.
Filter to limit results based on chats’ last activity dates. Must be provided alongside “to_last_activity_date” param to work.
If provided, only chats whose latest activity corresponds to the given actor type are returned.
If provided, only chats whose latest activity is of the given type are returned.
If provided, only chats with the specified owner will be returned.
Used for pagination purposes. Responses will include this value in case there are further result pages.
Allowed: open | closed | UNASSIGNED
If provided, only chats that have any of the specified tags will be returned.
Filter to limit results based on chats’ last activity dates. Must be provided alongside “from_last_activity_date” param to work.
Was this helpful?
Your feedback helps us improve the docs.
Get Chat
Request example
curl --request GET \
--url 'https://api.identity.truora.com/v1/engagement/chat/{chat_id}' \
--header 'Truora-API-Key: {api_key}'
Path Parameters
ID of the chat to get.
Was this helpful?
Your feedback helps us improve the docs.
Get Channels
Request example
curl --request GET \
--url 'https://api.identity.truora.com/v1/engagement/channels' \
--header 'Truora-API-Key: {api_key}'
Query Parameters
Used for pagination purposes. Responses will include this value in case there are further result pages.
Was this helpful?
Your feedback helps us improve the docs.
Get ICE servers
Request example
curl --request GET \
--url 'https://api.identity.truora.com/v1/engagement/calling/ice-servers' \
--header 'Truora-API-Key: {api_key}'
Was this helpful?
Your feedback helps us improve the docs.
List chat exports
Request example
curl --request GET \
--url 'https://api.identity.truora.com/v1/engagement/chat/export' \
--header 'Truora-API-Key: {api_key}'
Query Parameters
Filter by the exported chat ID. Only applicable for single_chat exports.
Filter exports by time range end date. Must be in RFC3339 format.
Filter by export format. Allowed values: tsv.
Filter by export name. Only exports whose names contain this value will be returned (case-insensitive).
Filter by export type. Allowed values: all_chats, single_chat.
Filter by the language used in the export output. Allowed values: en, es, pt.
Maximum number of results to return per page.
If provided, only exports requested by the specified actor will be returned.
Filter exports by time range start date. Must be in RFC3339 format.
Pagination cursor. Use the value from the previous response’s next URL to fetch the next page.
Was this helpful?
Your feedback helps us improve the docs.
Get groups counters
Request example
curl --request GET \
--url 'https://api.identity.truora.com/v1/engagement/agent/groups/counters' \
--header 'Truora-API-Key: {api_key}'
Was this helpful?
Your feedback helps us improve the docs.
Search Chat Activities
Request example
curl --request GET \
--url 'https://api.identity.truora.com/v1/engagement/chat/{chat_id}/activities' \
--header 'Truora-API-Key: {api_key}'
Path Parameters
ID of the chat the activities belong to.
Query Parameters
If provided, only activities whose actor is of the specified type will be returned.
Used for pagination purposes. Responses will include this value in case there are further result pages.
If provided, only activities with the specified type will be returned.
Was this helpful?
Your feedback helps us improve the docs.
Get Assignment Ruleset
Request example
curl --request GET \
--url 'https://api.identity.truora.com/v1/engagement/agent/assignment-rulesets/{ruleset_id}' \
--header 'Truora-API-Key: {api_key}'
Path Parameters
ID of the ruleset to get
Was this helpful?
Your feedback helps us improve the docs.
Download Process Video Call Recordings
Retrieves the video call recordings for a specified process by its ID.
If the video call recordings have not been requested before, it is generated first, progressing through:
- 202 Accepted →
"file_status":"requested" - 202 Accepted →
"file_status":"in_progress" - 302 Found * → Redirects to the video call recordings file when ready
- 200 OK → Returns the file
If the video call recordings have already been generated, the response immediately returns:
- 302 Found * → Redirects to the video call recordings file when ready
- 200 OK → Returns the file
Polling: If the file is not ready (202 Accepted), retry until 302 Found or 200 OK.
* 302 Redirect Handling: Most API clients and browsers follow redirects automatically. However, if your API client does not, extract the Location header containing the video call recordings’s URL and make a GET request to download the file.
Request example
curl --request GET \
--url 'https://api.identity.truora.com/v1/processes/{process_id}/video-call-recordings' \
--header 'Truora-API-Key: {api_key}'
Path Parameters
The ID of the completed process for which the video call recordings is requested.
Was this helpful?
Your feedback helps us improve the docs.
List Outbound Messages
Request example
curl --request GET \
--url 'https://api.identity.truora.com/v1/whatsapp/outbounds?line={line}' \
--header 'Truora-API-Key: {api_key}'
Query Parameters
If ’true’, the response includes pagination (outbounds, self, next). If ‘false’ or not sent, the response is just the array of outbounds, and if there are no results, it may return 404.
Default flow ID to filter outbounds associated with that flow. Example: IPF123456
Allowed: MARKETING | UTILITY | AUTHENTICATION
WhatsApp business account line (WABA). Do not forget that you must add the country code followed by the number. Example: 1432567893
Search text for the outbounds, or outbound ID when the value starts with the OTB prefix. If it starts with OTB, only that outbound is returned (search by ID). Example: OTB123456
Cursor for pagination. Use the value returned in the next link of the previous response to fetch the next page. Omit for the first page.
Allowed: APPROVED | PENDING | REJECTED | PAUSED | PENDING_DELETION | DISABLED | FLAGGED
Was this helpful?
Your feedback helps us improve the docs.
Get Agent Templates
Request example
curl --request GET \
--url 'https://api.identity.truora.com/v1/engagement/agent/templates' \
--header 'Truora-API-Key: {api_key}'