Looking for the previous documentation?Go to v1.docs.pluggy.ai

Basic Concepts

Base URL, transport, request and response conventions, and how paginated endpoints are read.

View as Markdown

Base URL#

One environment. Test against the Sandbox connectors rather than a separate host.

Transport#

HTTPS with TLS 1.2 or later. Connections negotiating an older TLS version are rejected.

Requests#

REST over JSON. Send Content-Type: application/json on every request with a body, and the credential in X-API-KEY — see AuthenticationAPI. Verbs mean what they say: GET reads, POST creates, PATCH updates, DELETE removes.

Responses#

JSON. The API evolves without versions by adding fields to responses; nothing is removed or renamed. Your client has to accept and ignore fields it does not know — most HTTP libraries do by default, a strict deserializer may not.

Errors share one shape, whatever the endpoint:

code repeats the HTTP status; codeDescription, when present, is the stable identifier to branch on; message is for people. Some errors add a data object. The status codes are listed in Error CodesAPI.

Pagination#

Two models are in use. The v2 endpoints paginate with a cursor; every other list endpoint still paginates by page number.

Cursors are how this API paginates from here on, and page-number pagination is being phased out. Where a v2 cursor endpoint exists, write your integration against it.

Cursor (v2 endpoints)#

Ask for the first page with your filters. The response carries the records and next: a ready-made query string for the following page.

FieldMeaning
resultsThe records of this page.
nextThe query string of the next page, or null on the last one.

To continue, append next to the endpoint path exactly as received — it already carries your filters and the after cursor:

Never build or decode after yourself: the value is opaque and only valid as returned. A null next means there is nothing more to read. Cursor pagination is available on GET /v2/transactionsAPI, GET /v2/investmentsAPI, GET /v2/investments/{id}/transactionsAPI and GET /v2/itemsAPI — the last one is opt-in per team; ask support to enable it.

Investments#

GET /v2/investments takes an itemId and returns that item's investments, newest first:

GET /v2/investments/{id}/transactions works the same way and filters on dateFrom, dateTo, createdAtFrom and ids. Note that ids narrows the date range instead of replacing it — the result is the listed transactions that also match the dates, exactly as on GET /v2/transactions — and that the v1 of this endpoint names the first two filters from and to. Whatever you send is already in next.

The v2 investment endpoints never embed transactions

GET /investments returns each investment's transactions inline for applications created before 2023-03-21. The v2 endpoints never do, whatever the application's age: read them from GET /v2/investments/{id}/transactionsAPI.

Page number (other list endpoints)#

The v1 GET /investments and GET /investments/{id}/transactions, credit card bills (GET /bills), payment customers, recipients and requests, and Smart Transfer pre-authorizations paginate by page:

GET /investments returns investments newest first

Its pages are stable, so walking them with page and pageSize will not repeat or skip an investment.

FieldMeaning
totalRecords matching the request, across all pages.
totalPagesPages needed to read them all.
pageThe page in this response.
resultsThe records of this page.

Two query parameters drive it: page (default 1) and pageSize (default 500 where the endpoint accepts it — check the endpoint). To read everything, request page=1, then page=2 … up to totalPages.

page must be an integer between 1 and 1,000,000, and pageSize an integer between 1 and 500. Do not rely on a larger pageSize being reduced to 500: most list endpoints, including GET /items, GET /consents, investments, credit card bills, payments and Smart Transfers, reject it. A value outside these ranges, or a non-numeric or empty one (page=0, page=abc, pageSize=501, pageSize=), returns 400 with codeDescription INVALID_PARAMETERS:

Every list endpoint outside v2 paginates this way today, and these are expected to gain cursor equivalents. Keep the paging logic in one place in your integration: moving an endpoint across is then a change in one function rather than at every call site.

GET /transactions is deprecated

The page-based GET /transactionsAPI is deprecated and available only until 2026-12-31, as announced in the changelog since June 2026. Move to GET /v2/transactionsAPI, which paginates by cursor as above.

Applications created on or after 2026-06-02 00:00 Brasília time (03:00 UTC) already get 410 Gone with codeDescription ENDPOINT_DEPRECATED from GET /transactions, and must use /v2 from the start.

Moving from GET /transactions to GET /v2/transactions#

GET /transactionsGET /v2/transactions
accountIdaccountId (same)
idsids, comma-separated, up to 500 (same)
from / todateFrom / dateTo
createdAtFromcreatedAtFrom (same; cannot be combined with dateFrom)
page / pageSizeafter: follow the next value of each response until it is null. Pages hold up to 500 transactions.
billId, type, operationTypeNot available as filters. Every transaction still carries these fields (billId inside creditCardMetadata), so filter on your side.
transactions/created webhook: createdTransactionsLinkApplications created before 2026-06-02 00:00 Brasília time (03:00 UTC): use createdTransactionsLinkV2 from the same payload.

Moving from GET /investments to GET /v2/investments#

GET /investmentsGET /v2/investments
itemIditemId (same, still required)
typetype (same)
page / pageSizeafter: follow the next value of each response until it is null. Pages hold up to 500 investments.
total, totalPages and page in the responseNot returned. Keep reading until next is null.
transactions inline on each investmentNot returned. Read them from GET /v2/investments/{id}/transactionsAPI.

Moving from GET /investments/{id}/transactions to GET /v2/investments/{id}/transactions#

GET /investments/{id}/transactionsGET /v2/investments/{id}/transactions
idsids, comma-separated, up to 500. It now narrows dateFrom / dateTo instead of replacing them.
from / todateFrom / dateTo
createdAtFromcreatedAtFrom (same)
investmentIdNot accepted. The id travels in the path only.
page / pageSizeafter: follow the next value of each response until it is null. Pages hold up to 500 transactions.

A query parameter the v2 does not accept returns 400 with codeDescription INVALID_PARAMETERS. That is deliberate: a request still carrying from, to or investmentId fails loudly instead of quietly dropping your date range.

Read the guide: Basic concepts.

Was this page helpful?