Skip to main content

Authentication & Authorization

Creating API credentials

  1. Go to https://app.trusto.io and open Settings → API Credentials.
  2. As an Organization Owner, generate an API key for your organization.
  3. Save the key when it is created. It cannot be viewed again.
  4. Send the key in the X-API-KEY header with every API request.
API credentials screen The examples below use the production API at https://api.trusto.io.

Alerts

Retrieve all alerts

Returns a paginated collection of alerts available to the organization associated with the API key.

Endpoint

GET /api/v1/alerts

Request headers

Query parameters

Sample request

Response

The outcome property is null until a resolution is recorded. The list response also includes hoursLeft, which is 0 after an outcome exists.

Retrieve an alert by ID

Returns one alert, including its current outcome.

Endpoint

GET /api/v1/alerts/:id

Sample request

Resolved alert response

The example is abbreviated. Alert details use the same alert fields returned inside the list response.

Resolutions

Provide an alert resolution

Records a resolution for an unresolved alert and returns the updated alert with its nested outcome.

Endpoint

PUT /api/v1/alerts/:id/resolution

Request headers

Path parameters

Body parameters

When refunded is INVALID, use one of these resolution values:

Resolution results

Refunded request

Invalid request

Response

A successful request returns the updated alert object. Its status reflects the decision, and its outcome contains the stored resolution details. A resolution submitted for an alert that already has an outcome returns a conflict error. Provider failures return a bad request error and the resolution is not retained.

Webhooks

Webhooks enable organizations to receive event notifications about subscribed entities.

Supported events

Webhook authentication

Trusto can send either Basic Authentication or custom headers configured for the webhook endpoint.

Appendix

Alert types

  • ETHOCA_CONFIRMED_FRAUD
  • ETHOCA_CUSTOMER_DISPUTE
  • VERIFI_DISPUTE
  • VERIFI_CANCEL
  • VERIFI_DISPUTE_NOTICE
  • VERIFI_FRAUD_NOTICE
  • VERIFI_CANCEL_NOTICE

Alert outcome fields