List integrated accounts ​
Integrated accounts are created when a customer connects an app with Truto. You can use this endpoint to list all the integrated accounts that have been created for your Truto account.
Integrated accounts for a specific customer ​
You can filter the integrated accounts by specifying the tenant_id
attribute in the query string. This is useful when you want to look up an integrated account for a specific customer.
Endpoint ​
GET /integrated-account
Query parameters ​
Refer Specifying query parameters in Truto APIs
The ID of the tenant you want to filter the integrated accounts by.
acme-1
Whether the integrated account is in sandbox mode or not. Sandbox integrated accounts do not allow any "write" operations.
The name of the integration you want to filter the integrated accounts by.
zendesk
Filter the integrated accounts by the ones using SuperQuery. The value will be the SuperQuery region.
apac
wnam
apac
Filter the integrated accounts by status.
active
connecting
post_install_error
validation_error
needs_reauth
active
Filter the integrated accounts by the date and time when they were created.
2021-08-10T10:00:00.000Z
Filter the integrated accounts by the date and time when they were last updated.
2021-08-10T10:00:00.000Z
Response Body ​
The ID of the integrated account.
1ba1f401-7183-47c5-9e39-e8e257e3c795
The ID of the tenant.
acme-1
The ID of the environment integration (installed integration).
b179ad55-db02-4bd4-b7a4-d2c173eee9ae
The context of the integrated account. You can find these in the Variables
section of an integrated account in the Truto UI.
{
"zendesk_subdomain": "truto"
}
Status of the integrated account.
active
- Everything is fine and the account should workconnecting
- Post install and validation steps are being runpost_install_error
- There was an error while running post install stepsvalidation_error
- There was an error while running validation stepsneeds_reauth
- There was an error while refreshing the credentials in case of OAuth authentication or the credentials are no longer valid in other authentication methods. The integrated account needs to be reauthorized.
active
connecting
post_install_error
validation_error
needs_reauth
The last error that occurred while running the post install or validation steps.
The results of the post install and validation steps that ran on the integrated account.
The date and time when the integrated account was created.
2021-08-10T10:00:00.000Z
The date and time when the integrated account was last updated.
2021-08-10T10:00:00.000Z
Whether the integrated account is in sandbox mode or not. Sandbox integrated accounts do not allow any "write" operations.
Type of authentication used.
oauth2
api_key
oauth2_client_credentials
keka_oauth
The ID of the environment this integrated account belongs to.
8a2b104d-74a6-47f2-b93e-c6b611e82391
The integration associated with this integrated account.
The ID of the integration.
4a4de828-f4db-4c9e-adfd-434e0864c3c7
The name of the integration.
zendesk
The category of the integration.
helpdesk
Whether the integration is in beta or not. Beta integrations might not have been tested completely and are not recommended for production environments.
The configuration object defining the underlying API of the integration.
{
"base_url": "https://api.example.com",
"label": "Example API",
"logo": "https://example.com/logo.png",
"headers": {
"Content-Type": "application/json",
"Accept": "application/json",
"User-Agent": "truto"
},
"authorization": {
"format": "bearer",
"config": {
"value": "{{oauth.token.access_token}}"
}
},
"pagination": {
"format": "page",
"config": {
"page_key": "page",
"limit_key": "per_page"
}
},
"resources": {
"users": {
"list": {
"method": "get",
"path": "/users",
"response_path": "data.users"
}
}
}
}
The ID of the team that owns this integration.
05daecaf-4365-42e8-8370-8127de5dd717
The sharing policy of the integration. allow - Any Truto team can install, ask - Truto teams need to ask for permission to install, deny - Only your team can install.
allow
ask
deny
allow
The date and time when the integration was created.
2021-08-10T10:00:00.000Z
The date and time when the integration was last updated.
2021-08-10T10:00:00.000Z
The list of context fields that are stored in the object store.