Trustmary Integration API (1.0.0)

Download OpenAPI specification:Download

API key test

Authorizations:
ApiKeyAuth

Responses

Response samples

Content type
application/json
{
  • "message": "Your API key is working",
  • "organization_id": "testorg",
  • "organization_name": "Test Organization",
  • "api_key_name": "Test API key"
}

List contacts

Authorizations:
ApiKeyAuth
query Parameters
email
string

Email to filter by

offset
integer <int32>

Start offset for query

includeAll
boolean

Include also contacts marked as deleted.

Responses

Response samples

Content type
application/json
[
  • {
    }
]

Create or update contact

Authorizations:
ApiKeyAuth
Request Body schema: application/json
required

Contact data

email
required
string
name
string
eid
string
phone
string
company
string
type
string
Enum: "customer" "employee"
addToList
Array of strings

Responses

Request samples

Content type
application/json
{
  • "email": "string",
  • "name": "string",
  • "eid": "string",
  • "phone": "string",
  • "company": "string",
  • "type": "customer",
  • "addToList": [
    ]
}

Response samples

Content type
application/json
{
  • "contact": {
    },
  • "action": "IMPORT_CREATE",
  • "listsUpdated": 1
}

Delete contact

Authorizations:
ApiKeyAuth
Request Body schema: application/json
required
email
string

Responses

Request samples

Content type
application/json
{
  • "email": "string"
}

Response samples

Content type
application/json
{
  • "contact": {
    }
}

List contact lists

Authorizations:
ApiKeyAuth

Responses

Response samples

Content type
application/json
[
  • {
    }
]

List surveys

Authorizations:
ApiKeyAuth
query Parameters
type
string
Enum: "customer" "employee"

Survey type to filter by

offset
integer <int32>

Start offset for query

Responses

Response samples

Content type
application/json
[
  • {
    },
  • {
    }
]

Get survey information

Authorizations:
ApiKeyAuth
path Parameters
surveyId
required
string

String ID of the survey to get

Responses

Response samples

Content type
application/json
{
  • "id": "TN6I4tvo_",
  • "name": "NPS survey",
  • "organization_id": "testorg",
  • "type": "customer",
  • "status": "open",
  • "fields": [
    ]
}

List embeds owned by the API key holder

Authorizations:
ApiKeyAuth
query Parameters
offset
integer <int32>

Start offset for query

Responses

Response samples

Content type
application/json
[
  • {
    },
  • {
    }
]

List widgets owned by the API key holder

Authorizations:
ApiKeyAuth
query Parameters
offset
integer <int32>

Start offset for query

Responses

Response samples

Content type
application/json
[
  • {
    },
  • {
    }
]

List experiments owned by the API key holder

Authorizations:
ApiKeyAuth
query Parameters
offset
integer <int32>

Start offset for query

Responses

Response samples

Content type
application/json
[
  • {
    }
]

Retrieve a review connection by the ID or the slug property

Authorizations:
ApiKeyAuth
path Parameters
idOrSlug
required
string

The ID as returned by the review connection list operation or user-specified name (slug)

Responses

Response samples

Content type
application/json
{}

Delete a review connection by the ID or the slug property

Authorizations:
ApiKeyAuth
path Parameters
idOrSlug
required
string

The ID as returned by the review connection list operation or user-specified name (slug)

Update a review connection by the ID or the slug property

Authorizations:
ApiKeyAuth
path Parameters
idOrSlug
required
string

The ID as returned by the review connection list operation or user-specified name (slug)

Request Body schema: application/json
required
slug
string or null

User-specified name for the connection (unique), or null to unset

title
string or null

User-specified title for the connection (unique), or null to unset

Request samples

Content type
application/json
{
  • "slug": "my-hotel",
  • "title": "My hotel in Helsinki"
}

Create a new review connection by URL or source ID

Authorizations:
ApiKeyAuth
Request Body schema: application/json
required
One of
slug
string

Optional user-specified name for the review connection

title
string

Optional title for the review connection

targetUrl
string

The URL for the review service page. Connection parameters will be automatically parsed.

Responses

Request samples

Content type
application/json
Example
{}

Response samples

Content type
application/json
{
  • "id": "string"
}

List review connections

Authorizations:
ApiKeyAuth

Responses

Response samples

Content type
application/json
{}