{
  "info": {
    "_postman_id": "a9895b52-5699-4808-b67b-d70d6c37a0f7",
    "name": "Tray.ai Embedded Authentication Triggers API",
    "description": "The Tray.ai Embedded API is a GraphQL-based API that allows partners and customers to present in-app embedded integration experiences using Tray's UI components. It provides programmatic access to manage users, solutions, solution instances, authentications, workflows, and connector operations. All API calls are made via HTTP POST to the GraphQL endpoint with Bearer token authentication. The API supports two token types: master tokens (for admin operations like managing users) and user tokens (for user-scoped operations like managing solution instances). This is a backend-only API; client-side JavaScript calls are blocked by CORS.\n\nContact Support:\n Name: Tray.ai Support",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
    "createdAt": "2026-07-28T03:18:15.000Z",
    "updatedAt": "2026-07-28T03:18:16.000Z",
    "lastUpdatedBy": "35240",
    "uid": "35240-a9895b52-5699-4808-b67b-d70d6c37a0f7"
  },
  "item": [
    {
      "name": "triggers",
      "item": [
        {
          "name": "Tray.ai List Triggers",
          "id": "40e0c9ba-005e-45bd-8a6c-a756e44a17fc",
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          },
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{baseUrl}}/triggers",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "triggers"
              ]
            },
            "description": "Returns a list of all available triggers from Tray's trigger library. Triggers allow you to receive data from third-party services in real time."
          },
          "response": [
            {
              "id": "72ade103-3e99-4fe8-b03f-5b36fe819d92",
              "name": "List of triggers returned successfully",
              "originalRequest": {
                "method": "GET",
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  },
                  {
                    "description": "Added as a part of security scheme: bearer",
                    "key": "Authorization",
                    "value": "Bearer <token>"
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/triggers",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "triggers"
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "cookie": [],
              "responseTime": null,
              "body": "{\n  \"elements\": [\n    {\n      \"name\": \"<string>\",\n      \"title\": \"<string>\",\n      \"description\": \"<string>\",\n      \"connectorName\": \"<string>\",\n      \"inputSchema\": {}\n    },\n    {\n      \"name\": \"<string>\",\n      \"title\": \"<string>\",\n      \"description\": \"<string>\",\n      \"connectorName\": \"<string>\",\n      \"inputSchema\": {}\n    }\n  ]\n}",
              "createdAt": "2026-07-28T03:18:16.000Z",
              "updatedAt": "2026-07-28T03:18:16.000Z",
              "uid": "35240-72ade103-3e99-4fe8-b03f-5b36fe819d92"
            },
            {
              "id": "56566e90-d767-4857-8a55-f7b374f4c1ee",
              "name": "Authentication failed. The bearer token is missing, invalid, or does not have sufficient permissions for the requested operation.",
              "originalRequest": {
                "method": "GET",
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  },
                  {
                    "description": "Added as a part of security scheme: bearer",
                    "key": "Authorization",
                    "value": "Bearer <token>"
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/triggers",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "triggers"
                  ]
                }
              },
              "status": "Unauthorized",
              "code": 401,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "cookie": [],
              "responseTime": null,
              "body": "{\n  \"error\": \"<string>\",\n  \"message\": \"<string>\",\n  \"statusCode\": \"<integer>\"\n}",
              "createdAt": "2026-07-28T03:18:16.000Z",
              "updatedAt": "2026-07-28T03:18:16.000Z",
              "uid": "35240-56566e90-d767-4857-8a55-f7b374f4c1ee"
            }
          ],
          "createdAt": "2026-07-28T03:18:16.000Z",
          "updatedAt": "2026-07-28T03:18:16.000Z",
          "uid": "35240-40e0c9ba-005e-45bd-8a6c-a756e44a17fc"
        }
      ],
      "id": "b52236b4-4730-4eba-9732-d2a3e8b81817",
      "createdAt": "2026-07-28T03:18:16.000Z",
      "updatedAt": "2026-07-28T03:18:16.000Z",
      "uid": "35240-b52236b4-4730-4eba-9732-d2a3e8b81817"
    },
    {
      "name": "subscriptions",
      "item": [
        {
          "name": "{subscriptionId}",
          "item": [
            {
              "name": "Tray.ai Delete Subscription",
              "id": "949a3ec0-2283-4c04-8865-cbeb3c1c4231",
              "protocolProfileBehavior": {
                "disableBodyPruning": true
              },
              "request": {
                "method": "DELETE",
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/subscriptions/:subscriptionId",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "subscriptions",
                    ":subscriptionId"
                  ],
                  "variable": [
                    {
                      "id": "06cb9f31-a1ae-452b-91cc-1b5b574b9c11",
                      "key": "subscriptionId",
                      "value": "<string>",
                      "description": "(Required) The unique identifier for the subscription"
                    }
                  ]
                },
                "description": "Deletes a trigger subscription by its ID. Requires a user token."
              },
              "response": [
                {
                  "id": "430f04c2-57ce-4071-a390-cb026dfb4903",
                  "name": "Subscription deleted successfully",
                  "originalRequest": {
                    "method": "DELETE",
                    "header": [
                      {
                        "description": "Added as a part of security scheme: bearer",
                        "key": "Authorization",
                        "value": "Bearer <token>"
                      }
                    ],
                    "url": {
                      "raw": "{{baseUrl}}/subscriptions/:subscriptionId",
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "path": [
                        "subscriptions",
                        ":subscriptionId"
                      ],
                      "variable": [
                        {
                          "key": "subscriptionId"
                        }
                      ]
                    }
                  },
                  "status": "No Content",
                  "code": 204,
                  "_postman_previewlanguage": "text",
                  "header": [],
                  "cookie": [],
                  "responseTime": null,
                  "body": null,
                  "createdAt": "2026-07-28T03:18:16.000Z",
                  "updatedAt": "2026-07-28T03:18:16.000Z",
                  "uid": "35240-430f04c2-57ce-4071-a390-cb026dfb4903"
                },
                {
                  "id": "33ed425a-ffd3-404d-be61-bcce60ad18aa",
                  "name": "Authentication failed. The bearer token is missing, invalid, or does not have sufficient permissions for the requested operation.",
                  "originalRequest": {
                    "method": "DELETE",
                    "header": [
                      {
                        "key": "Accept",
                        "value": "application/json"
                      },
                      {
                        "description": "Added as a part of security scheme: bearer",
                        "key": "Authorization",
                        "value": "Bearer <token>"
                      }
                    ],
                    "url": {
                      "raw": "{{baseUrl}}/subscriptions/:subscriptionId",
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "path": [
                        "subscriptions",
                        ":subscriptionId"
                      ],
                      "variable": [
                        {
                          "key": "subscriptionId"
                        }
                      ]
                    }
                  },
                  "status": "Unauthorized",
                  "code": 401,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "responseTime": null,
                  "body": "{\n  \"error\": \"<string>\",\n  \"message\": \"<string>\",\n  \"statusCode\": \"<integer>\"\n}",
                  "createdAt": "2026-07-28T03:18:16.000Z",
                  "updatedAt": "2026-07-28T03:18:16.000Z",
                  "uid": "35240-33ed425a-ffd3-404d-be61-bcce60ad18aa"
                },
                {
                  "id": "e27cd3b8-7315-4bc5-9126-dc59b3dc3010",
                  "name": "Subscription not found",
                  "originalRequest": {
                    "method": "DELETE",
                    "header": [
                      {
                        "description": "Added as a part of security scheme: bearer",
                        "key": "Authorization",
                        "value": "Bearer <token>"
                      }
                    ],
                    "url": {
                      "raw": "{{baseUrl}}/subscriptions/:subscriptionId",
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "path": [
                        "subscriptions",
                        ":subscriptionId"
                      ],
                      "variable": [
                        {
                          "key": "subscriptionId"
                        }
                      ]
                    }
                  },
                  "status": "Not Found",
                  "code": 404,
                  "_postman_previewlanguage": "text",
                  "header": [],
                  "cookie": [],
                  "responseTime": null,
                  "body": null,
                  "createdAt": "2026-07-28T03:18:16.000Z",
                  "updatedAt": "2026-07-28T03:18:16.000Z",
                  "uid": "35240-e27cd3b8-7315-4bc5-9126-dc59b3dc3010"
                }
              ],
              "createdAt": "2026-07-28T03:18:16.000Z",
              "updatedAt": "2026-07-28T03:18:16.000Z",
              "uid": "35240-949a3ec0-2283-4c04-8865-cbeb3c1c4231"
            }
          ],
          "id": "5c7e38e9-7eac-439b-911a-8485ed197548",
          "createdAt": "2026-07-28T03:18:16.000Z",
          "updatedAt": "2026-07-28T03:18:16.000Z",
          "uid": "35240-5c7e38e9-7eac-439b-911a-8485ed197548"
        },
        {
          "name": "Tray.ai Create Subscription",
          "id": "d750f667-e522-4744-a111-b644ecc35de1",
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          },
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n  \"triggerName\": \"<string>\",\n  \"connectorName\": \"<string>\",\n  \"connectorVersion\": \"<string>\",\n  \"authId\": \"<string>\",\n  \"input\": {}\n}",
              "options": {
                "raw": {
                  "headerFamily": "json",
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "{{baseUrl}}/subscriptions",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "subscriptions"
              ]
            },
            "description": "Creates a new trigger subscription using a trigger operation. The input must conform to the input schema of the trigger operation."
          },
          "response": [
            {
              "id": "e0bf8adb-f4da-455f-ae4d-80096ddf0d59",
              "name": "Subscription created successfully",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "Accept",
                    "value": "application/json"
                  },
                  {
                    "description": "Added as a part of security scheme: bearer",
                    "key": "Authorization",
                    "value": "Bearer <token>"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"triggerName\": \"<string>\",\n  \"connectorName\": \"<string>\",\n  \"connectorVersion\": \"<string>\",\n  \"authId\": \"<string>\",\n  \"input\": {}\n}",
                  "options": {
                    "raw": {
                      "headerFamily": "json",
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{baseUrl}}/subscriptions",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "subscriptions"
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "cookie": [],
              "responseTime": null,
              "body": "{\n  \"id\": \"<string>\",\n  \"triggerName\": \"<string>\",\n  \"connectorName\": \"<string>\",\n  \"status\": \"<string>\",\n  \"createdAt\": \"<dateTime>\"\n}",
              "createdAt": "2026-07-28T03:18:16.000Z",
              "updatedAt": "2026-07-28T03:18:16.000Z",
              "uid": "35240-e0bf8adb-f4da-455f-ae4d-80096ddf0d59"
            },
            {
              "id": "e14344d0-5934-4569-ba92-e375eed9a5c1",
              "name": "Invalid input",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "description": "Added as a part of security scheme: bearer",
                    "key": "Authorization",
                    "value": "Bearer <token>"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"triggerName\": \"<string>\",\n  \"connectorName\": \"<string>\",\n  \"connectorVersion\": \"<string>\",\n  \"authId\": \"<string>\",\n  \"input\": {}\n}",
                  "options": {
                    "raw": {
                      "headerFamily": "json",
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{baseUrl}}/subscriptions",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "subscriptions"
                  ]
                }
              },
              "status": "Bad Request",
              "code": 400,
              "_postman_previewlanguage": "text",
              "header": [],
              "cookie": [],
              "responseTime": null,
              "body": null,
              "createdAt": "2026-07-28T03:18:16.000Z",
              "updatedAt": "2026-07-28T03:18:16.000Z",
              "uid": "35240-e14344d0-5934-4569-ba92-e375eed9a5c1"
            },
            {
              "id": "6e1ad3f1-b200-43e4-aceb-f634aab40f85",
              "name": "Authentication failed. The bearer token is missing, invalid, or does not have sufficient permissions for the requested operation.",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "Accept",
                    "value": "application/json"
                  },
                  {
                    "description": "Added as a part of security scheme: bearer",
                    "key": "Authorization",
                    "value": "Bearer <token>"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"triggerName\": \"<string>\",\n  \"connectorName\": \"<string>\",\n  \"connectorVersion\": \"<string>\",\n  \"authId\": \"<string>\",\n  \"input\": {}\n}",
                  "options": {
                    "raw": {
                      "headerFamily": "json",
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{baseUrl}}/subscriptions",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "subscriptions"
                  ]
                }
              },
              "status": "Unauthorized",
              "code": 401,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "cookie": [],
              "responseTime": null,
              "body": "{\n  \"error\": \"<string>\",\n  \"message\": \"<string>\",\n  \"statusCode\": \"<integer>\"\n}",
              "createdAt": "2026-07-28T03:18:16.000Z",
              "updatedAt": "2026-07-28T03:18:16.000Z",
              "uid": "35240-6e1ad3f1-b200-43e4-aceb-f634aab40f85"
            }
          ],
          "createdAt": "2026-07-28T03:18:16.000Z",
          "updatedAt": "2026-07-28T03:18:16.000Z",
          "uid": "35240-d750f667-e522-4744-a111-b644ecc35de1"
        }
      ],
      "id": "140b3d74-67ad-424c-893c-d32ad2038fa6",
      "createdAt": "2026-07-28T03:18:16.000Z",
      "updatedAt": "2026-07-28T03:18:16.000Z",
      "uid": "35240-140b3d74-67ad-424c-893c-d32ad2038fa6"
    }
  ],
  "auth": {
    "type": "bearer",
    "bearer": [
      {
        "key": "token",
        "value": "{{bearerToken}}",
        "type": "string"
      }
    ]
  },
  "variable": [
    {
      "key": "baseUrl",
      "value": "https://tray.io"
    }
  ]
}