Commanders Act Event Specification API

The Event Specification API from Commanders Act — 1 operation(s) for event specification.

GitHub OpenAPI

Operations 2

GET /normalized-datalayer/event-types List Event Specifications #
POST /normalized-datalayer/event-types Create Event Specification #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/commanders-act:commanders-act-event-specification-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

commanders-act-event-specification-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: CommandersAct Event Specification API
  contact:
    name: Commanders Act
    url: https://www.commandersact.com/
  description: '## 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


    -->'
  version: 2.0.0
  x-logo:
    url: ./static/img/ca-logo.png
    altText: Commanders Act
    href: https://www.commandersact.com/
servers:
- url: https://api.commander1.com/v2/{siteId}
  description: Production server
  variables:
    siteId:
      default: '7'
      description: this value is your site ID
security:
- UserAuthentication: []
tags:
- name: Event Specification
  x-displayName: Event Specification
paths:
  /normalized-datalayer/event-types:
    get:
      tags:
      - Event Specification
      summary: List Event Specifications
      operationId: PlatformEventSpecificationIndex
      description: '### Usage


        List the event specifications available for the current site.


        Use include=properties to include the event properties linked to each specification.'
      parameters:
      - in: query
        name: include
        description: Include linked event properties in the response.
        schema:
          type: array
          items:
            type: string
            enum:
            - properties
        explode: false
        style: form
        example:
        - properties
      .relationships:
        type: object
        properties:
          properties:
            type: object
            required:
            - data
            properties:
              data:
                type: array
                items:
                  type: object
                  required:
                  - type
                  - id
                  properties:
                    type:
                      type: string
                      enum:
                      - normalized-datalayer/event-properties
                    id:
                      type: string
      responses:
        '200':
          description: Successful
          content:
            application/vnd.api+json:
              schema:
                type: object
                required:
                - data
                properties:
                  data:
                    type: array
                    items:
                      type: object
                      required:
                      - type
                      - attributes
                      - id
                      properties:
                        type:
                          type: string
                          enum:
                          - normalized-datalayer/event-types
                        attributes:
                          type: object
                          description: Event specification attributes returned by the API.
                          required:
                          - name
                          - label
                          - description
                          - created
                          - updated
                          - stored
                          - is_custom
                          properties:
                            name:
                              type: string
                              maxLength: 255
                            label:
                              type: string
                              maxLength: 255
                            description:
                              type:
                              - string
                              - 'null'
                            created:
                              type:
                              - string
                              - 'null'
                              format: date-time
                            updated:
                              type:
                              - string
                              - 'null'
                              format: date-time
                            stored:
                              type: boolean
                            is_custom:
                              type: boolean
                          example:
                            name: page_view
                            label: Page view
                            description: The page_view call lets users see a page of their website.
                            created: '2022-09-22T18:04:49+02:00'
                            updated: '2022-09-23T18:05:43+02:00'
                            stored: false
                            is_custom: false
                        relationships:
                          type: object
                          properties:
                            properties:
                              type: object
                              required:
                              - data
                              properties:
                                data:
                                  type: array
                                  items:
                                    type: object
                                    required:
                                    - type
                                    - id
                                    properties:
                                      type:
                                        type: string
                                        enum:
                                        - normalized-datalayer/event-properties
                                      id:
                                        type: string
                        id:
                          type: string
                  included:
                    type: array
                    items:
                      type: object
                      required:
                      - type
                      - id
                      - attributes
                      properties:
                        type:
                          type: string
                          enum:
                          - normalized-datalayer/event-properties
                        id:
                          type: string
                        attributes:
                          type: object
                          properties:
                            name:
                              type: string
                            label:
                              type: string
                            required:
                              type: boolean
              example:
                data:
                - type: normalized-datalayer/event-types
                  id: '1'
                  attributes:
                    name: page_view
                    label: Page view
                    description: The page_view call lets users see a page of their website.
                    created: '2022-09-22T18:04:49+02:00'
                    updated: '2022-09-23T18:05:43+02:00'
                    stored: false
                    is_custom: false
        '400':
          description: The request is missing a parameter required to identify the caller or the resource
          content:
            application/vnd.api+json:
              examples:
                missing_token:
                  description: 400 No token was provided, neither in the "Authorization" header nor as a "token" query parameter
                  value:
                    errors:
                    - status: 400
                      title: Missing Parameter.
                      detail: Token must be provided
                      context: []
                missing_site_id:
                  description: 400 The request was not scoped to a site
                  value:
                    errors:
                    - status: 400
                      title: Missing Parameter.
                      detail: Site Id must be provided
                      context: []
        '401':
          description: Cannot identify the API caller
          content:
            application/vnd.api+json:
              examples:
                missing_header:
                  description: 401 Authorization header is missing
                  value:
                    errors:
                    - title: MISSING_AUTHORIZATION_HEADER
                      detail: The "Authorization" header is required
                unknown_token_type:
                  description: 401 Token type is missing
                  value:
                    errors:
                    - code: UNKNOWN_TOKEN_TYPE
                      detail: The token type is missing
                invalid_token_type:
                  description: 401 The token type is invalid
                  value:
                    errors:
                    - code: INVALID_TOKEN_TYPE
                      detail: The token type "Bear" is invalid. Expecting "Bearer" instead
                unknown_token:
                  description: 401 The provided token is unknown
                  value:
                    errors:
                    - code: UNKNOWN_TOKEN
                      detail: The provided token is unknown. Please contact our support team support@commandersact.com
        '403':
          description: API caller does not have access to this resource
          content:
            application/vnd.api+json:
              example:
                errors:
                - code: SITE_ACCESS_FORBIDDEN
                  detail: You cannot access this site
        '429':
          description: Too Many Requests
          content:
            application/vnd.api+json:
              schema:
                type: object
                properties:
                  errors:
                    type: array
                    items:
                      type: object
                      properties:
                        code:
                          type: string
                        detail:
                          type: string
              examples:
                connection_limit_reached:
                  value:
                    description: You have too many open connections
                    errors:
                    - code: CONNECTION_LIMIT_REACHED
                      detail: Your account is limited to 30 simultaneous connections
                request_limit_reached:
                  value:
                    description: You have reached the request limit
                    errors:
                    - code: REQUEST_LIMIT_REACHED
                      detail: Your account is limited to 30 requests per second
        '500':
          description: Internal server error
          content:
            application/json:
              example:
                errors:
                - code: SERVER_ERROR
                  detail: An internal error occurred. Please contact our support team support@commandersact.com
      x-codeSamples:
      - lang: Shell
        source: "http GET 'https://api.commander1.com/v2/REPLACE_SITEID/normalized-datalayer/event-types?include=SOME_ARRAY_VALUE' \\\n  Authorization:'Bearer REPLACE_BEARER_TOKEN'"
      - lang: Shell
        source: "curl --request GET \\\n  --url 'https://api.commander1.com/v2/REPLACE_SITEID/normalized-datalayer/event-types?include=SOME_ARRAY_VALUE' \\\n  --header 'Authorization: Bearer REPLACE_BEARER_TOKEN'"
      - lang: Node
        source: "const http = require(\"https\");\n\nconst options = {\n  \"method\": \"GET\",\n  \"hostname\": \"api.commander1.com\",\n  \"port\": null,\n  \"path\": \"/v2/REPLACE_SITEID/normalized-datalayer/event-types?include=SOME_ARRAY_VALUE\",\n  \"headers\": {\n    \"Authorization\": \"Bearer REPLACE_BEARER_TOKEN\"\n  }\n};\n\nconst req = http.request(options, function (res) {\n  const chunks = [];\n\n  res.on(\"data\", function (chunk) {\n    chunks.push(chunk);\n  });\n\n  res.on(\"end\", function () {\n    const body = Buffer.concat(chunks);\n    console.log(body.toString());\n  });\n});\n\nreq.end();"
    post:
      tags:
      - Event Specification
      summary: Create Event Specification
      operationId: PlatformEventSpecificationStore
      description: '### Usage


        Create an event specification for the current site.


        For a custom event, provide attributes.name. To create a local copy of a standard event specification, provide its resource identifier in relationships.references instead.


        Event properties can be linked through relationships.properties. Use attributes.required_properties to mark linked properties as required.'
      parameters:
      - in: query
        name: include
        description: Include linked event properties in the response.
        schema:
          type: array
          items:
            type: string
            enum:
            - properties
        explode: false
        style: form
        example:
        - properties
      .relationships:
        type: object
        properties:
          references:
            type: object
            description: Standard event specification to copy. Use an empty data array for a custom event.
            required:
            - data
            properties:
              data:
                type: array
                items:
                  type: object
                  required:
                  - type
                  - id
                  properties:
                    type:
                      type: string
                      enum:
                      - normalized-datalayer/standard-event-types
                    id:
                      type: string
          properties:
            type: object
            description: Event properties to link to the event specification.
            required:
            - data
            properties:
              data:
                type: array
                items:
                  type: object
                  required:
                  - type
                  - id
                  properties:
                    type:
                      type: string
                      enum:
                      - normalized-datalayer/event-properties
                    id:
                      type: string
      .relationshipsExample:
        references:
          data: []
        properties:
          data:
          - type: normalized-datalayer/event-properties
            id: '4'
      requestBody:
        required: true
        content:
          application/vnd.api+json:
            schema:
              type: object
              required:
              - data
              properties:
                data:
                  type: object
                  required:
                  - type
                  - attributes
                  properties:
                    type:
                      type: string
                      enum:
                      - normalized-datalayer/event-types
                    attributes:
                      type: object
                      description: 'Attributes accepted when creating an event specification. A custom event requires name; when creating an event from a standard event, use the references relationship instead.

                        '
                      properties:
                        name:
                          type: string
                          maxLength: 255
                          description: Name of the custom event specification.
                        description:
                          type:
                          - string
                          - 'null'
                          description: Description of the event specification.
                        required_properties:
                          type: array
                          description: Names of the linked event properties that are required for this event.
                          items:
                            type: string
                      example:
                        name: test_event
                        description: Description event
                        required_properties: []
                    relationships:
                      type: object
                      properties:
                        references:
                          type: object
                          description: Standard event specification to copy. Use an empty data array for a custom event.
                          required:
                          - data
                          properties:
                            data:
                              type: array
                              items:
                                type: object
                                required:
                                - type
                                - id
                                properties:
                                  type:
                                    type: string
                                    enum:
                                    - normalized-datalayer/standard-event-types
                                  id:
                                    type: string
                        properties:
                          type: object
                          description: Event properties to link to the event specification.
                          required:
                          - data
                          properties:
                            data:
                              type: array
                              items:
                                type: object
                                required:
                                - type
                                - id
                                properties:
                                  type:
                                    type: string
                                    enum:
                                    - normalized-datalayer/event-properties
                                  id:
                                    type: string
            examples:
              200.main.jsonapi:
                value:
                  data:
                    type: normalized-datalayer/event-types
                    attributes:
                      name: test_event
                      description: Description event
                      required_properties: []
                    relationships:
                      references:
                        data: []
                      properties:
                        data:
                        - type: normalized-datalayer/event-properties
                          id: '4'
      responses:
        '200':
          description: Successful
          content:
            application/vnd.api+json:
              schema:
                type: object
                required:
                - data
                properties:
                  data:
                    type: object
                    required:
                    - type
                    - attributes
                    - id
                    properties:
                      type:
                        type: string
                        enum:
                        - normalized-datalayer/event-types
                      attributes:
                        type: object
                        description: Event specification attributes returned by the API.
                        required:
                        - name
                        - label
                        - description
                        - created
                        - updated
                        - stored
                        - is_custom
                        properties:
                          name:
                            type: string
                            maxLength: 255
                          label:
                            type: string
                            maxLength: 255
                          description:
                            type:
                            - string
                            - 'null'
                          created:
                            type:
                            - string
                            - 'null'
                            format: date-time
                          updated:
                            type:
                            - string
                            - 'null'
                            format: date-time
                          stored:
                            type: boolean
                          is_custom:
                            type: boolean
                        example:
                          name: page_view
                          label: Page view
                          description: The page_view call lets users see a page of their website.
                          created: '2022-09-22T18:04:49+02:00'
                          updated: '2022-09-23T18:05:43+02:00'
                          stored: false
                          is_custom: false
                      relationships:
                        type: object
                        properties:
                          references:
                            type: object
                            description: Standard event specification to copy. Use an empty data array for a custom event.
                            required:
                            - data
                            properties:
                              data:
                                type: array
                                items:
                                  type: object
                                  required:
                                  - type
                                  - id
                                  properties:
                                    type:
                                      type: string
                                      enum:
                                      - normalized-datalayer/standard-event-types
                                    id:
                                      type: string
                          properties:
                            type: object
                            description: Event properties to link to the event specification.
                            required:
                            - data
                            properties:
                              data:
                                type: array
                                items:
                                  type: object
                                  required:
                                  - type
                                  - id
                                  properties:
                                    type:
                                      type: string
                                      enum:
                                      - normalized-datalayer/event-properties
                                    id:
                                      type: string
                      id:
                        type: string
              example:
                data:
                  type: normalized-datalayer/event-types
                  id: '1'
                  attributes:
                    name: page_view
                    label: Page view
                    description: The page_view call lets users see a page of their website.
                    created: '2022-09-22T18:04:49+02:00'
                    updated: '2022-09-23T18:05:43+02:00'
                    stored: false
                    is_custom: false
                  relationships:
                    references:
                      data: []
                    properties:
                      data:
                      - type: normalized-datalayer/event-properties
                        id: '4'
        '401':
          description: Cannot identify the API caller
          content:
            application/vnd.api+json:
              examples:
                missing_header:
                  description: 401 Authorization header is missing
                  value:
                    errors:
                    - title: MISSING_AUTHORIZATION_HEADER
                      detail: The "Authorization" header is required
                unknown_token_type:
                  description: 401 Token type is missing
                  value:
                    errors:
                    - code: UNKNOWN_TOKEN_TYPE
                      detail: The token type is missing
                invalid_token_type:
                  description: 401 The token type is invalid
                  value:
                    errors:
                    - code: INVALID_TOKEN_TYPE
                      detail: The token type "Bear" is invalid. Expecting "Bearer" instead
                unknown_token:
                  description: 401 The provided token is unknown
                  value:
                    errors:
                    - code: UNKNOWN_TOKEN
                      detail: The provided token is unknown. Please contact our support team support@commandersact.com
        '403':
          description: API caller does not have access to this resource
          content:
            application/vnd.api+json:
              example:
                errors:
                - code: SITE_ACCESS_FORBIDDEN
                  detail: You cannot access this site
        '429':
          description: Too Many Requests
          content:
            application/vnd.api+json:
              schema:
                type: object
                properties:
                  errors:
                    type: array
                    items:
                      type: object
                      properties:
                        code:
                          type: string
                        detail:
                          type: string
              examples:
                connection_limit_reached:
                  value:
                    description: You have too many open connections
                    errors:
                    - code: CONNECTION_LIMIT_REACHED
                      detail: Your account is limited to 30 simultaneous connections
                request_limit_reached:
                  value:
                    description: You have reached the request limit
                    errors:
                    - code: REQUEST_LIMIT_REACHED
                      detail: Your account is limited to 30 requests per second
        '500':
          description: Internal server error
          content:
            application/json:
              example:
                errors:
                - code: SERVER_ERROR
                  detail: An internal error occurred. Please contact our support team support@commandersact.com
      x-codeSamples:
      - lang: Shell
        source: "http POST 'https://api.commander1.com/v2/REPLACE_SITEID/normalized-datalayer/event-types?include=SOME_ARRAY_VALUE' \\\n  Authorization:'Bearer REPLACE_BEARER_TOKEN' \\\n  content-type:'application/vnd.api+json'"
      - lang: Shell
        source: "curl --request POST \\\n  --url 'https://api.commander1.com/v2/REPLACE_SITEID/normalized-datalayer/event-types?include=SOME_ARRAY_VALUE' \\\n  --header 'Authorization: Bearer REPLACE_BEARER_TOKEN' \\\n  --header 'content-type: application/vnd.api+json'"
      - lang: Node
        source: "const http = require(\"https\");\n\nconst options = {\n  \"method\": \"POST\",\n  \"hostname\": \"api.commander1.com\",\n  \"port\": null,\n  \"path\": \"/v2/REPLACE_SITEID/normalized-datalayer/event-types?include=SOME_ARRAY_VALUE\",\n  \"headers\": {\n    \"content-type\": \"application/vnd.api+json\",\n    \"Authorization\": \"Bearer REPLACE_BEARER_TOKEN\"\n  }\n};\n\nconst req = http.request(options, function (res) {\n  const chunks = [];\n\n  res.on(\"data\", function (chunk) {\n    chunks.push(chunk);\n  });\n\n  res.on(\"end\", function () {\n    const body = Buffer.concat(chunks);\n    console.log(body.toString());\n  });\n});\n\nreq.end();"
components:
  securitySchemes:
    UserAuthentication:
      type: http
      description: "This authenticate user to use the API\nYou MUST send the token for each request in the Authorization header. The token MUST be preceeded by Bearer.\n\n```HTTP\n    GET https://api.commander1.com/v2/{siteId}/users HTTP/1.1\n    Host: api.commander1.com\n    Authorization: Bearer {mySecretToken}\n```\n> You should replace \"\\{mySecretToken\\}\" in example with your Token.\n\n> You should replace \"\\{siteId\\}\" in example with your Site ID.\n"
      scheme: bearer
      bearerFormat: JWT
    DataAuthentication:
      type: http
      description: "This authenticate Data Account to use the API\nThe API uses Token to authenticate its user.\nYou MUST send the token for each request in the Authorization header. The token MUST be preceeded by Bearer.\n\n```HTTP\n    GET https://api.commander1.com/v2/{siteId}/users HTTP/1.1\n    Host: api.commander1.com\n    Authorization: Bearer {mySecretToken}\n```\n> You should replace \"\\{mySecretToken\\}\" in example with your Token.\n\n> You should replace \"\\{siteId\\}\" in example with your Site ID.\n"
      scheme: bearer
      bearerFormat: JWT
x-tagGroups:
- name: Integrations
  tags:
  - Sources
  - Destinations
  - Cleansing transformations
- name: Enrichments
  tags:
  - Event enrichments
- name: Health
  tags:
  - Event Delivery
  - Sources Data Quality
  - Monitoring
  - Cookie Scanner
- name: Customers
  tags:
  - Segments
  - Identities
- name: Explore
  tags:
  - Live Report Builder
  - Consent Analysis
- name: Data-Management
  tags:
  - Event Specification
- name: Client-side Tag Management
  tags:
  - Web Containers
  - Web Containers Variables
- name: Server-side Tag Management
  tags:
  - Server-side Containers V1 (deprecated)
  - Server-side Containers V1 Variables (deprecated)
- name: Admin
  tags:
  - AdminActivityLogs
  - AdminBillingCategories
  - AdminBillingFeatures
  - AdminBillingSubscriptionPeriods


# --- truncated at 32 KB (32 KB total) ---
# Full source: https://artifacts.apis.io/commanders-act/openapi/commanders-act-event-specification-api-openapi.yml