---
updatedAt: 2026-06-22T09:15:03.000Z
agentTools:
  projectIndex: https://docs.truelayer.com/llms.txt
---

# Get Connected Accounts

Lists all connected accounts.

This API must be called using a `client_credentials` bearer token.

The endpoint returns a maximum of 50 items. Pagination will be supported in the future.

Items are ordered by `type` ascending, then `id` ascending.


# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Data API v3",
    "description": "Reference documentation for Data API v3\n",
    "version": "1",
    "license": {
      "name": "Apache 2.0",
      "url": "https://www.apache.org/licenses/LICENSE-2.0.html"
    }
  },
  "servers": [
    {
      "url": "https://api.truelayer-sandbox.com",
      "description": "Sandbox server"
    },
    {
      "url": "https://api.truelayer.com",
      "description": "Production server"
    }
  ],
  "tags": [
    {
      "name": "Connection Management",
      "description": "Endpoints to manage data connections."
    },
    {
      "name": "Accounts",
      "description": "Endpoints to retrieve account data using a data connection."
    }
  ],
  "paths": {
    "/v3/connected-accounts": {
      "get": {
        "tags": [
          "Accounts"
        ],
        "summary": "Get Connected Accounts",
        "operationId": "connected-accounts-get-accounts",
        "description": "Lists all connected accounts.\n\nThis API must be called using a `client_credentials` bearer token.\n\nThe endpoint returns a maximum of 50 items. Pagination will be supported in the future.\n\nItems are ordered by `type` ascending, then `id` ascending.\n",
        "security": [
          {
            "OAuth2": [
              "data"
            ]
          }
        ],
        "parameters": [
          {
            "$ref": "#/components/parameters/ConnectionIdHeader"
          },
          {
            "$ref": "#/components/parameters/TlUserIpHeader"
          },
          {
            "in": "query",
            "name": "cursor",
            "description": "Cursor used for pagination. Pass the `next_cursor` value from a previous response to retrieve the next page of results.\nNote: cursor-based pagination is not yet active; this parameter is accepted but has no effect in the initial release.\n",
            "schema": {
              "$ref": "#/components/schemas/Cursor"
            },
            "required": false
          },
          {
            "in": "query",
            "name": "type",
            "required": false,
            "description": "Filters results by resource type. Valid value is `account`.\nAny other value returns a `400` `invalid-parameters` error.\n",
            "schema": {
              "type": "string",
              "enum": [
                "account"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Accounts",
            "headers": {
              "Tl-Trace-Id": {
                "$ref": "#/components/headers/Tl-Trace-Id"
              }
            },
            "content": {
              "application/json; charset=UTF-8": {
                "schema": {
                  "$ref": "#/components/schemas/GetConnectedAccounts"
                }
              }
            }
          },
          "400": {
            "description": "Invalid Request",
            "headers": {
              "Tl-Trace-Id": {
                "$ref": "#/components/headers/Tl-Trace-Id"
              }
            },
            "content": {
              "application/problem+json; charset=UTF-8": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/ProblemDetailsInvalidParameters"
                    },
                    {
                      "$ref": "#/components/schemas/ProblemDetailsInvalidState"
                    }
                  ],
                  "discriminator": {
                    "propertyName": "type",
                    "mapping": {
                      "https://docs.truelayer.com/docs/error-types#invalid-parameters": "#/components/schemas/ProblemDetailsInvalidParameters",
                      "https://docs.truelayer.com/docs/error-types#invalid-state": "#/components/schemas/ProblemDetailsInvalidState"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthenticated",
            "headers": {
              "Tl-Trace-Id": {
                "$ref": "#/components/headers/Tl-Trace-Id"
              }
            },
            "content": {
              "application/problem+json; charset=UTF-8": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetailsUnauthenticated"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "headers": {
              "Tl-Trace-Id": {
                "$ref": "#/components/headers/Tl-Trace-Id"
              }
            },
            "content": {
              "application/problem+json; charset=UTF-8": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetailsForbidden"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "headers": {
              "Tl-Trace-Id": {
                "$ref": "#/components/headers/Tl-Trace-Id"
              }
            },
            "content": {
              "application/problem+json; charset=UTF-8": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetailsNotFound"
                }
              }
            }
          },
          "429": {
            "description": "Rate Limit Exceeded",
            "headers": {
              "Tl-Trace-Id": {
                "$ref": "#/components/headers/Tl-Trace-Id"
              }
            },
            "content": {
              "application/problem+json; charset=UTF-8": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetailsRateLimitExceeded"
                }
              }
            }
          },
          "500": {
            "description": "Unknown Error",
            "headers": {
              "Tl-Trace-Id": {
                "$ref": "#/components/headers/Tl-Trace-Id"
              }
            },
            "content": {
              "application/problem+json; charset=UTF-8": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetailsUnknownError"
                }
              }
            }
          },
          "502": {
            "description": "Provider Error",
            "headers": {
              "Tl-Trace-Id": {
                "$ref": "#/components/headers/Tl-Trace-Id"
              }
            },
            "content": {
              "application/problem+json; charset=UTF-8": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/ProblemDetailsProviderError"
                    },
                    {
                      "$ref": "#/components/schemas/ProblemDetailsFeatureNotSupported"
                    }
                  ],
                  "discriminator": {
                    "propertyName": "type",
                    "mapping": {
                      "https://docs.truelayer.com/docs/error-types#provider-error": "#/components/schemas/ProblemDetailsProviderError",
                      "https://docs.truelayer.com/docs/error-types#feature-not-supported": "#/components/schemas/ProblemDetailsFeatureNotSupported"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "webhooks": {
    "connection_management": {
      "post": {
        "tags": [
          "Connection Management"
        ],
        "summary": "Connection Webhooks",
        "operationId": "connection-webhooks-management",
        "description": "Sent to the webhook URI that you registered when:\n- a connection is authorised.\n- a connection fails.\n",
        "parameters": [
          {
            "$ref": "#/components/parameters/WebhookSignatureHeader"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "oneOf": [
                  {
                    "$ref": "#/components/schemas/ConnectionAuthorized"
                  },
                  {
                    "$ref": "#/components/schemas/ConnectionFailed"
                  }
                ],
                "discriminator": {
                  "propertyName": "type",
                  "mapping": {
                    "connection_authorized": "#/components/schemas/ConnectionAuthorized",
                    "connection_failed": "#/components/schemas/ConnectionFailed"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Webhook Handled"
          }
        },
        "security": []
      }
    },
    "transaction_requests": {
      "post": {
        "tags": [
          "Accounts"
        ],
        "summary": "Transactions request webhooks",
        "operationId": "transactions-request-webhooks",
        "description": "Sent to the configured webhook URI when an async transactions request reaches a terminal state:\n- The request completed successfully. Call `GET /v3/connected-accounts/{account_id}/transactions/requests/{request_id}` to retrieve the transactions.\n- The request failed.\n",
        "parameters": [
          {
            "$ref": "#/components/parameters/WebhookSignatureHeader"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "oneOf": [
                  {
                    "$ref": "#/components/schemas/TransactionsRequestWebhookCompleted"
                  },
                  {
                    "$ref": "#/components/schemas/TransactionsRequestWebhookFailed"
                  }
                ],
                "discriminator": {
                  "propertyName": "type",
                  "mapping": {
                    "transactions_request_completed": "#/components/schemas/TransactionsRequestWebhookCompleted",
                    "transactions_request_failed": "#/components/schemas/TransactionsRequestWebhookFailed"
                  }
                }
              },
              "examples": {
                "transactions_request_completed_example": {
                  "summary": "Transactions request completed successfully",
                  "value": {
                    "type": "transactions_request_completed",
                    "event_version": 1,
                    "event_id": "b8d4dda0-ff2c-4d77-a6da-4615e4bad941",
                    "connection_id": "7d4b7a2e-9f3c-4e8b-a1d5-6c2f8e0b3a7d",
                    "account_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
                    "request_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
                    "completed_at": "2026-07-15T12:34:56.789Z"
                  }
                },
                "transactions_request_failed_example": {
                  "summary": "Transactions request failed",
                  "value": {
                    "type": "transactions_request_failed",
                    "event_version": 1,
                    "event_id": "c1e475a8-f838-4a35-95df-51465d66a61d",
                    "connection_id": "7d4b7a2e-9f3c-4e8b-a1d5-6c2f8e0b3a7d",
                    "account_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
                    "request_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
                    "failure_reason": "provider_error",
                    "failed_at": "2026-07-15T12:34:56.789Z"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Webhook Handled"
          }
        },
        "security": []
      }
    }
  },
  "components": {
    "securitySchemes": {
      "OAuth2": {
        "type": "oauth2",
        "flows": {
          "clientCredentials": {
            "tokenUrl": "https://auth.truelayer.com/connect/token",
            "scopes": {
              "data": "for accessing all the endpoints of Data API"
            }
          }
        }
      }
    },
    "parameters": {
      "ConnectionIdHeader": {
        "in": "header",
        "name": "Connection-Id",
        "description": "The unique identifier of the data connection.",
        "schema": {
          "type": "string"
        },
        "required": true
      },
      "TlUserIpHeader": {
        "in": "header",
        "name": "Tl-User-IP",
        "description": "Used to collect and record the end-user's IP address.\nThe first IP address in the list will be used as the end-user IP address.\nNecessary to overcome 4 calls per day rate limits.\n",
        "schema": {
          "type": "string"
        },
        "required": false
      },
      "WebhookSignatureHeader": {
        "in": "header",
        "name": "Tl-Signature",
        "description": "A JWS with detached content, verifiable with our public key.\nSee [Webhook Request Signing](/docs/configure-webhooks-for-your-integration#validate-the-signature-of-received-webhooks)\n",
        "schema": {
          "type": "string"
        },
        "required": true
      }
    },
    "schemas": {
      "Cursor": {
        "type": "string",
        "title": "Cursor",
        "description": "Cursor used for pagination purposes that represents the first item of the page.\nReturned as `next_cursor` in the response payload of endpoints supporting pagination.\nNot required to access the first page of items.\n",
        "example": "bWFuZGF0ZXM6MmUwNDk0MTMK"
      },
      "AccountCommon": {
        "title": "AccountCommon",
        "type": "object",
        "required": [
          "id",
          "type"
        ],
        "properties": {
          "id": {
            "type": "string",
            "description": "The unique identifier of the account.",
            "example": "56c7b029e0f8ec5a2334fb0ffc2fface"
          },
          "type": {
            "type": "string",
            "enum": [
              "account",
              "card"
            ],
            "description": "Discriminator field identifying the account type."
          }
        }
      },
      "CurrencyCode": {
        "type": "string",
        "pattern": "^[A-Z]{3}$",
        "description": "Specified as a 3-letter ISO 4217 currency code.",
        "example": "GBP"
      },
      "AccountType": {
        "type": "string",
        "enum": [
          "current",
          "savings"
        ],
        "example": "current"
      },
      "CustomerSegment": {
        "type": "string",
        "enum": [
          "retail",
          "business"
        ],
        "example": "retail"
      },
      "AccountIdentifierScan": {
        "type": "object",
        "title": "Sort Code + Account Number",
        "description": "The scheme identifier for a bank account participating in UK payment schemes.",
        "required": [
          "type",
          "sort_code",
          "account_number"
        ],
        "properties": {
          "type": {
            "description": "The type of scheme identifier.",
            "type": "string",
            "enum": [
              "sort_code_account_number"
            ]
          },
          "sort_code": {
            "description": "6 digit sort code (no spaces or dashes). pattern: `^[0-9]{6}$`",
            "type": "string",
            "minLength": 6,
            "maxLength": 6,
            "example": 560029,
            "pattern": "^[0-9]{6}$"
          },
          "account_number": {
            "description": "8 digit account number. pattern: `^[0-9]{8}$`",
            "type": "string",
            "minLength": 8,
            "maxLength": 8,
            "example": 26207729,
            "pattern": "^[0-9]{8}$"
          }
        }
      },
      "AccountIdentifierIban": {
        "type": "object",
        "title": "IBAN",
        "description": "The international bank account number.",
        "required": [
          "type",
          "iban"
        ],
        "properties": {
          "type": {
            "description": "The type of scheme identifier.",
            "type": "string",
            "enum": [
              "iban"
            ]
          },
          "iban": {
            "description": "Valid International Bank Account Number (no spaces). Consists of a 2 letter country code, followed by 2 check digits, and then by up to 30 alphanumeric characters (also known as the BBAN). pattern: `^[A-Z]{2}[0-9]{2}[A-Z0-9]{11,30}$`",
            "type": "string",
            "minLength": 15,
            "maxLength": 34,
            "example": "GB32CLRB04066800012315",
            "pattern": "^[A-Z]{2}[0-9]{2}[A-Z0-9]{11,30}$"
          }
        }
      },
      "AccountIdentifier": {
        "title": "Account Identifier",
        "oneOf": [
          {
            "$ref": "#/components/schemas/AccountIdentifierScan"
          },
          {
            "$ref": "#/components/schemas/AccountIdentifierIban"
          }
        ],
        "discriminator": {
          "propertyName": "type",
          "mapping": {
            "sort_code_account_number": "#/components/schemas/AccountIdentifierScan",
            "iban": "#/components/schemas/AccountIdentifierIban"
          }
        },
        "description": "A unique scheme identifier for an external account.\n"
      },
      "Account": {
        "title": "Account",
        "allOf": [
          {
            "$ref": "#/components/schemas/AccountCommon"
          },
          {
            "type": "object",
            "required": [
              "currency",
              "account_identifiers",
              "account_holder_names"
            ],
            "properties": {
              "type": {
                "type": "string",
                "const": "account"
              },
              "currency": {
                "$ref": "#/components/schemas/CurrencyCode"
              },
              "account_type": {
                "$ref": "#/components/schemas/AccountType",
                "description": "The type of the account."
              },
              "customer_segment": {
                "$ref": "#/components/schemas/CustomerSegment",
                "description": "The customer segment of the account."
              },
              "account_identifiers": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/AccountIdentifier"
                }
              },
              "bic": {
                "type": "string",
                "description": "The Business Identifier Code (BIC) of the account.\n",
                "example": "MONZGB2LXXX"
              },
              "account_holder_names": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "description": "The names of the account holders. May be empty if not provided by the bank.",
                "example": [
                  "John Smith"
                ]
              }
            }
          }
        ]
      },
      "Card": {
        "title": "Card",
        "allOf": [
          {
            "$ref": "#/components/schemas/AccountCommon"
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "const": "card",
                "description": "Identifies this item as a card. Additional card-specific fields (e.g. `card_network`, `card_type`, `partial_card_number`) will be added here when card support is introduced in a future release.\n"
              }
            }
          }
        ]
      },
      "NextCursor": {
        "type": "string",
        "title": "Next cursor",
        "description": "Cursor to be used as `cursor` query parameter to fetch the _next page_ in pagination-ready endpoints.",
        "example": "bWFuZGF0ZXM6MmUwNDk0MTMtN2I5Yi00OTFiLWE1OTgtNjkwMzU4NjNjNDJhCg=="
      },
      "Pagination": {
        "title": "Pagination",
        "type": "object",
        "properties": {
          "next_cursor": {
            "$ref": "#/components/schemas/NextCursor"
          }
        },
        "description": "Pagination object.\nOptional next cursor to use as query parameters to fetch the page next to the one fetched.\n",
        "example": {
          "next_cursor": "bWFuZGF0ZXM6MmUwNDk0MTMK"
        }
      },
      "GetConnectedAccounts": {
        "type": "object",
        "required": [
          "items",
          "pagination"
        ],
        "properties": {
          "items": {
            "type": "array",
            "description": "List of connected accounts and cards. Ordered by `type` ascending, then `id` ascending.\n",
            "items": {
              "oneOf": [
                {
                  "$ref": "#/components/schemas/Account"
                },
                {
                  "$ref": "#/components/schemas/Card"
                }
              ],
              "discriminator": {
                "propertyName": "type",
                "mapping": {
                  "account": "#/components/schemas/Account",
                  "card": "#/components/schemas/Card"
                }
              }
            },
            "maxItems": 50
          },
          "pagination": {
            "$ref": "#/components/schemas/Pagination"
          }
        },
        "example": {
          "items": [
            {
              "id": "56c7b029e0f8ec5a2334fb0ffc2fface",
              "type": "account",
              "account_type": "current",
              "customer_segment": "retail",
              "currency": "GBP",
              "account_identifiers": [
                {
                  "type": "sort_code_account_number",
                  "sort_code": "560029",
                  "account_number": "26207729"
                },
                {
                  "type": "iban",
                  "iban": "GB32CLRB04066800012315"
                }
              ],
              "bic": "MONZGB2LXXX",
              "account_holder_names": [
                "John Smith"
              ]
            }
          ],
          "pagination": {
            "next_cursor": "bWFuZGF0ZXM6MmUwNDk0MTMK"
          }
        }
      },
      "ProblemDetailsInvalidParameters": {
        "title": "Invalid Parameters",
        "type": "object",
        "required": [
          "type",
          "title",
          "status",
          "trace_id",
          "detail",
          "errors"
        ],
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "https://docs.truelayer.com/docs/error-types#invalid-parameters"
            ]
          },
          "title": {
            "type": "string",
            "enum": [
              "Invalid Parameters"
            ]
          },
          "status": {
            "type": "integer",
            "format": "int32",
            "enum": [
              400
            ]
          },
          "trace_id": {
            "type": "string",
            "description": "The TrueLayer trace identifier for the request",
            "example": "96ce50247f87f540bb2d86771b3728b8"
          },
          "detail": {
            "type": "string",
            "description": "A human-readable text with more information about why the error occurred.",
            "example": "The request was invalid."
          },
          "errors": {
            "type": "object",
            "description": "Each key is the name of an invalid request body field, query parameter, or header.\nEach value is a list of at least one description of what is wrong with it.\n",
            "additionalProperties": {
              "type": "array",
              "items": {
                "type": "string"
              },
              "minItems": 1
            },
            "example": {
              "Connection-Id": [
                "Must be a valid GUID."
              ]
            }
          }
        }
      },
      "ProblemDetailsInvalidState": {
        "title": "Invalid State",
        "type": "object",
        "required": [
          "type",
          "title",
          "status",
          "trace_id",
          "detail"
        ],
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "https://docs.truelayer.com/docs/error-types#invalid-state"
            ]
          },
          "title": {
            "type": "string",
            "enum": [
              "Invalid State"
            ]
          },
          "status": {
            "type": "integer",
            "format": "int32",
            "enum": [
              400
            ]
          },
          "trace_id": {
            "type": "string",
            "description": "The TrueLayer trace identifier for the request",
            "example": "96ce50247f87f540bb2d86771b3728b8"
          },
          "detail": {
            "type": "string",
            "description": "A human-readable text with more information about why the error occurred.",
            "example": "The data connection is not in an authorized state."
          }
        }
      },
      "ProblemDetailsUnauthenticated": {
        "title": "Unauthenticated",
        "type": "object",
        "required": [
          "type",
          "title",
          "status",
          "trace_id",
          "detail"
        ],
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "https://docs.truelayer.com/docs/error-types#unauthenticated"
            ]
          },
          "title": {
            "type": "string",
            "enum": [
              "Unauthenticated"
            ]
          },
          "status": {
            "type": "integer",
            "format": "int32",
            "enum": [
              401
            ]
          },
          "trace_id": {
            "type": "string",
            "description": "The TrueLayer trace identifier for the request",
            "example": "96ce50247f87f540bb2d86771b3728b8"
          },
          "detail": {
            "type": "string",
            "description": "A human-readable text with more information about why the error occurred.",
            "example": "A valid Bearer token must be provided in the Authorization header."
          }
        }
      },
      "ProblemDetailsForbidden": {
        "title": "Forbidden",
        "type": "object",
        "required": [
          "type",
          "title",
          "status",
          "trace_id",
          "detail"
        ],
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "https://docs.truelayer.com/docs/error-types#forbidden"
            ]
          },
          "title": {
            "type": "string",
            "enum": [
              "Forbidden"
            ]
          },
          "status": {
            "type": "integer",
            "format": "int32",
            "enum": [
              403
            ]
          },
          "trace_id": {
            "type": "string",
            "description": "The TrueLayer trace identifier for the request",
            "example": "96ce50247f87f540bb2d86771b3728b8"
          },
          "detail": {
            "type": "string",
            "description": "A human-readable text with more information about why the error occurred.",
            "example": "The token used for Authorization is not authorized to perform the request."
          }
        }
      },
      "ProblemDetailsNotFound": {
        "title": "Not Found",
        "type": "object",
        "required": [
          "type",
          "title",
          "status",
          "trace_id",
          "detail"
        ],
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "https://docs.truelayer.com/docs/error-types#not-found"
            ]
          },
          "title": {
            "type": "string",
            "enum": [
              "Not Found"
            ]
          },
          "status": {
            "type": "integer",
            "format": "int32",
            "enum": [
              404
            ]
          },
          "trace_id": {
            "type": "string",
            "description": "The TrueLayer trace identifier for the request",
            "example": "96ce50247f87f540bb2d86771b3728b8"
          },
          "detail": {
            "type": "string",
            "description": "A human-readable text with more information about why the error occurred.",
            "example": "The data connection was not found."
          }
        }
      },
      "ProblemDetailsRateLimitExceeded": {
        "title": "Rate Limit Exceeded",
        "type": "object",
        "required": [
          "type",
          "title",
          "status",
          "trace_id",
          "detail"
        ],
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "https://docs.truelayer.com/docs/error-types#rate-limit-exceeded"
            ]
          },
          "title": {
            "type": "string",
            "enum": [
              "Rate Limit Exceeded"
            ]
          },
          "status": {
            "type": "integer",
            "format": "int32",
            "enum": [
              429
            ]
          },
          "trace_id": {
            "type": "string",
            "description": "The TrueLayer trace identifier for the request",
            "example": "96ce50247f87f540bb2d86771b3728b8"
          },
          "detail": {
            "type": "string",
            "description": "A human-readable text with more information about why the error occurred.",
            "example": "Too many requests have been made. Retry later."
          }
        }
      },
      "ProblemDetailsUnknownError": {
        "title": "Unknown Error",
        "type": "object",
        "required": [
          "type",
          "title",
          "status",
          "trace_id",
          "detail"
        ],
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "https://docs.truelayer.com/docs/error-types#unknown-error"
            ]
          },
          "title": {
            "type": "string",
            "enum": [
              "Unknown Error"
            ]
          },
          "status": {
            "type": "integer",
            "format": "int32",
            "enum": [
              500
            ]
          },
          "trace_id": {
            "type": "string",
            "description": "The TrueLayer trace identifier for the request",
            "example": "96ce50247f87f540bb2d86771b3728b8"
          },
          "detail": {
            "type": "string",
            "description": "A human-readable text with more information about why the error occurred.",
            "example": "An unexpected error occurred. Retry later."
          }
        }
      },
      "ProblemDetailsProviderError": {
        "title": "Provider Error",
        "type": "object",
        "required": [
          "type",
          "title",
          "status",
          "trace_id",
          "detail"
        ],
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "https://docs.truelayer.com/docs/error-types#provider-error"
            ]
          },
          "title": {
            "type": "string",
            "enum": [
              "Provider Error"
            ]
          },
          "status": {
            "type": "integer",
            "format": "int32",
            "enum": [
              502
            ]
          },
          "trace_id": {
            "type": "string",
            "description": "The TrueLayer trace identifier for the request",
            "example": "96ce50247f87f540bb2d86771b3728b8"
          },
          "detail": {
            "type": "string",
            "description": "A human-readable text with more information about why the error occurred.",
            "example": "The provider is currently unavailable. Retry later."
          }
        }
      },
      "ProblemDetailsFeatureNotSupported": {
        "title": "Feature Not Supported",
        "type": "object",
        "required": [
          "type",
          "title",
          "status",
          "trace_id",
          "detail"
        ],
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "https://docs.truelayer.com/docs/error-types#feature-not-supported"
            ]
          },
          "title": {
            "type": "string",
            "enum": [
              "Feature Not Supported"
            ]
          },
          "status": {
            "type": "integer",
            "format": "int32",
            "enum": [
              502
            ]
          },
          "trace_id": {
            "type": "string",
            "description": "The TrueLayer trace identifier for the request",
            "example": "96ce50247f87f540bb2d86771b3728b8"
          },
          "detail": {
            "type": "string",
            "description": "A human-readable text with more information about why the error occurred.",
            "example": "This feature is not supported by the provider."
          }
        }
      },
      "TransactionsRequestFailureReason": {
        "type": "string",
        "description": "The reason the transactions request failed.\nThis list is non-exhaustive — integrators should handle unknown values gracefully.\n\nExamples:\n- `provider_error`\n",
        "example": "provider_error"
      },
      "Metadata": {
        "type": "object",
        "description": "Optional field for adding custom key-value data to a resource. This object can contain a maximum of 10 key-value pairs, each with a key with a maximum length of 40 characters and a non-null value with a maximum length of 500 characters.",
        "maxProperties": 10,
        "additionalProperties": {
          "type": "string",
          "maxLength": 500
        },
        "example": {
          "prop1": "value1",
          "prop2": "value2"
        }
      },
      "ConnectionId": {
        "type": "string",
        "description": "Unique ID for the connection",
        "example": "0a6273a0-0314-4db6-800a-e66225fbe9f7"
      },
      "WebhookCommon": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string"
          },
          "event_version": {
            "description": "The version of the event schema.\n",
            "type": "integer"
          },
          "event_id": {
            "description": "Unique ID of the event.\n",
            "type": "string",
            "example": "b8d4dda0-ff2c-4d77-a6da-4615e4bad941"
          }
        },
        "required": [
          "type",
          "event_version",
          "event_id"
        ]
      },
      "AuthorizedAt": {
        "type": "string",
        "description": "The date and time the connection was authorized.",
        "format": "datetime",
        "example": "2025-01-01T09:01:00.000Z"
      },
      "ConnectionAuthorized": {
        "title": "Authorized",
        "allOf": [
          {
            "$ref": "#/components/schemas/WebhookCommon"
          },
          {
            "type": "object",
            "required": [
              "type",
              "event_version",
              "connection_id",
              "authorized_at"
            ],
            "properties": {
              "type": {
                "enum": [
                  "connection_authorized"
                ]
              },
              "event_version": {
                "enum": [
                  1
                ]
              },
              "connection_id": {
                "$ref": "#/components/schemas/ConnectionId"
              },
              "metadata": {
                "$ref": "#/components/schemas/Metadata"
              },
              "authorized_at": {
                "$ref": "#/components/schemas/AuthorizedAt"
              }
            }
          }
        ]
      },
      "FailedAt": {
        "type": "string",
        "description": "The date and time the connection failed.",
        "format": "datetime",
        "example": "2025-01-01T09:01:00.000Z"
      },
      "ConnectionFailureStage": {
        "type": "string",
        "enum": [
          "authorization_required",
          "authorizing"
        ],
        "description": "The status the connection was in when it failed.\n",
        "example": "authorizing"
      },
      "ConnectionFailureReason": {
        "type": "string",
        "description": "The reason that the connection failed.\n",
        "example": "provider_rejected"
      },
      "ConnectionFailed": {
        "title": "Failed",
        "allOf": [
          {
            "$ref": "#/components/schemas/WebhookCommon"
          },
          {
            "type": "object",
            "required": [
              "type",
              "event_version",
              "connection_id",
              "failed_at",
              "failure_stage",
              "failure_reason"
            ],
            "properties": {
              "type": {
                "enum": [
                  "connection_failed"
                ]
              },
              "event_version": {
                "enum": [
                  1
                ]
              },
              "connection_id": {
                "$ref": "#/components/schemas/ConnectionId"
              },
              "metadata": {
                "$ref": "#/components/schemas/Metadata"
              },
              "failed_at": {
                "$ref": "#/components/schemas/FailedAt"
              },
              "failure_stage": {
                "$ref": "#/components/schemas/ConnectionFailureStage"
              },
              "failure_reason": {
                "$ref": "#/components/schemas/ConnectionFailureReason"
              }
            }
          }
        ]
      },
      "AccountId": {
        "type": "string",
        "description": "Unique ID for the connected account.",
        "example": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
      },
      "RequestId": {
        "type": "string",
        "format": "uuid",
        "description": "Unique ID of the async request.",
        "example": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
      },
      "TransactionsRequestCompletedAt": {
        "type": "string",
        "description": "The date and time the transactions request completed.",
        "format": "date-time",
        "example": "2025-01-01T09:01:00.000Z"
      },
      "TransactionsRequestWebhookCompleted": {
        "title": "Transactions request webhook (completed)",
        "allOf": [
          {
            "$ref": "#/components/schemas/WebhookCommon"
          },
          {
            "type": "object",
            "required": [
              "type",
              "event_version",
              "connection_id",
              "account_id",
              "request_id",
              "completed_at"
            ],
            "properties": {
              "type": {
                "enum": [
                  "transactions_request_completed"
                ]
              },
              "event_version": {
                "enum": [
                  1
                ]
              },
              "connection_id": {
                "$ref": "#/components/schemas/ConnectionId"
              },
              "account_id": {
                "$ref": "#/components/schemas/AccountId"
              },
              "request_id": {
                "$ref": "#/components/schemas/RequestId"
              },
              "completed_at": {
                "$ref": "#/components/schemas/TransactionsRequestCompletedAt"
              }
            }
          }
        ]
      },
      "TransactionsRequestFailedAt": {
        "type": "string",
        "description": "The date and time the transactions request failed.",
        "format": "date-time",
        "example": "2025-01-01T09:01:00.000Z"
      },
      "TransactionsRequestWebhookFailed": {
        "title": "Transactions request webhook (failed)",
        "allOf": [
          {
            "$ref": "#/components/schemas/WebhookCommon"
          },
          {
            "type": "object",
            "required": [
              "type",
              "event_version",
              "connection_id",
              "account_id",
              "request_id",
              "failure_reason",
              "failed_at"
            ],
            "properties": {
              "type": {
                "enum": [
                  "transactions_request_failed"
                ]
              },
              "event_version": {
                "enum": [
                  1
                ]
              },
              "connection_id": {
                "$ref": "#/components/schemas/ConnectionId"
              },
              "account_id": {
                "$ref": "#/components/schemas/AccountId"
              },
              "request_id": {
                "$ref": "#/components/schemas/RequestId"
              },
              "failure_reason": {
                "$ref": "#/components/schemas/TransactionsRequestFailureReason"
              },
              "failed_at": {
                "$ref": "#/components/schemas/TransactionsRequestFailedAt"
              }
            }
          }
        ]
      }
    },
    "headers": {
      "Tl-Trace-Id": {
        "schema": {
          "type": "string"
        },
        "description": "Unique ID per request.\nWe recommend logging this to share with us when investigating any issues.\n"
      }
    }
  },
  "x-readme": {
    "explorer-enabled": false
  }
}
```