{
  "info": {
    "_postman_id": "49612609-fbe7-453a-91e9-c6517840f654",
    "name": "Tray.ai Embedded Authentication Workflows 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:19.000Z",
    "updatedAt": "2026-07-28T03:18:20.000Z",
    "lastUpdatedBy": "35240",
    "uid": "35240-49612609-fbe7-453a-91e9-c6517840f654"
  },
  "item": [
    {
      "name": "graphql#exportWorkflows",
      "item": [
        {
          "name": "Tray.ai Export Workflows",
          "id": "d0419be7-c707-49b5-afec-da041948331f",
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          },
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n  \"query\": \"<string>\",\n  \"variables\": {},\n  \"operationName\": \"<string>\"\n}",
              "options": {
                "raw": {
                  "headerFamily": "json",
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "{{baseUrl}}/graphql#exportWorkflows",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "graphql"
              ],
              "hash": "exportWorkflows"
            },
            "description": "Exports workflows from your embedded account. Useful for promoting workflows from staging to production environments. Requires a master token."
          },
          "response": [
            {
              "id": "4723f9d2-9c20-49fa-a0f3-1c20bc1d1a8b",
              "name": "Workflows exported 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  \"query\": \"<string>\",\n  \"variables\": {},\n  \"operationName\": \"<string>\"\n}",
                  "options": {
                    "raw": {
                      "headerFamily": "json",
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{baseUrl}}/graphql#exportWorkflows",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "graphql"
                  ],
                  "hash": "exportWorkflows"
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "cookie": [],
              "responseTime": null,
              "body": "{\n  \"data\": {\n    \"exportWorkflows\": {\n      \"exportedData\": \"<string>\"\n    }\n  }\n}",
              "createdAt": "2026-07-28T03:18:20.000Z",
              "updatedAt": "2026-07-28T03:18:20.000Z",
              "uid": "35240-4723f9d2-9c20-49fa-a0f3-1c20bc1d1a8b"
            },
            {
              "id": "1c87d22e-424c-4022-b696-35deb0bbf73f",
              "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  \"query\": \"<string>\",\n  \"variables\": {},\n  \"operationName\": \"<string>\"\n}",
                  "options": {
                    "raw": {
                      "headerFamily": "json",
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{baseUrl}}/graphql#exportWorkflows",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "graphql"
                  ],
                  "hash": "exportWorkflows"
                }
              },
              "status": "Unauthorized",
              "code": 401,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "cookie": [],
              "responseTime": null,
              "body": "{\n  \"errors\": [\n    {\n      \"message\": \"<string>\",\n      \"locations\": [\n        {\n          \"line\": \"<integer>\",\n          \"column\": \"<integer>\"\n        },\n        {\n          \"line\": \"<integer>\",\n          \"column\": \"<integer>\"\n        }\n      ],\n      \"path\": [\n        \"<string>\",\n        \"<string>\"\n      ]\n    },\n    {\n      \"message\": \"<string>\",\n      \"locations\": [\n        {\n          \"line\": \"<integer>\",\n          \"column\": \"<integer>\"\n        },\n        {\n          \"line\": \"<integer>\",\n          \"column\": \"<integer>\"\n        }\n      ],\n      \"path\": [\n        \"<string>\",\n        \"<string>\"\n      ]\n    }\n  ]\n}",
              "createdAt": "2026-07-28T03:18:20.000Z",
              "updatedAt": "2026-07-28T03:18:20.000Z",
              "uid": "35240-1c87d22e-424c-4022-b696-35deb0bbf73f"
            }
          ],
          "createdAt": "2026-07-28T03:18:20.000Z",
          "updatedAt": "2026-07-28T03:18:20.000Z",
          "uid": "35240-d0419be7-c707-49b5-afec-da041948331f"
        }
      ],
      "id": "1e5e59df-139d-40a5-86d5-982e6f093ed0",
      "createdAt": "2026-07-28T03:18:20.000Z",
      "updatedAt": "2026-07-28T03:18:20.000Z",
      "uid": "35240-1e5e59df-139d-40a5-86d5-982e6f093ed0"
    },
    {
      "name": "graphql#importWorkflows",
      "item": [
        {
          "name": "Tray.ai Import Workflows",
          "id": "34f2e9e7-7bf0-4da2-9e09-1624c5130032",
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          },
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n  \"query\": \"<string>\",\n  \"variables\": {},\n  \"operationName\": \"<string>\"\n}",
              "options": {
                "raw": {
                  "headerFamily": "json",
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "{{baseUrl}}/graphql#importWorkflows",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "graphql"
              ],
              "hash": "importWorkflows"
            },
            "description": "Imports workflows into your embedded account from exported data. Useful for promoting workflows from staging to production environments. Requires a master token."
          },
          "response": [
            {
              "id": "1933961c-788c-4608-924e-6489b22e061f",
              "name": "Workflows imported 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  \"query\": \"<string>\",\n  \"variables\": {},\n  \"operationName\": \"<string>\"\n}",
                  "options": {
                    "raw": {
                      "headerFamily": "json",
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{baseUrl}}/graphql#importWorkflows",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "graphql"
                  ],
                  "hash": "importWorkflows"
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "cookie": [],
              "responseTime": null,
              "body": "{\n  \"data\": {\n    \"importWorkflows\": {\n      \"clientMutationId\": \"<string>\"\n    }\n  }\n}",
              "createdAt": "2026-07-28T03:18:20.000Z",
              "updatedAt": "2026-07-28T03:18:20.000Z",
              "uid": "35240-1933961c-788c-4608-924e-6489b22e061f"
            },
            {
              "id": "374dc050-91a8-4d93-9391-66df9abfbebe",
              "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  \"query\": \"<string>\",\n  \"variables\": {},\n  \"operationName\": \"<string>\"\n}",
                  "options": {
                    "raw": {
                      "headerFamily": "json",
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{baseUrl}}/graphql#importWorkflows",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "graphql"
                  ],
                  "hash": "importWorkflows"
                }
              },
              "status": "Unauthorized",
              "code": 401,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "cookie": [],
              "responseTime": null,
              "body": "{\n  \"errors\": [\n    {\n      \"message\": \"<string>\",\n      \"locations\": [\n        {\n          \"line\": \"<integer>\",\n          \"column\": \"<integer>\"\n        },\n        {\n          \"line\": \"<integer>\",\n          \"column\": \"<integer>\"\n        }\n      ],\n      \"path\": [\n        \"<string>\",\n        \"<string>\"\n      ]\n    },\n    {\n      \"message\": \"<string>\",\n      \"locations\": [\n        {\n          \"line\": \"<integer>\",\n          \"column\": \"<integer>\"\n        },\n        {\n          \"line\": \"<integer>\",\n          \"column\": \"<integer>\"\n        }\n      ],\n      \"path\": [\n        \"<string>\",\n        \"<string>\"\n      ]\n    }\n  ]\n}",
              "createdAt": "2026-07-28T03:18:20.000Z",
              "updatedAt": "2026-07-28T03:18:20.000Z",
              "uid": "35240-374dc050-91a8-4d93-9391-66df9abfbebe"
            }
          ],
          "createdAt": "2026-07-28T03:18:20.000Z",
          "updatedAt": "2026-07-28T03:18:20.000Z",
          "uid": "35240-34f2e9e7-7bf0-4da2-9e09-1624c5130032"
        }
      ],
      "id": "e4a26925-bcd1-46eb-b75e-72c7e71e616f",
      "createdAt": "2026-07-28T03:18:20.000Z",
      "updatedAt": "2026-07-28T03:18:20.000Z",
      "uid": "35240-e4a26925-bcd1-46eb-b75e-72c7e71e616f"
    }
  ],
  "auth": {
    "type": "bearer",
    "bearer": [
      {
        "key": "token",
        "value": "{{bearerToken}}",
        "type": "string"
      }
    ]
  },
  "variable": [
    {
      "key": "baseUrl",
      "value": "https://tray.io"
    }
  ]
}