CommandersAct API (2.0.0)

Download OpenAPI specification:Download

Information

This is the CommandersAct API Documentation.
This API uses JSONAPI specification to fetch, create and modify the resources, and to format responses.

It is highly recommended that you send multiple objects in one HTTP request. This API allows streaming using newline separated JSON format or ndjson

Rate-limits

  • You may send up to 30 requests per second
  • You may have up to 30 concurrent connections
  • If you send many conversions/products/etc. in bulk, the upload speed will be limited to 30 conversions/products/etc. per second

    Rate limiting examples

  • If you send 1 conversion per request you will be limited to 30 requests per second
  • If you send 90 conversions in one request your upload will be completed in about 3 seconds
  • If you send 40 requests, each with one conversion in the same second, 30 of them will be processed and 10 of them will be rejected
  • If you send 3 requests, each with 100 conversions they will be completed in 10 seconds

Date formats

Use the long format with timezone for passing ISO-8601 dates. The following formats are accepted:

  • "2019-04-29T13:47:47.315Z"
  • "2019-04-29T13:47:47Z"
  • "2019-04-29T13:47:47.315+02:00"
  • "2019-04-29T13:47:47+02:00"

Errors

Errors are always returned as an array of objects in the top-level "errors" property.

Errors in bulk operations

For bulk operations you may have "errors" and "data" properties at the same time since some objects may have errors while others may not. Bulk errors are aggregated which means there won't be an error for each instance of an error but one error for each type of error with the number of occurrences and some examples of line numbers or ids.

{
  "errors": [
    {
      "code": "YOU_CAN_CHECK_THIS_IN_CODE",
      "detail": "This explains the error",
      "meta": {
        "context_property_example": "value_example",
        "error_count": 3,
        "line_numbers": [34, 45],
        "ids": [
          "c9017b85-8016-4f13-88b4-18d57c67b866",
          "12e0c3cb-7e8d-462f-9232-f7c61a900738"
        ]
      }
    }
  ]
  "data": {
    "accepted_object_count": 4,
    "rejected_object_count": 3
  }
}

Error object

Error objects have the following properties

Property Type Required Description
code string true Always present and contains error code that can be checked programmatically
detail string true Human readable message that explains the problem. You should not check the value of this property programmatically because it may change
meta object false Error specific object that contains details about what generated the error

Authentication

UserAuthentication

This authenticate user to use the API You MUST send the token for each request in the Authorization header. The token MUST be preceeded by Bearer.

    GET https://api.commander1.com/v2/{siteId}/users HTTP/1.1
    Host: api.commander1.com
    Authorization: Bearer {mySecretToken}

You should replace "{mySecretToken}" in example with your Token.

You should replace "{siteId}" in example with your Site ID.

Security Scheme Type HTTP
HTTP Authorization Scheme bearer
Bearer format "JWT"

DataAuthentication

This authenticate Data Account to use the API The API uses Token to authenticate its user. You MUST send the token for each request in the Authorization header. The token MUST be preceeded by Bearer.

    GET https://api.commander1.com/v2/{siteId}/users HTTP/1.1
    Host: api.commander1.com
    Authorization: Bearer {mySecretToken}

You should replace "{mySecretToken}" in example with your Token.

You should replace "{siteId}" in example with your Site ID.

Security Scheme Type HTTP
HTTP Authorization Scheme bearer
Bearer format "JWT"

Sources

List source categories

Usage

List source categories

Authorizations:

Responses

Request samples

http GET https://api.commander1.com/v2/REPLACE_SITEID/source-categories \
  Authorization:'Bearer REPLACE_BEARER_TOKEN'

Response samples

Content type
application/vnd.api+json
{
  • "data": {
    }
}

List Catalog Sources

Usage

List Catalog Sources

Authorizations:
query Parameters
include
Array of strings
Items Value: "categories"
Example: include=categories

Relation available: categories

Responses

Request samples

http GET 'https://api.commander1.com/v2/REPLACE_SITEID/source-catalog?include=SOME_ARRAY_VALUE' \
  Authorization:'Bearer REPLACE_BEARER_TOKEN'

Response samples

Content type
application/vnd.api+json
{
  • "data": {
    }
}

List Sources

Usage

List Sources

Authorizations:
query Parameters
include
Array of strings
Items Enum: "connector" "environment" "health"
Example: include=connector,environment,health

Relation available: connector - environment

Responses

Request samples

http GET 'https://api.commander1.com/v2/REPLACE_SITEID/sources?include=SOME_ARRAY_VALUE' \
  Authorization:'Bearer REPLACE_BEARER_TOKEN'

Response samples

Content type
application/vnd.api+json
{
  • "data": [
    ]
}

Create Source

Usage

Create Source

Authorizations:
Request Body schema: application/vnd.api+json
object

Responses

Request samples

Content type
application/vnd.api+json
{
  • "data": {
    }
}

Response samples

Content type
application/vnd.api+json
{
  • "data": {
    }
}

Update Source

Usage

Update Source

Authorizations:
path Parameters
id
required
integer
Example: 1

Resource ID

Request Body schema: application/vnd.api+json
object

Responses

Request samples

Content type
application/vnd.api+json
{
  • "data": {
    }
}

Response samples

Content type
application/vnd.api+json
{
  • "data": {
    }
}

Get Source

Usage

Get Source

Authorizations:
path Parameters
id
required
integer
Example: 1

Resource ID

Responses

Request samples

http GET https://api.commander1.com/v2/REPLACE_SITEID/sources/REPLACE_ID \
  Authorization:'Bearer REPLACE_BEARER_TOKEN'

Response samples

Content type
application/vnd.api+json
{
  • "data": {
    }
}

Destroy sources

Usage

Destroy sources

Authorizations:
path Parameters
id
required
integer
Example: 1

Resource ID

Responses

Request samples

http DELETE https://api.commander1.com/v2/REPLACE_SITEID/sources/REPLACE_ID \
  Authorization:'Bearer REPLACE_BEARER_TOKEN'

Response samples

Content type
application/vnd.api+json
Example

401 Authorization header is missing

{
  • "errors": [
    ]
}

Destinations

List destination categories

Usage

List destination categories

Authorizations:

Responses

Request samples

http GET https://api.commander1.com/v2/REPLACE_SITEID/destination-categories \
  Authorization:'Bearer REPLACE_BEARER_TOKEN'

Response samples

Content type
application/vnd.api+json
{
  • "data": {
    }
}

List Catalog Destinations

Usage

List Catalog Destinations

Authorizations:
query Parameters
include
Array of strings
Items Value: "categories"
Example: include=categories

Relation available: categories

Responses

Request samples

http GET 'https://api.commander1.com/v2/REPLACE_SITEID/destination-catalog?include=SOME_ARRAY_VALUE' \
  Authorization:'Bearer REPLACE_BEARER_TOKEN'

Response samples

Content type
application/vnd.api+json
{
  • "data": {
    }
}

List Destinations

Usage

List Destinations

Authorizations:
query Parameters
include
Array of strings
Items Enum: "connector" "environment" "health"
Example: include=connector,environment,health

Relation available: connector - environment

Responses

Request samples

http GET 'https://api.commander1.com/v2/REPLACE_SITEID/destinations?include=SOME_ARRAY_VALUE' \
  Authorization:'Bearer REPLACE_BEARER_TOKEN'

Response samples

Content type
application/vnd.api+json
{
  • "data": [
    ]
}

Create Destination

Usage

Create Destination

Authorizations:
Request Body schema: application/vnd.api+json
object

Responses

Request samples

Content type
application/vnd.api+json
{
  • "data": {
    }
}

Response samples

Content type
application/vnd.api+json
{
  • "data": {
    }
}

Update Destination

Usage

Update Destination

Authorizations:
path Parameters
id
required
integer
Example: 1

Resource ID

Request Body schema: application/vnd.api+json
object

Responses

Request samples

Content type
application/vnd.api+json
{
  • "data": {
    }
}

Response samples

Content type
application/vnd.api+json
{
  • "data": {
    }
}

Get Destination

Usage

Get Destination

Authorizations:
path Parameters
id
required
integer
Example: 1

Resource ID

query Parameters
include
Array of strings
Items Enum: "connector" "environment" "health"
Example: include=connector,environment,health

Relation available: connector - environment

Responses

Request samples

http GET 'https://api.commander1.com/v2/REPLACE_SITEID/destinations/REPLACE_ID?include=SOME_ARRAY_VALUE' \
  Authorization:'Bearer REPLACE_BEARER_TOKEN'

Response samples

Content type
application/vnd.api+json
{
  • "data": {
    }
}

Destroy destinations

Usage

Destroy destinations

Authorizations:
path Parameters
id
required
integer
Example: 1

Resource ID

Responses

Request samples

http DELETE https://api.commander1.com/v2/REPLACE_SITEID/destinations/REPLACE_ID \
  Authorization:'Bearer REPLACE_BEARER_TOKEN'

Response samples

Content type
application/vnd.api+json
Example

401 Authorization header is missing

{
  • "errors": [
    ]
}

Data cleansing

List cleansing transformations

Usage

List cleansing transformations

Authorizations:

Responses

Request samples

http GET https://api.commander1.com/v2/REPLACE_SITEID/cleansing-transformations \
  Authorization:'Bearer REPLACE_BEARER_TOKEN'

Response samples

Content type
application/vnd.api+json
{
  • "data": [
    ]
}

Store cleansing transformations

Usage

Store cleansing transformations

Authorizations:
Request Body schema: application/vnd.api+json
object

Responses

Request samples

Content type
application/vnd.api+json
{
  • "data": {
    }
}

Response samples

Content type
application/vnd.api+json
{
  • "data": {
    }
}

Destroy cleansing transformations

Usage

Destroy cleansing transformations

Authorizations:
path Parameters
id
required
integer
Example: 1

Resource ID

Responses

Request samples

http DELETE https://api.commander1.com/v2/REPLACE_SITEID/cleansing-transformations/REPLACE_ID \
  Authorization:'Bearer REPLACE_BEARER_TOKEN'

Response samples

Content type
application/vnd.api+json
Example

401 Authorization header is missing

{
  • "errors": [
    ]
}

Show cleansing transformations

Usage

Show cleansing transformations

Authorizations:
path Parameters
id
required
integer
Example: 1

Resource ID

Responses

Request samples

http GET https://api.commander1.com/v2/REPLACE_SITEID/cleansing-transformations/REPLACE_ID \
  Authorization:'Bearer REPLACE_BEARER_TOKEN'

Response samples

Content type
application/vnd.api+json
{
  • "data": {
    }
}

Update cleansing transformations

Usage

Update cleansing transformations

Authorizations:
path Parameters
id
required
integer
Example: 1

Resource ID

Request Body schema: application/vnd.api+json
object

Responses

Request samples

Content type
application/vnd.api+json
{
  • "data": {
    }
}

Response samples

Content type
application/vnd.api+json
{
  • "data": {
    }
}

Event enrichments

List Event Enrichments

Usage

List event enrichments

Authorizations:
query Parameters
include
Array of strings
Items Enum: "store" "variables" "sources"
Example: include=store,variables,sources

Relation available: variables - sources - store

object
Example: page[number]=5&page[size]=15

Pagination options

object
Example: sort[by]=name&sort[desc]=true

Sorting options

object
Example: filter[environment]=1&filter[source]=101&filter[status]=active&filter[name]=enrichment pruduct

Filter available

Responses

Request samples

http GET 'https://api.commander1.com/v2/REPLACE_SITEID/enrichment/events/?include=SOME_ARRAY_VALUE&page=SOME_OBJECT_VALUE&sort=SOME_OBJECT_VALUE&filter=SOME_OBJECT_VALUE' \
  Authorization:'Bearer REPLACE_BEARER_TOKEN'

Response samples

Content type
application/vnd.api+json
{
  • "data": [
    ]
}

Create Event Enrichment

Usage

Create event enrichment

Authorizations:
Request Body schema: application/vnd.api+json
object

Responses

Request samples

Content type
application/vnd.api+json
{
  • "data": {
    }
}

Response samples

Content type
application/vnd.api+json
{
  • "data": {
    }
}

Get Event Enrichment

Usage

Get event enrichment

Authorizations:
path Parameters
id
required
integer
Example: 1

Resource ID

query Parameters
include
Array of strings
Items Enum: "store" "variables" "sources"
Example: include=store,variables,sources

Relation available: variables - sources - store

Responses

Request samples

http GET 'https://api.commander1.com/v2/REPLACE_SITEID/enrichment/events/REPLACE_ID?include=SOME_ARRAY_VALUE' \
  Authorization:'Bearer REPLACE_BEARER_TOKEN'

Response samples

Content type
application/vnd.api+json
{
  • "data": {
    }
}

Update Event Enrichment

Usage

Update event enrichment

Authorizations:
path Parameters
id
required
integer
Example: 1

Resource ID

query Parameters
include
Array of strings
Items Enum: "store" "variables" "sources"
Example: include=store,variables,sources

Relation available: variables - sources - store

Request Body schema: application/vnd.api+json
object

Responses

Request samples

Content type
application/vnd.api+json
{
  • "data": {
    }
}

Response samples

Content type
application/vnd.api+json
{
  • "data": {
    }
}

Destroy Event Enrichment

Usage

Destroy an event enrichment

Authorizations:
path Parameters
id
required
integer
Example: 1

Resource ID

Responses

Request samples

http DELETE https://api.commander1.com/v2/REPLACE_SITEID/enrichment/events/REPLACE_ID \
  Authorization:'Bearer REPLACE_BEARER_TOKEN'

Response samples

Content type
application/vnd.api+json
Example

401 Authorization header is missing

{
  • "errors": [
    ]
}

Event Delivery

Get Destination Event Delivery Health

Usage

Delivery healths gives an overview on the delivery health during the provided period and beyond. It returns statistics on the succeded and failed events with a dataset history for each event type during the last 30 days.

The API response will depend on the available data stored in our database. To date, data life cycle is set to 30 days.

We recommand using these granularities to avoid empty replies:

  • for the last 10 minutes: use a granularity of 60000
  • for the last hour: use a granularity of 60000
  • for the last 24 hours: use a granularity of 3600000
  • for one/many day(s): use the granularity of 86400000
Authorizations:
query Parameters
start
string <ISO-8601>
Example: start=2022-04-19T14:34:00.000Z

Start date

end
string <ISO-8601>
Example: end=2022-04-19T15:33:59.999Z

End date

granularity
string
Example: granularity=60000

End date

Responses

Request samples

http GET 'https://api.commander1.com/v2/REPLACE_SITEID/integrations/REPLACE_ID/delivery/healths?start=SOME_STRING_VALUE&end=SOME_STRING_VALUE&granularity=SOME_STRING_VALUE' \
  Authorization:'Bearer REPLACE_BEARER_TOKEN'

Response samples

Content type
application/vnd.api+json
{
  • "data": {
    }
}

Get Destination Event Delivery Trend

Usage

Delivery trends gives an overview on the delivery status history during the provided period.

"Success" status includes events that coud be successfully sent to the connector API: immediately or after one or more retries. "Fail" status includes events that could not be successfully sent to the connector, either caused by a rejection or by an error.

The API response will depend on the available data stored in our database. To date, data life cycle is set to 30 days.

We recommand using these granularities to avoid empty replies:

  • for the last 10 minutes: use a granularity of 60000
  • for the last hour: use a granularity of 60000
  • for the last 24 hours: use a granularity of 3600000
  • for one/many day(s): use the granularity of 86400000
Authorizations:
query Parameters
start
string <ISO-8601>
Example: start=2022-04-19T14:34:00.000Z

Start date

end
string <ISO-8601>
Example: end=2022-04-19T15:33:59.999Z

End date

granularity
string
Example: granularity=60000

End date

Responses

Request samples

http GET 'https://api.commander1.com/v2/REPLACE_SITEID/integrations/REPLACE_ID/delivery/trends?start=SOME_STRING_VALUE&end=SOME_STRING_VALUE&granularity=SOME_STRING_VALUE' \
  Authorization:'Bearer REPLACE_BEARER_TOKEN'

Response samples

Content type
application/vnd.api+json
{
  • "data": {
    }
}

Get Destination Delivery Issues

Usage

Delivery issues gives a detailed report on the encountered issues during the provided period.

Issues are of two types: "errors" and "rejections"; Both can be issued from the connector's API or before being sent to the connector.

The API response will depend on the available data stored in our database. To date, data life cycle is set to 30 days.

We recommand using these granularities to avoid empty replies:

  • for the last 10 minutes: use a granularity of 60000
  • for the last hour: use a granularity of 60000
  • for the last 24 hours: use a granularity of 3600000
  • for one/many day(s): use the granularity of 86400000
Authorizations:
query Parameters
start
string <ISO-8601>
Example: start=2022-04-19T14:34:00.000Z

Start date

end
string <ISO-8601>
Example: end=2022-04-19T15:33:59.999Z

End date

granularity
string
Example: granularity=60000

End date

filter[type]
string
Example: filter[type]=rejected

[Optional] used to report details only on the specified issue type (error or rejected)

Responses

Request samples

http GET 'https://api.commander1.com/v2/REPLACE_SITEID/integrations/REPLACE_ID/delivery/issues?start=SOME_STRING_VALUE&end=SOME_STRING_VALUE&granularity=SOME_STRING_VALUE&filter%5Btype%5D=SOME_STRING_VALUE' \
  Authorization:'Bearer REPLACE_BEARER_TOKEN'

Response samples

Content type
application/vnd.api+json
{
  • "data": {
    }
}

Get Destination Delivery Issue Details

Usage

Delivery Issue Details gives details on the provided issue id: related event, request sent to the connector API, response from the connector API..

Issue id is not easily guessable, it must be retreived from the Delivery Issues API response by following the stream_hit_id parameter of the desired issue.

Authorizations:
path Parameters
issueId
required
string
Example: 1650381024131-error-token_expired

Issue ID

Responses

Request samples

http GET https://api.commander1.com/v2/REPLACE_SITEID/integrations/delivery/issues/REPLACE_ISSUEID/details \
  Authorization:'Bearer REPLACE_BEARER_TOKEN'

Response samples

Content type
application/vnd.api+json
{
  • "data": {
    }
}

Sources Data Quality

Sources Data Quality

Usage

Fetch statistics about events collections across one or multiple sources

Authorizations:
query Parameters
source
string
Default: null

Id of a source to filter stats with

Responses

Request samples

http GET 'https://api.commander1.com/v2/REPLACE_SITEID/monitoring/sources-data-quality?source=SOME_STRING_VALUE' \
  Authorization:'Bearer REPLACE_BEARER_TOKEN'

Response samples

Content type
application/vnd.api+json
{
  • "data": {
    }
}

Monitoring

List events collection statistics

Usage

Retrieve the list of events that were collected within a specified date range.

Can include statistics, sources and destinations information

Authorizations:
query Parameters
filter[rangeType]
string
Enum: "absolute" "relative"

The type of range to use for the date filter.

filter[from]
string,number <date-time>

for rangeType='absolute': the ISO date for range start (e.g. 2023-01-01T12:30:00.000Z)

for rangeType='relative': the number of seconds between the range start and now (e.g. 86400)

filter[to]
string,number

for rangeType='absolute': the ISO date for range end (e.g. 2023-01-01T12:30:00.000Z)

for rangeType='relative': the number of seconds between the range end and now (e.g. 3600)

filter[search]
string

A search term that should match event names.

include
string[]
Enum: "stats.normalized" "sources" "sources.connector" "destinations" "destinations.connector"

Events information to include:

  • the dataset counting the number of events that passed the normalization step during specified time range (stats.normalized)
  • the list of sources in which the events were collected
  • the list of destinations that are configured to accept those events

Responses

Request samples

http GET 'https://api.commander1.com/v2/REPLACE_SITEID/monitoring/collection/events?filter%5BrangeType%5D=SOME_STRING_VALUE&filter%5Bfrom%5D=SOME_STRING%2CNUMBER_VALUE&filter%5Bto%5D=SOME_STRING%2CNUMBER_VALUE&filter%5Bsearch%5D=SOME_STRING_VALUE&include=SOME_STRING%5B%5D_VALUE' \
  Authorization:'Bearer REPLACE_BEARER_TOKEN'

Response samples

Content type
application/json
{
  • "data": [
    ],
  • "included": [
    ]
}

List alerts

Usage

List alerts for current connected user

Authorizations:
query Parameters
include
Array of strings
Items Enum: "notification" "creator"
Example: include=notification

Relation available: notification, creator

object
Example: filter[category]=destination/delivery&filter[model_id]=1&filter[enable]=true

Filter available

Responses

Request samples

http GET 'https://api.commander1.com/v2/REPLACE_SITEID/health/alerts?include=SOME_ARRAY_VALUE&filter=SOME_OBJECT_VALUE' \
  Authorization:'Bearer REPLACE_BEARER_TOKEN'

Response samples

Content type
application/vnd.api+json
{
  • "data": [
    ]
}

Create Alert

Usage

Create alert for current connected user

The value of the "parameters" field depends on the value of the "category" field.

list of possible values of the field "category".

Category Parameters
destination/delivery { "threshold": [your threshold] }
Authorizations:
Request Body schema: application/vnd.api+json
object

Responses

Request samples

Content type
application/vnd.api+json
{
  • "data": {
    }
}

Response samples

Content type
application/vnd.api+json
{
  • "data": {
    }
}

Update Alert

Usage

Update alert

Authorizations:
Request Body schema: application/vnd.api+json
object

Responses

Request samples

Content type
application/vnd.api+json
{
  • "data": {
    }
}

Response samples

Content type
application/vnd.api+json
{
  • "data": {
    }
}

Get Alert

Usage

Get alert

Authorizations:
path Parameters
id
required
integer
Example: 1

Resource ID

Responses

Request samples

http GET https://api.commander1.com/v2/REPLACE_SITEID/health/alerts/REPLACE_ID \
  Authorization:'Bearer REPLACE_BEARER_TOKEN'

Response samples

Content type
application/vnd.api+json
{
  • "data": [
    ]
}

Destroy alert

Usage

Destroy alert

Authorizations:
path Parameters
id
required
integer
Example: 1

Resource ID

Responses

Request samples

http DELETE https://api.commander1.com/v2/REPLACE_SITEID/health/alerts/REPLACE_ID \
  Authorization:'Bearer REPLACE_BEARER_TOKEN'

Response samples

Content type
application/vnd.api+json
Example

401 Authorization header is missing

{
  • "errors": [
    ]
}

List notifications

Usage

List notifications

Authorizations:
query Parameters
object
Example: filter[alert]=1

Filter available

Responses

Request samples

http GET 'https://api.commander1.com/v2/REPLACE_SITEID/health/notifications?filter=SOME_OBJECT_VALUE' \
  Authorization:'Bearer REPLACE_BEARER_TOKEN'

Response samples

Content type
application/vnd.api+json
{
  • "data": [
    ]
}

Create Notification

Usage

Create notification for existing alert

Authorizations:
Request Body schema: application/vnd.api+json
object

Responses

Request samples

Content type
application/vnd.api+json
{
  • "data": {
    }
}

Response samples

Content type
application/vnd.api+json
{
  • "data": {
    }
}

Update Notification

Usage

Update Notification

Authorizations:
Request Body schema: application/vnd.api+json
object

Responses

Request samples

Content type
application/vnd.api+json
{
  • "data": {
    }
}

Response samples

Content type
application/vnd.api+json
{
  • "data": {
    }
}

Get notifications

Usage

Get notifications

Authorizations:
path Parameters
id
required
integer
Example: 1

Resource ID

Responses

Request samples

http GET https://api.commander1.com/v2/REPLACE_SITEID/health/notifications/REPLACE_ID \
  Authorization:'Bearer REPLACE_BEARER_TOKEN'

Response samples

Content type
application/vnd.api+json
{
  • "data": [
    ]
}

Destroy notifications

Usage

Destroy notifications

Authorizations:
path Parameters
id
required
integer
Example: 1

Resource ID

Responses

Request samples

http DELETE https://api.commander1.com/v2/REPLACE_SITEID/health/notifications/REPLACE_ID \
  Authorization:'Bearer REPLACE_BEARER_TOKEN'

Response samples

Content type
application/vnd.api+json
Example

401 Authorization header is missing

{
  • "errors": [
    ]
}

Cookie Scanner

List cookies

Usage

List of cookies

Authorizations:
query Parameters
include
Array of strings
Items Enum: "vendor" "category" "fields"
Example: include=vendor,category,fields

Relation available: vendor, category, fields

Responses

Request samples

http GET 'https://api.commander1.com/v2/REPLACE_SITEID/health/cookie-scanner/cookies?include=SOME_ARRAY_VALUE' \
  Authorization:'Bearer REPLACE_BEARER_TOKEN'

Response samples

Content type
application/vnd.api+json
{
  • "data": [
    ]
}

Create new cookie

Usage

Create new cookie

Authorizations:
Request Body schema: application/vnd.api+json
object

Responses

Request samples

Content type
application/vnd.api+json
{
  • "data": {
    }
}

Response samples

Content type
application/vnd.api+json
{
  • "data": {
    }
}

Get cookie

Usage

Get informaion about requested cookie

Authorizations:

Responses

Request samples

http GET https://api.commander1.com/v2/REPLACE_SITEID/health/cookie-scanner/cookies/REPLACE_ID \
  Authorization:'Bearer REPLACE_BEARER_TOKEN'

Response samples

Content type
application/vnd.api+json
{
  • "data": [
    ],
  • "included": [
    ]
}

Update Cookie

Usage

Update cookie

Authorizations:
Request Body schema: application/vnd.api+json
object

Responses

Request samples

Content type
application/vnd.api+json
{
  • "data": {
    }
}

Response samples

Content type
application/vnd.api+json
{
  • "data": {
    },
  • "included": [
    ]
}

Destroy cookie

Usage

Destroy cookie

Authorizations:
path Parameters
id
required
integer
Example: 1

Resource ID

Responses

Request samples

http DELETE https://api.commander1.com/v2/REPLACE_SITEID/health/cookie-scanner/cookies/REPLACE_ID \
  Authorization:'Bearer REPLACE_BEARER_TOKEN'

Response samples

Content type
application/vnd.api+json
Example

401 Authorization header is missing

{
  • "errors": [
    ]
}

Reset cookie description

Usage

Reset description Retrieve the default description of a given cookie when presented in configured languages.

Authorizations:

Responses

Request samples

http GET https://api.commander1.com/v2/REPLACE_SITEID/health/cookie-scanner/cookie/description/REPLACE_COOKIENAME \
  Authorization:'Bearer REPLACE_BEARER_TOKEN'

Response samples

Content type
application/vnd.api+json
{
  • "description_en": "Identifier of the TRUST module; used by the privacy modules TRUST v1 and v2",
  • "description_fr": "Utilisé pour identifier les visiteurs exposés à la bannière de confidentialité. TrustCommander utilise ce cookie pour mesurer les statistiques d'utilisation de la bannière de confidentialité jusqu'à ce que les visiteurs donnent leur consentement pour le cookie TCID. Avec ce système à 2 cookies, TrustCommander est le seul CMP qui a obtenu le droit de dispense de consentement pour la mesure statistique par la CNIL française.",
  • "description_it": "Utilizzato da Trust Commander per la gestione del consenso."
}

List custom fields

Usage

List of all cutom fields

Authorizations:

Responses

Request samples

http GET https://api.commander1.com/v2/REPLACE_SITEID/health/cookie-scanner/setting/custom-fields \
  Authorization:'Bearer REPLACE_BEARER_TOKEN'

Response samples

Content type
application/vnd.api+json
{
  • "data": [
    ]
}

Create new cookie custom field

Usage

Create new cookie custom field

Authorizations:
Request Body schema: application/vnd.api+json
object

Responses

Request samples

Content type
application/vnd.api+json
{
  • "data": {
    }
}

Response samples

Content type
application/vnd.api+json
{
  • "data": {
    }
}

Get custom field properties

Usage

Get informaion about a custom field

Authorizations:

Responses

Request samples

http GET https://api.commander1.com/v2/REPLACE_SITEID/health/cookie-scanner/setting/custom-fields/REPLACE_CUSTOM_FIELD \
  Authorization:'Bearer REPLACE_BEARER_TOKEN'

Response samples

Content type
application/vnd.api+json
{
  • "data": [
    ]
}

Update cookie custom field

Usage

Update cookie custom field

Authorizations:
Request Body schema: application/vnd.api+json
object

Responses

Request samples

Content type
application/vnd.api+json
{
  • "data": {
    }
}

Response samples

Content type
application/vnd.api+json
{
  • "data": {
    }
}

Destroy custom field

Usage

Destroy custom field

Authorizations:
path Parameters
id
required
integer
Example: 1

Resource ID

Responses

Request samples

http DELETE https://api.commander1.com/v2/REPLACE_SITEID/health/cookie-scanner/setting/custom-fields/REPLACE_CUSTOM_FIELD \
  Authorization:'Bearer REPLACE_BEARER_TOKEN'

Response samples

Content type
application/vnd.api+json
Example

401 Authorization header is missing

{
  • "errors": [
    ]
}

List generated versions

Usage

List of all generated versions

Authorizations:
query Parameters
include
Array of strings
Items Value: "cookie"
Example: include=cookie

Relation available: cookie

Responses

Request samples

http GET 'https://api.commander1.com/v2/REPLACE_SITEID/health/cookie-scanner?include=SOME_ARRAY_VALUE' \
  Authorization:'Bearer REPLACE_BEARER_TOKEN'

Response samples

Content type
application/vnd.api+json
{
  • "data": [
    ],
  • "included": {
    }
}

Create new version

Usage

Create new version

Authorizations:
Request Body schema: application/vnd.api+json
object

Responses

Request samples

Content type
application/vnd.api+json
{
  • "data": {
    }
}

Response samples

Content type
application/vnd.api+json
{
  • "data": {
    }
}

Get specific version

Usage

Get specific version of cookie Scanner

Authorizations:
query Parameters
include
Array of strings
Items Value: "cookie"
Example: include=cookie

Relation available: cookie

Responses

Request samples

http GET 'https://api.commander1.com/v2/REPLACE_SITEID/health/cookie-scannerREPLACE_COOKIE_SCANNER?include=SOME_ARRAY_VALUE' \
  Authorization:'Bearer REPLACE_BEARER_TOKEN'

Response samples

Content type
application/vnd.api+json
{
  • "data": [
    ],
  • "included": {
    }
}

Get JS Code

Usage

Get the JS code that will be added to your legal page to automatically build the cookie list table.

Authorizations:

Responses

Request samples

http GET https://api.commander1.com/v2/REPLACE_SITEID/health/cookie-scanner/js-code \
  Authorization:'Bearer REPLACE_BEARER_TOKEN'

Response samples

Content type
application/vnd.api+json
{
  • "code": "<script language=\"javascript\">...<script/>\n"
}

Deploy cookie notice

Usage

Deploy a cookie notice to the website.

Authorizations:

Responses

Request samples

http GET https://api.commander1.com/v2/REPLACE_SITEID/health/cookie-scanner/REPLACE_VERSION/deploy \
  Authorization:'Bearer REPLACE_BEARER_TOKEN'

Response samples

Content type
application/vnd.api+json
Example

401 Authorization header is missing

{
  • "errors": [
    ]
}

Export cookie notice

Usage

Allows to download the cookie notice in all localisations.
In the XSLX one tab is included per language. For all other formats a ZIP will be provided that includes one file per language.

language: is optional, default all available language are generated.
Available format:

  • HTML
  • JSON
  • CSV
  • XSLX
Authorizations:

Responses

Request samples

http GET https://api.commander1.com/v2/REPLACE_SITEID/health/cookie-scanner/REPLACE_VERSION/REPLACE_FORMAT/exports/REPLACE_LANGUAGE \
  Authorization:'Bearer REPLACE_BEARER_TOKEN'

Response samples

Content type
application/vnd.api+json
Example

401 Authorization header is missing

{
  • "errors": [
    ]
}

Segments

Get Segments stats

Retrieve segments statistics

Authorizations:
query Parameters
token
required
string

Authentication token. Optional if the header "Authorization' parameter is used instead.

filter[segment_id]
required
number

Segment ID

filter[from]
required
dates <ISO-8601>

start date

filter[to]
required
dates <ISO-8601>

end date

Responses

Request samples

http GET 'https://api.commander1.com/v2/REPLACE_SITEID/dms/segments-statistics?token=SOME_STRING_VALUE&filter%5Bsegment_id%5D=SOME_NUMBER_VALUE&filter%5Bfrom%5D=SOME_DATES_VALUE&filter%5Bto%5D=SOME_DATES_VALUE' \
  Authorization:'Bearer REPLACE_BEARER_TOKEN'

Response samples

Content type
application/vnd.api+json
{
  • "data": [
    ]
}

Identities

Live Report Builder

List Live Reports

Usage

List Live Reports

Authorizations:
query Parameters
include
Array of strings
Items Enum: "owner" "claims"
Example: include=owner,claims

Relation available: owner - claims

object
Example: page[number]=5&page[size]=15

Pagination options

object
Example: filter[label]=rapport&filter[public-id]=ED78DZ8&filter[status]=draft&filter[category]=1&filter[archived]=1

Filter available

sort
string
Example: sort=-updated_at

Sort

Responses

Request samples

http GET 'https://api.commander1.com/v2/REPLACE_SITEID/ams/reports?include=SOME_ARRAY_VALUE&page=SOME_OBJECT_VALUE&filter=SOME_OBJECT_VALUE&sort=SOME_STRING_VALUE' \
  Authorization:'Bearer REPLACE_BEARER_TOKEN'

Response samples

Content type
application/vnd.api+json
{
  • "data": [
    ]
}

Get Live Report

Usage

Get Live Report

Authorizations:
path Parameters
id
required
integer
Example: 1

Resource ID

query Parameters
include
Array of strings
Items Enum: "owner" "claims"
Example: include=owner,claims

Relation available: owner - claims

Responses

Request samples

http GET 'https://api.commander1.com/v2/REPLACE_SITEID/ams/reports/REPLACE_ID?include=SOME_ARRAY_VALUE' \
  Authorization:'Bearer REPLACE_BEARER_TOKEN'

Response samples

Content type
application/vnd.api+json
{
  • "data": {
    }
}

Get Live Report Data

Usage

Get Live Report Data

Authorizations:
path Parameters
id
required
integer
Example: 1

Resource ID

Responses

Request samples

http GET https://api.commander1.com/v2/REPLACE_SITEID/ams/reports/REPLACE_ID/data \
  Authorization:'Bearer REPLACE_BEARER_TOKEN'

Response samples

Content type
application/vnd.api+json
{}

Consent Analysis

Get Statistics

Get data from the consent dashboard (aggregated data)

Authorizations:
query Parameters
token
required
string
Example: token=XXXYYZZ

Authentication token. Optional if the header "Authorization' parameter is used instead.

filter[begin_date]
required
string <date>
Example: filter[begin_date]=2021-04-30
filter[end_date]
required
string <date>
Example: filter[end_date]=2021-05-31
filter[sup_filters][location][]
Array of integers[ items ]
Items Enum: 0 1
Example: filter[sup_filters][location][]=1

Data inside and outside of the EU
0 : Out of EU
1 : EU

filter[sup_filters][device][]
Array of integers[ items ]
Items Enum: 0 1 2 3
Example: filter[sup_filters][device][]=2

Typical device types
0 : others
1 : mobile
2 : tablet
3 : desktop

Responses

Request samples

http GET 'https://api.commander1.com/v2/REPLACE_SITEID/privacy/statistics?token=SOME_STRING_VALUE&filter%5Bbegin_date%5D=SOME_STRING_VALUE&filter%5Bend_date%5D=SOME_STRING_VALUE&filter%5Bsup_filters%5D%5Blocation%5D%5B%5D=SOME_ARRAY_VALUE&filter%5Bsup_filters%5D%5Bdevice%5D%5B%5D=SOME_ARRAY_VALUE' \
  Authorization:'Bearer REPLACE_BEARER_TOKEN'

Response samples

Content type
application/vnd.api+json
{
  • "data": [
    ]
}

Normalized Datalayer

List event types

Usage

List Normalized Datalayer Event Types

Authorizations:

Responses

Request samples

http GET https://api.commander1.com/v2/REPLACE_SITEID/normalized-datalayer/event-types \
  Authorization:'Bearer REPLACE_BEARER_TOKEN'

Response samples

Content type
application/vnd.api+json
{
  • "data": {
    }
}

Web Containers

List web triggers

Usage

List web triggers

Authorizations:

Responses

Request samples

http GET https://api.commander1.com/v2/REPLACE_SITEID/tms/web-triggers \
  Authorization:'Bearer REPLACE_BEARER_TOKEN'

Response samples

Content type
application/vnd.api+json
{
  • "data": [
    ]
}

Create a web trigger

Usage

This endpoint creates a new trigger

Authorizations:
query Parameters
include
Array of strings
Items Enum: "container" "tags"
Example: include=container,tags

Available relations: Container - Tags

Request Body schema: application/vnd.api+json

Variable as JSON:api strings

object

Responses

Request samples

Content type
application/vnd.api+json
{
  • "data": {
    }
}

Response samples

Content type
application/vnd.api+json
{
  • "data": {
    }
}

Delete web triggers

Usage

Delete web triggers

Authorizations:
path Parameters
id
required
integer
Example: 1

Resource ID

Responses

Request samples

http DELETE https://api.commander1.com/v2/REPLACE_SITEID/tms/web-triggers/REPLACE_ID \
  Authorization:'Bearer REPLACE_BEARER_TOKEN'

Response samples

Content type
application/vnd.api+json
Example

401 Authorization header is missing

{
  • "errors": [
    ]
}

Get web triggers

Usage

Get web triggers

Authorizations:
path Parameters
id
required
integer
Example: 1

Resource ID

Responses

Request samples

http GET https://api.commander1.com/v2/REPLACE_SITEID/tms/web-triggers/REPLACE_ID \
  Authorization:'Bearer REPLACE_BEARER_TOKEN'

Response samples

Content type
application/vnd.api+json
{
  • "data": {
    }
}

Update web triggers

Usage

Update web triggers

Authorizations:
path Parameters
id
required
integer
Example: 1

Resource ID

Request Body schema: application/vnd.api+json
object

Responses

Request samples

Content type
application/vnd.api+json
{
  • "data": {
    }
}

Response samples

Content type
application/vnd.api+json
{
  • "data": {
    }
}

Create web constraints

Usage

Create web constraints

Authorizations:
Request Body schema: application/vnd.api+json

Variable as JSON:api strings

object

Responses

Request samples

Content type
application/vnd.api+json
{
  • "data": {
    }
}

Response samples

Content type
application/vnd.api+json
{
  • "data": {
    }
}

List web constraints

Usage

List web constraints

Authorizations:

Responses

Request samples

http GET https://api.commander1.com/v2/REPLACE_SITEID/tms/web-constraints \
  Authorization:'Bearer REPLACE_BEARER_TOKEN'

Response samples

Content type
application/vnd.api+json
{
  • "data": [
    ]
}

Delete web constraints

Usage

Delete web constraints

Authorizations:
path Parameters
id
required
integer
Example: 1

Resource ID

Responses

Request samples

http DELETE https://api.commander1.com/v2/REPLACE_SITEID/tms/web-constraints/REPLACE_ID \
  Authorization:'Bearer REPLACE_BEARER_TOKEN'

Response samples

Content type
application/vnd.api+json
Example

401 Authorization header is missing

{
  • "errors": [
    ]
}

Show web constraints

Usage

Show web constraints

Authorizations:
path Parameters
id
required
integer
Example: 1

Resource ID

Responses

Request samples

http GET https://api.commander1.com/v2/REPLACE_SITEID/tms/web-constraints/REPLACE_ID \
  Authorization:'Bearer REPLACE_BEARER_TOKEN'

Response samples

Content type
application/vnd.api+json
{
  • "data": {
    }
}

Update web constraints

Usage

Update web constraints

Authorizations:
path Parameters
id
required
integer
Example: 1

Resource ID

Request Body schema: application/vnd.api+json
object

Responses

Request samples

Content type
application/vnd.api+json
{
  • "data": {
    }
}

Response samples

Content type
application/vnd.api+json
{
  • "data": {
    }
}

Create web perimeters

Usage

Create web perimeters

Authorizations:
Request Body schema: application/vnd.api+json

Variable as JSON:api strings

object

Responses

Request samples

Content type
application/vnd.api+json
{
  • "data": {
    }
}

Response samples

Content type
application/vnd.api+json
{
  • "data": {
    }
}

List web perimeters

Usage

List web perimeters

Authorizations:

Responses

Request samples

http GET https://api.commander1.com/v2/REPLACE_SITEID/tms/web-perimeters \
  Authorization:'Bearer REPLACE_BEARER_TOKEN'

Response samples

Content type
application/vnd.api+json
{
  • "data": [
    ]
}

Delete web perimeters

Usage

Delete web perimeters

Authorizations:
path Parameters
id
required
integer
Example: 1

Resource ID

Responses

Request samples

http DELETE https://api.commander1.com/v2/REPLACE_SITEID/tms/web-perimeters/REPLACE_ID \
  Authorization:'Bearer REPLACE_BEARER_TOKEN'

Response samples

Content type
application/vnd.api+json
Example

401 Authorization header is missing

{
  • "errors": [
    ]
}

Show web perimeters

Usage

Show web perimeters

Authorizations:
path Parameters
id
required
integer
Example: 1

Resource ID

Responses

Request samples

http GET https://api.commander1.com/v2/REPLACE_SITEID/tms/web-perimeters/REPLACE_ID \
  Authorization:'Bearer REPLACE_BEARER_TOKEN'

Response samples

Content type
application/vnd.api+json
{
  • "data": {
    }
}

Update web perimeters

Usage

Update web perimeters

Authorizations:
path Parameters
id
required
integer
Example: 1

Resource ID

Request Body schema: application/vnd.api+json
object

Responses

Request samples

Content type
application/vnd.api+json
{
  • "data": {
    }
}

Response samples

Content type
application/vnd.api+json
{
  • "data": {
    }
}

Create web containers

Usage

Create web containers

Authorizations:
Request Body schema: application/vnd.api+json
object

Responses

Request samples

Content type
application/vnd.api+json
{
  • "data": {
    }
}

Response samples

Content type
application/vnd.api+json
{
  • "data": {
    }
}

Update web containers

Usage

Update web containers

Authorizations:
path Parameters
id
required
integer
Example: 1

Resource ID

Request Body schema: application/vnd.api+json
object

Responses

Request samples

Content type
application/vnd.api+json
{
  • "data": {
    }
}

Response samples

Content type
application/vnd.api+json
{
  • "data": {
    }
}

Delete web containers

Usage

Delete web containers

Authorizations:
path Parameters
id
required
integer
Example: 1

Resource ID

Responses

Request samples

http DELETE https://api.commander1.com/v2/REPLACE_SITEID/tms/web-containers/REPLACE_ID \
  Authorization:'Bearer REPLACE_BEARER_TOKEN'

Response samples

Content type
application/vnd.api+json
Example

401 Authorization header is missing

{
  • "errors": [
    ]
}

Create web tags

Usage

Create web tags

Authorizations:
Request Body schema: application/vnd.api+json
object

Responses

Request samples

Content type
application/vnd.api+json
{
  • "data": {
    }
}

Response samples

Content type
application/vnd.api+json
{
  • "data": {
    }
}

Update web tags

Usage

Update web tags

Authorizations:
Request Body schema: application/vnd.api+json
object

Responses

Request samples

Content type
application/vnd.api+json
{
  • "data": {
    }
}

Response samples

Content type
application/vnd.api+json
{
  • "data": {
    }
}

List web tags

Usage

List web tags

Authorizations:

Responses

Request samples

http GET https://api.commander1.com/v2/REPLACE_SITEID/tms/web-tags \
  Authorization:'Bearer REPLACE_BEARER_TOKEN'

Response samples

Content type
application/vnd.api+json
{
  • "data": [
    ]
}

Delete web tags

Usage

Delete web tags

Authorizations:
path Parameters
id
required
integer
Example: 1

Resource ID

Responses

Request samples

http DELETE https://api.commander1.com/v2/REPLACE_SITEID/tms/web-tags/REPLACE_ID \
  Authorization:'Bearer REPLACE_BEARER_TOKEN'

Response samples

Content type
application/vnd.api+json
Example

401 Authorization header is missing

{
  • "errors": [
    ]
}

Show web tags

Usage

Show web tags

Authorizations:
path Parameters
id
required
integer
Example: 1

Resource ID

Responses

Request samples

http GET https://api.commander1.com/v2/REPLACE_SITEID/tms/web-tags/REPLACE_ID \
  Authorization:'Bearer REPLACE_BEARER_TOKEN'

Response samples

Content type
application/vnd.api+json
{
  • "data": {
    }
}

Revert web tags

Usage

Revertweb tags

Authorizations:
path Parameters
id
required
integer
Example: 1

Resource ID

Request Body schema: application/vnd.api+json
object

Responses

Request samples

Content type
application/vnd.api+json
{
  • "data": {
    }
}

Response samples

Content type
application/vnd.api+json
{
  • "data": {
    }
}

Web Containers Variables

Create web datalayer variables

Usage

This endpoint creates new web datalayer variables

Authorizations:
Request Body schema: application/vnd.api+json

Variable as JSON:api strings

object

Responses

Request samples

Content type
application/vnd.api+json
{
  • "data": {
    }
}

Response samples

Content type
application/vnd.api+json
{
  • "data": {
    }
}

List web datalayer variables

Tag variables description

Authorizations:

Responses

Request samples

http GET https://api.commander1.com/v2/REPLACE_SITEID/tms/web-datalayer-variables \
  Authorization:'Bearer REPLACE_BEARER_TOKEN'

Response samples

Content type
application/vnd.api+json
{
  • "data": [
    ]
}

Get web datalayer variables

Usage

Get web datalayer variables

Authorizations:
path Parameters
id
required
integer
Example: 1

Resource ID

Responses

Request samples

http GET https://api.commander1.com/v2/REPLACE_SITEID/tms/web-datalayer-variables/REPLACE_ID \
  Authorization:'Bearer REPLACE_BEARER_TOKEN'

Response samples

Content type
application/vnd.api+json
{
  • "data": {
    }
}

Delete web datalayer variables

Usage

This endpoint deletes web datalayer variables

Authorizations:
path Parameters
id
required
integer
Example: 1

Resource ID

Responses

Request samples

http DELETE https://api.commander1.com/v2/REPLACE_SITEID/tms/web-datalayer-variables/REPLACE_ID \
  Authorization:'Bearer REPLACE_BEARER_TOKEN'

Response samples

Content type
application/vnd.api+json
Example

401 Authorization header is missing

{
  • "errors": [
    ]
}

List web internal variables

Usage

List web internal variables

Authorizations:

Responses

Request samples

http GET https://api.commander1.com/v2/REPLACE_SITEID/tms/web-internal-variables \
  Authorization:'Bearer REPLACE_BEARER_TOKEN'

Response samples

Content type
application/vnd.api+json
{
  • "data": [
    ]
}

Create web internal variables

Usage

This endpoint creates new web internal variables

Authorizations:
Request Body schema: application/vnd.api+json

Variable as JSON:api strings

object

Responses

Request samples

Content type
application/vnd.api+json
{
  • "data": {
    }
}

Response samples

Content type
application/vnd.api+json
{
  • "data": {
    }
}

Get web internal variables

Usage

Get web internal variables

Authorizations:
path Parameters
id
required
integer
Example: 1

Resource ID

Responses

Request samples

http GET https://api.commander1.com/v2/REPLACE_SITEID/tms/web-internal-variables/REPLACE_ID \
  Authorization:'Bearer REPLACE_BEARER_TOKEN'

Response samples

Content type
application/vnd.api+json
{
  • "data": {
    }
}

Delete web internal variables

Usage

This endpoint deletes web internal variables

Authorizations:
path Parameters
id
required
integer
Example: 1

Resource ID

Responses

Request samples

http DELETE https://api.commander1.com/v2/REPLACE_SITEID/tms/web-internal-variables/REPLACE_ID \
  Authorization:'Bearer REPLACE_BEARER_TOKEN'

Response samples

Content type
application/vnd.api+json
Example

401 Authorization header is missing

{
  • "errors": [
    ]
}

Create web datalayer variable categories

Usage

Create web datalayer variable categories

Authorizations:
Request Body schema: application/vnd.api+json
object

Responses

Request samples

Content type
application/vnd.api+json
{
  • "data": {
    }
}

Response samples

Content type
application/vnd.api+json
{
  • "data": {
    }
}

Delete web datalayer variable categories

Usage

Delete web datalayer variable categories

Authorizations:
path Parameters
id
required
integer
Example: 1

Resource ID

Responses

Request samples

http DELETE https://api.commander1.com/v2/REPLACE_SITEID/tms/web-datalayer-variable-categories/REPLACE_ID \
  Authorization:'Bearer REPLACE_BEARER_TOKEN'

Response samples

Content type
application/vnd.api+json
Example

401 Authorization header is missing

{
  • "errors": [
    ]
}

Server-side Containers V1 (deprecated)

Create serverside constraints

Usage

Create serverside constraints

Authorizations:
Request Body schema: application/vnd.api+json

Variable as JSON:api strings

object

Responses

Request samples

Content type
application/vnd.api+json
{
  • "data": {
    }
}

Response samples

Content type
application/vnd.api+json
{
  • "data": {
    }
}

List serverside constraints

Usage

List serverside constraints

Authorizations:

Responses

Request samples

http GET https://api.commander1.com/v2/REPLACE_SITEID/tms/serverside-constraints \
  Authorization:'Bearer REPLACE_BEARER_TOKEN'

Response samples

Content type
application/vnd.api+json
{
  • "data": [
    ]
}

Delete serverside constraints

Usage

Delete serverside constraints

Authorizations:
path Parameters
id
required
integer
Example: 1

Resource ID

Responses

Request samples

http DELETE https://api.commander1.com/v2/REPLACE_SITEID/tms/serverside-constraints/REPLACE_ID \
  Authorization:'Bearer REPLACE_BEARER_TOKEN'

Response samples

Content type
application/vnd.api+json
Example

401 Authorization header is missing

{
  • "errors": [
    ]
}

Show serverside constraints

Usage

Show serverside constraints

Authorizations:
path Parameters
id
required
integer
Example: 1

Resource ID

Responses

Request samples

http GET https://api.commander1.com/v2/REPLACE_SITEID/tms/serverside-constraints/REPLACE_ID \
  Authorization:'Bearer REPLACE_BEARER_TOKEN'

Response samples

Content type
application/vnd.api+json
{
  • "data": {
    }
}

Update serverside constraints

Usage

Update serverside constraints

Authorizations:
path Parameters
id
required
integer
Example: 1

Resource ID

Request Body schema: application/vnd.api+json
object

Responses

Request samples

Content type
application/vnd.api+json
{
  • "data": {
    }
}

Response samples

Content type
application/vnd.api+json
{
  • "data": {
    }
}

Create serverside containers

Usage

Create serverside containers

Authorizations:
Request Body schema: application/vnd.api+json
object

Responses

Request samples

Content type
application/vnd.api+json
{
  • "data": {
    }
}

Response samples

Content type
application/vnd.api+json
{
  • "data": {
    }
}

Update serverside containers

Usage

Update serverside containers

Authorizations:
path Parameters
id
required
integer
Example: 1

Resource ID

Request Body schema: application/vnd.api+json
object

Responses

Request samples

Content type
application/vnd.api+json
{
  • "data": {
    }
}

Response samples

Content type
application/vnd.api+json
{
  • "data": {
    }
}

Delete serverside containers

Usage

Delete serverside containers

Authorizations:
path Parameters
id
required
integer
Example: 1

Resource ID

Responses

Request samples

http DELETE https://api.commander1.com/v2/REPLACE_SITEID/tms/serverside-containers/REPLACE_ID \
  Authorization:'Bearer REPLACE_BEARER_TOKEN'

Response samples

Content type
application/vnd.api+json
Example

401 Authorization header is missing

{
  • "errors": [
    ]
}

Create server side tags

Usage

Create server side tags

Authorizations:
Request Body schema: application/vnd.api+json
object

Responses

Request samples

Content type
application/vnd.api+json
{
  • "data": {
    }
}

Response samples

Content type
application/vnd.api+json
{
  • "data": {
    }
}

Update serverside tags

Usage

Update serverside tags

Authorizations:
Request Body schema: application/vnd.api+json
object

Responses

Request samples

Content type
application/vnd.api+json
{
  • "data": {
    }
}

Response samples

Content type
application/vnd.api+json
{
  • "data": {
    }
}

List serverside tags

Usage

List serverside tags

Authorizations:

Responses

Request samples

http GET https://api.commander1.com/v2/REPLACE_SITEID/tms/serverside-tags \
  Authorization:'Bearer REPLACE_BEARER_TOKEN'

Response samples

Content type
application/vnd.api+json
{
  • "data": [
    ]
}

Delete serverside tags

Usage

Delete serverside tags

Authorizations:
path Parameters
id
required
integer
Example: 1

Resource ID

Responses

Request samples

http DELETE https://api.commander1.com/v2/REPLACE_SITEID/tms/serverside-tags/REPLACE_ID \
  Authorization:'Bearer REPLACE_BEARER_TOKEN'

Response samples

Content type
application/vnd.api+json
Example

401 Authorization header is missing

{
  • "errors": [
    ]
}

Show serverside tags

Usage

Show serverside tags

Authorizations:
path Parameters
id
required
integer
Example: 1

Resource ID

Responses

Request samples

http GET https://api.commander1.com/v2/REPLACE_SITEID/tms/serverside-tags/REPLACE_ID \
  Authorization:'Bearer REPLACE_BEARER_TOKEN'

Response samples

Content type
application/vnd.api+json
{
  • "data": {
    }
}

Server-side Containers V1 Variables (deprecated)

List serverside datalayer variables

Usage

List serverside datalayer variables

Authorizations:

Responses

Request samples

http GET https://api.commander1.com/v2/REPLACE_SITEID/tms/serverside-datalayer-variables \
  Authorization:'Bearer REPLACE_BEARER_TOKEN'

Response samples

Content type
application/vnd.api+json
{
  • "data": [
    ]
}

Create server-side datalayer variables

Usage

This endpoint creates new server-side datalayer variables

Authorizations:
Request Body schema: application/vnd.api+json

Variable as JSON:api strings

object

Responses

Request samples

Content type
application/vnd.api+json
{
  • "data": {
    },
  • "relationships": {
    }
}

Response samples

Content type
application/vnd.api+json
{
  • "data": {
    }
}

Get serverside datalayer variables

Usage

Get serverside datalayer variables

Authorizations:
path Parameters
id
required
integer
Example: 1

Resource ID

Responses

Request samples

http GET https://api.commander1.com/v2/REPLACE_SITEID/tms/serverside-datalayer-variables/REPLACE_ID \
  Authorization:'Bearer REPLACE_BEARER_TOKEN'

Response samples

Content type
application/vnd.api+json
{
  • "data": {
    }
}

Delete server-side datalayer variables

Usage

This endpoint deletes server-side datalayer variables

Authorizations:
path Parameters
id
required
integer
Example: 1

Resource ID

Responses

Request samples

http DELETE https://api.commander1.com/v2/REPLACE_SITEID/tms/serverside-datalayer-variables/REPLACE_ID \
  Authorization:'Bearer REPLACE_BEARER_TOKEN'

Response samples

Content type
application/vnd.api+json
Example

401 Authorization header is missing

{
  • "errors": [
    ]
}

List serverside internal variables

Usage

List serverside internal variables

Authorizations:

Responses

Request samples

http GET https://api.commander1.com/v2/REPLACE_SITEID/tms/serverside-internal-variables \
  Authorization:'Bearer REPLACE_BEARER_TOKEN'

Response samples

Content type
application/vnd.api+json
{
  • "data": [
    ]
}

Create server-side internal variables

Usage

This endpoint creates new server-side internal variables

Authorizations:
Request Body schema: application/vnd.api+json

Variable as JSON:api strings

object

Responses

Request samples

Content type
application/vnd.api+json
{
  • "data": {
    }
}

Response samples

Content type
application/vnd.api+json
{
  • "data": {
    }
}

Get serverside internal variables

Usage

Get serverside internal variables

Authorizations:
path Parameters
id
required
integer
Example: 1

Resource ID

Responses

Request samples

http GET https://api.commander1.com/v2/REPLACE_SITEID/tms/serverside-internal-variables/REPLACE_ID \
  Authorization:'Bearer REPLACE_BEARER_TOKEN'

Response samples

Content type
application/vnd.api+json
{
  • "data": {
    }
}

Delete server-side internal variables

Usage

This endpoint deletes server-side internal variables

Authorizations:
path Parameters
id
required
integer
Example: 1

Resource ID

Responses

Request samples

http DELETE https://api.commander1.com/v2/REPLACE_SITEID/tms/serverside-internal-variables/REPLACE_ID \
  Authorization:'Bearer REPLACE_BEARER_TOKEN'

Response samples

Content type
application/vnd.api+json
Example

401 Authorization header is missing

{
  • "errors": [
    ]
}

Create server side datalayer variable categories

Usage

Create server side datalayer variable categories

Authorizations:
Request Body schema: application/vnd.api+json
object

Responses

Request samples

Content type
application/vnd.api+json
{
  • "data": {
    }
}

Response samples

Content type
application/vnd.api+json
{
  • "data": {
    }
}

Delete server side datalayer variable categories

Usage

Delete server side datalayer variable categories

Authorizations:
path Parameters
id
required
integer
Example: 1

Resource ID

Responses

Request samples

http DELETE https://api.commander1.com/v2/REPLACE_SITEID/tms/serverside-datalayer-variable-categories/REPLACE_ID \
  Authorization:'Bearer REPLACE_BEARER_TOKEN'

Response samples

Content type
application/vnd.api+json
Example

401 Authorization header is missing

{
  • "errors": [
    ]
}

Users

Create user

Usage

Create users

Authorizations:
Request Body schema: application/vnd.api+json
object

Responses

Request samples

Content type
application/vnd.api+json
{
  • "data": {
    }
}

Response samples

Content type
application/vnd.api+json
{
  • "data": {
    }
}

Delete users

Usage

Delete users

Authorizations:
path Parameters
id
required
integer
Example: 1

Resource ID

Responses

Request samples

http DELETE https://api.commander1.com/v2/REPLACE_SITEID/admin/users/REPLACE_ID \
  Authorization:'Bearer REPLACE_BEARER_TOKEN'

Response samples

Content type
application/vnd.api+json
Example

401 Authorization header is missing

{
  • "errors": [
    ]
}

Workspaces

Create workspace

Usage

Create workspace

Authorizations:
Request Body schema: application/vnd.api+json
object

Responses

Request samples

Content type
application/vnd.api+json
{
  • "data": {
    }
}

Response samples

Content type
application/vnd.api+json
{
  • "data": {
    }
}

Delete workspace

Usage

Delete workspace

Authorizations:
path Parameters
id
required
integer
Example: 1

Resource ID

Responses

Request samples

http DELETE https://api.commander1.com/v2/REPLACE_SITEID/admin/workspace/REPLACE_ID \
  Authorization:'Bearer REPLACE_BEARER_TOKEN'

Response samples

Content type
application/vnd.api+json
Example

401 Authorization header is missing

{
  • "errors": [
    ]
}

Mix collect redirect rules

List rules

Usage

List redirect rules

Authorizations:
query Parameters
object

Available filters

Responses

Request samples

http GET 'https://api.commander1.com/v2/REPLACE_SITEID/ams/redirect-rules?filter=SOME_OBJECT_VALUE' \
  Authorization:'Bearer REPLACE_BEARER_TOKEN'

Response samples

Content type
application/vnd.api+json
{
  • "data": {
    }
}

Create rule

Create a mix collect redirect rule

Authorizations:

Responses

Request samples

http POST https://api.commander1.com/v2/REPLACE_SITEID/ams/redirect-rules \
  Authorization:'Bearer REPLACE_BEARER_TOKEN'

Response samples

Content type
application/vnd.api+json
{
  • "data": {
    }
}

Get rule

Usage

Get a redirect rule

Authorizations:
path Parameters
id
required
integer
Example: 1

Resource ID

Responses

Request samples

http GET https://api.commander1.com/v2/REPLACE_SITEID/ams/redirect-rules/REPLACE_ID \
  Authorization:'Bearer REPLACE_BEARER_TOKEN'

Response samples

Content type
application/vnd.api+json
{
  • "data": {
    }
}

Update rule

Usage

Update an existing redirect rule

Authorizations:
path Parameters
id
required
integer
Example: 1

Resource ID

Responses

Request samples

http PATCH https://api.commander1.com/v2/REPLACE_SITEID/ams/redirect-rules/REPLACE_ID \
  Authorization:'Bearer REPLACE_BEARER_TOKEN'

Response samples

Content type
application/vnd.api+json
{
  • "data": {
    }
}

Delete rule

Usage

Delete a redirect rule

Authorizations:
path Parameters
id
required
integer
Example: 1

Resource ID

Responses

Request samples

http DELETE https://api.commander1.com/v2/REPLACE_SITEID/ams/redirect-rules/REPLACE_ID \
  Authorization:'Bearer REPLACE_BEARER_TOKEN'

Response samples

Content type
application/vnd.api+json
{
  • "data": {
    }
}

Activity Logs

List activity logs

Usage

Admin-only Activity Logs API: Provides detailed platform activity records exclusively for administrators.

Authorizations:
query Parameters
object
Example: filter[action]=created&filter[causer_id]=1&filter[created]=2023-07-13

Filter available

Responses

Request samples

http GET 'https://api.commander1.com/v2/REPLACE_SITEID/activity-logs?filter=SOME_OBJECT_VALUE' \
  Authorization:'Bearer REPLACE_BEARER_TOKEN'

Response samples

Content type
application/vnd.api+json
{
  • "data": [
    ]
}