Get Account
getAccountFull Description
Get account by ID
Parameters (1 required)
accountIdstringID for a Mercury account.
Check your balance, download statements, search/analyze/graph transactions, and understand Cards directly from Claude. Mercury brings your finances into your AI tools
getAccountGet account by ID
accountIdstringID for a Mercury account.
getAccountCardsRetrieve all debit and credit cards associated with a specific account.
accountIdstringID for a Mercury account.
getAccountsRetrieve a paginated list of accounts. Supports cursor-based pagination with limit, order, start_after, and end_before query parameters.
end_beforestringThe ID of the account to end the page before (exclusive). When provided, results will end just before this ID and work backwards. Use this for reverse pagination or to retrieve previous pages. Cannot be combined with start_after.
limitintegerMaximum number of results to return. Allowed range: 1 to 1000. Defaults to 1000
1000orderstringSort order. Can be 'asc' or 'desc'. Defaults to 'asc'
ascdescascstart_afterstringThe ID of the account to start the page after (exclusive). When provided, results will begin with the account immediately following this ID. Use this for standard forward pagination to get the next page of results. Cannot be combined with end_before.
getAccountStatementsRetrieve a paginated list of monthly statements for a specific account. Supports cursor-based pagination with limit, order, start_after, and end_before query parameters, as well as date range filtering with start and end parameters.
accountIdstringID for a Mercury account.
endstringFilter statements where the period start date is on or before this date. If the date is in the future, defaults to the current date. Format: YYYY-MM-DD
end_beforestringThe ID of the statement to end the page before (exclusive). When provided, results will end just before this ID and work backwards. Use this for reverse pagination or to retrieve previous pages. Cannot be combined with start_after.
limitintegerMaximum number of results to return. Allowed range: 1 to 1000. Defaults to 1000
1000orderstringSort order. Can be 'asc' or 'desc'. Defaults to 'desc'
ascdescdescstartstringFilter statements where the period start date is on or after this date. Format: YYYY-MM-DD
start_afterstringThe ID of the statement to start the page after (exclusive). When provided, results will begin with the statement immediately following this ID. Use this for standard forward pagination to get the next page of results. Cannot be combined with end_before.
getAttachmentRetrieve attachment details including download URL
attachmentIdstringID for the attachment.
getCardRetrieve details of a specific card by its ID.
cardIdstringUnique identifier for a card
getCurrentDateGet the current date in the format. Example: Fri Oct 31 2025
getCustomerRetrieve details of a specific customer by their ID
customerIdstringThe customer who will receive the invoice. Use the /api/v1/ar/customers endpoint to list your customers and find the corresponding id, or create a new customer first.
getInvoiceRetrieve details of an invoice by its ID
invoiceIdstringID for the invoice.
getOrganizationRetrieve information about your organization including EIN, legal business name, and DBAs.
getRecipientRetrieve details of a specific recipient by ID
recipientIdstringID for a Mercury account.
getRecipientInviteRetrieve details of a specific recipient invite by ID.
inviteIdstringID for the invite
getRecipientsRetrieve a paginated list of all recipients. Use cursor parameters (start_after, end_before) for pagination.
end_beforestringThe ID of the recipient to end the page before (exclusive). When provided, results will end just before this ID and work backwards. Use this for reverse pagination or to retrieve previous pages. Cannot be combined with start_after.
limitintegerMaximum number of results to return. Allowed range: 1 to 1000. Defaults to 1000
1000orderstringSort order. Can be 'asc' or 'desc'. Defaults to 'asc'
ascdescascstart_afterstringThe ID of the recipient to start the page after (exclusive). When provided, results will begin with the recipient immediately following this ID. Use this for standard forward pagination to get the next page of results. Cannot be combined with end_before.
getSafeRequestRetrieve a specific SAFE request by its ID.
safeRequestIdstringID for the SAFE request
getSafeRequestsRetrieve all SAFE (Simple Agreement for Future Equity) requests for your organization.
getTransactionGet transaction by ID
accountIdstringID for a Mercury account.
transactionIdstringID for this transaction
getTransactionByIdRetrieve a single transaction by its ID. Returns full transaction details including attachments, check images, and related metadata.
transactionIdstringID for this transaction
getTransferMoneyApprovalRequestRetrieve a specific transfer approval request by ID.
requestIdstringID for the transfer money approval request
getTreasuryRetrieve a paginated list of all treasury accounts associated with the authenticated organization. Use cursor parameters (start_after, end_before) for pagination.
end_beforestringThe ID of the account to end the page before (exclusive). When provided, results will end just before this ID and work backwards. Use this for reverse pagination or to retrieve previous pages. Cannot be combined with start_after.
limitintegerMaximum number of results to return. Allowed range: 1 to 1000. Defaults to 1000
1000orderstringSort order. Can be 'asc' or 'desc'. Defaults to 'asc'
ascdescascstart_afterstringThe ID of the account to start the page after (exclusive). When provided, results will begin with the account immediately following this ID. Use this for standard forward pagination to get the next page of results. Cannot be combined with end_before.
getTreasuryTransactionsRetrieve paginated treasury transactions for a specific treasury account.
treasuryIdstringID for a Mercury account.
cursornumberPagination cursor for retrieving next batch of transactions. Must be an integer >= 0
limitintegerMaximum number of results to return. Defaults to 100
100orderstringSort order for transactions. Can be 'asc' or 'desc'. Defaults to 'desc'
ascdescdescgetUserGet user by ID
userIdstringID for the user
getUsersGet all users
end_beforestringThe ID of the user to end the page before (exclusive). When provided, results will end just before this ID and work backwards. Use this for reverse pagination or to retrieve previous pages. Cannot be combined with start_after.
limitintegerMaximum number of results to return. Allowed range: 1 to 1000. Defaults to 1000
1000orderstringSort order. Can be 'asc' or 'desc'. Defaults to 'asc'
ascdescascstart_afterstringThe ID of the user to start the page after (exclusive). When provided, results will begin with the user immediately following this ID. Use this for standard forward pagination to get the next page of results. Cannot be combined with end_before.
getWebhookRetrieve details of a specific webhook endpoint by ID
webhookEndpointIdstringID for the webhook
getWebhooksRetrieve a paginated list of all webhook endpoints for your organization. Supports filtering by status.
end_beforestringThe ID of the webhook to end the page before (exclusive). When provided, results will end just before this ID and work backwards. Use this for reverse pagination or to retrieve previous pages. Cannot be combined with start_after.
limitintegerMaximum number of results to return. Allowed range: 1 to 1000. Defaults to 1000
1000orderstringSort order. Can be 'asc' or 'desc'. Defaults to 'asc'
ascdescascstart_afterstringThe ID of the webhook to start the page after (exclusive). When provided, results will begin with the webhook immediately following this ID. Use this for standard forward pagination to get the next page of results. Cannot be combined with end_before.
statusarraylistCardsRetrieve a paginated list of cards.
accountIdarrayFilter cards by one or more account IDs.
end_beforestringThe ID of the card to end the page before (exclusive). When provided, results will end just before this ID and work backwards. Use this for reverse pagination or to retrieve previous pages. Cannot be combined with start_after.
isAgentCardbooleanFilter cards by whether they are for Agent use.
kindarrayFilter cards by kind (debit or credit).
limitintegerMaximum number of results to return. Allowed range: 1 to 1000. Defaults to 500
500orderstringSort order. Can be 'asc' or 'desc'. Defaults to 'asc'
ascdescascstart_afterstringThe ID of the card to start the page after (exclusive). When provided, results will begin with the card immediately following this ID. Use this for standard forward pagination to get the next page of results. Cannot be combined with end_before.
statusarrayFilter cards by one or more statuses.
typearrayFilter cards by type (virtual or physical).
userIdstringFilter cards by the cardholder's user ID.
listCategoriesRetrieve a paginated list of all available custom expense categories for the organization. Supports cursor-based pagination with limit, order, start_after, and end_before query parameters.
end_beforestringThe ID of the category to end the page before (exclusive). When provided, results will end just before this ID and work backwards. Use this for reverse pagination or to retrieve previous pages. Cannot be combined with start_after.
limitintegerMaximum number of results to return. Allowed range: 1 to 1000. Defaults to 1000
1000orderstringSort order. Can be 'asc' or 'desc'. Defaults to 'asc'
ascdescascstart_afterstringThe ID of the category to start the page after (exclusive). When provided, results will begin with the category immediately following this ID. Use this for standard forward pagination to get the next page of results. Cannot be combined with end_before.
listCreditRetrieve a list of all credit accounts for the organization.
listCustomersRetrieve a paginated list of customers. Supports cursor-based pagination with limit, order, start_after, and end_before query parameters.
end_beforestringThe ID of the customer to end the page before (exclusive). When provided, results will end just before this ID and work backwards. Use this for reverse pagination or to retrieve previous pages. Cannot be combined with start_after.
limitintegerMaximum number of results to return. Allowed range: 1 to 1000. Defaults to 1000
1000orderstringSort order. Can be 'asc' or 'desc'. Defaults to 'asc'
ascdescascstart_afterstringThe ID of the customer to start the page after (exclusive). When provided, results will begin with the customer immediately following this ID. Use this for standard forward pagination to get the next page of results. Cannot be combined with end_before.
listInvoiceAttachmentsRetrieve a list of all attachments for a specific invoice
invoiceIdstringID for the invoice.
listInvoicesRetrieve a paginated list of invoices. Supports cursor-based pagination with limit, order, start_after, and end_before query parameters.
end_beforestringThe ID of the invoice to end the page before (exclusive). When provided, results will end just before this ID and work backwards. Use this for reverse pagination or to retrieve previous pages. Cannot be combined with start_after.
limitintegerMaximum number of results to return. Allowed range: 1 to 1000. Defaults to 1000
1000orderstringSort order. Can be 'asc' or 'desc'. Defaults to 'asc'
ascdescascstart_afterstringThe ID of the invoice to start the page after (exclusive). When provided, results will begin with the invoice immediately following this ID. Use this for standard forward pagination to get the next page of results. Cannot be combined with end_before.
listMerchantsRetrieve a paginated list of priority merchants that can be used for spend controls like merchant locking. Supports cursor-based pagination with limit, order, start_after, and end_before query parameters, plus an optional case-insensitive search by merchant name.
end_beforestringThe ID of the merchant to end the page before (exclusive). When provided, results will end just before this ID and work backwards. Use this for reverse pagination or to retrieve previous pages. Cannot be combined with start_after.
limitintegerMaximum number of results to return. Allowed range: 1 to 1000. Defaults to 1000
1000orderstringSort order. Can be 'asc' or 'desc'. Defaults to 'asc'
ascdescascsearchstringCase-insensitive search term to filter merchants by name.
start_afterstringThe ID of the merchant to start the page after (exclusive). When provided, results will begin with the merchant immediately following this ID. Use this for standard forward pagination to get the next page of results. Cannot be combined with end_before.
listRecipientInvitesRetrieve a paginated list of all recipient invites for your organization. Supports filtering by status.
end_beforestringThe ID of the recipient invite to end the page before (exclusive). When provided, results will end just before this ID and work backwards. Use this for reverse pagination or to retrieve previous pages. Cannot be combined with start_after.
limitintegerMaximum number of results to return. Allowed range: 1 to 1000. Defaults to 1000
1000orderstringSort order. Can be 'asc' or 'desc'. Defaults to 'asc'
ascdescascstart_afterstringThe ID of the recipient invite to start the page after (exclusive). When provided, results will begin with the recipient invite immediately following this ID. Use this for standard forward pagination to get the next page of results. Cannot be combined with end_before.
statusstringcreatedcompletedexpiredlistRecipientsAttachmentsRetrieve a paginated list of all recipient tax form attachments across all recipients in the organization. Use cursor parameters (start_after, end_before) for pagination.
end_beforestringThe ID of the recipient attachment to end the page before (exclusive). When provided, results will end just before this ID and work backwards. Use this for reverse pagination or to retrieve previous pages. Cannot be combined with start_after.
limitintegerMaximum number of results to return. Allowed range: 1 to 1000. Defaults to 1000
1000orderstringSort order. Can be 'asc' or 'desc'. Defaults to 'asc'
ascdescascstart_afterstringThe ID of the recipient attachment to start the page after (exclusive). When provided, results will begin with the recipient attachment immediately following this ID. Use this for standard forward pagination to get the next page of results. Cannot be combined with end_before.
listSendMoneyApprovalRequestsRetrieve a paginated list of send money approval requests for the authenticated organization. Supports filtering by account and status.
accountIdstringID for a Mercury account.
end_beforestringThe ID of the send money approval request to end the page before (exclusive). When provided, results will end just before this ID and work backwards. Use this for reverse pagination or to retrieve previous pages. Cannot be combined with start_after.
limitintegerMaximum number of results to return. Allowed range: 1 to 1000. Defaults to 1000
1000start_afterstringThe ID of the send money approval request to start the page after (exclusive). When provided, results will begin with the send money approval request immediately following this ID. Use this for standard forward pagination to get the next page of results. Cannot be combined with end_before.
statusstringpendingApprovalapprovedrejectedcancelledlistTransactionsRetrieve a paginated list of all transactions across all accounts. Supports advanced filtering by date ranges, status, categories, and cursor-based pagination.
CRITICAL TRUNCATION RULE
================================================================================ IF YOU SEE "Result too long" IN THE RESPONSE: 1. IMMEDIATELY STOP
2. The data is INCOMPLETE and any analysis will be WRONG 3. Start over with a smaller limit (reduce by 50%) 4. Paginate through ALL pages until you have complete data 5. NEVER provide answers based on truncated results ================================================================================
DATE FILTERING: ================================================================================ ALWAYS use postedStart / postedEnd for date-range queries. Do NOT use start / end.
The dates shown in results are postedAt (when the transaction settled). createdAt is not included in results. Card charges create at authorization and post one or more days later, so filtering on createdAt (which is what start / end do) frequently misses transactions the user is asking about.
Examples: • "What did I spend last month?" → postedStart / postedEnd • "Show me August transactions" → postedStart / postedEnd • "Total spend this quarter" → postedStart / postedEnd ================================================================================
MANDATORY PAGINATION FOR COMPLETE RESULTS: When a user asks ANY question requiring complete data (totals, balances, aggregates, "most/least", "all transactions", comparisons, or any calculation across transactions):
CRITICAL: Incomplete pagination will produce WRONG ANSWERS for questions about totals, spending categories, balances, minimums, maximums, or "most/least". You must fetch everything before calculating or answering.
1. Start with a limit of 300 transactions. 2. You MUST automatically paginate through ALL pages WITHOUT asking the user 3. Continue calling listTransactions using the page.nextPage value from each response 4. Keep fetching until page.nextPage is not present 5. If pagination would take more than 3 tool calls, ask the user to narrow down to a smaller time period 6. It is a CRITICAL ERROR to answer before having fetched ALL pages
FILTERING:
PAGINATION MECHANICS:
COMPUTATIONAL REQUIREMENTS:
For queries about 'last two months' or 'this year', calculate dates based on the actual current date Use the getCurrentDate tool to get the current date.
Use the getTransaction tool to get more details about a specific transaction.
accountIdarraycardIdarraycategoryIdstringUUID of a custom category. Can be returned from /categories endpoint.
endstringLatest createdAt date to filter for. If it’s not provided, it defaults to current day. Format: YYYY-MM-DD or an ISO 8601 string. Please note that your Mercury transactions on your Dashboard might have their postedAt date displayed, as opposed to createdAt
end_beforestringThe ID of the transaction to end the page before (exclusive). When provided, results will end just before this ID and work backwards. Use this for reverse pagination or to retrieve previous pages. Cannot be combined with start_after.
limitintegerMaximum number of results to return. Allowed range: 1 to 1000. Defaults to 1000
1000mercuryCategorystringName of mercuryCategory you want to filter on. Merchant Type in the UI.
orderstringSort order. Can be 'asc' or 'desc'. Defaults to 'asc'
ascdescascpostedEndstringLatest postedAt date to filter for. Format: YYYY-MM-DD or an ISO 8601 string
postedStartstringEarliest postedAt date to filter for. Format: YYYY-MM-DD or an ISO 8601 string
searchstringSearch term to look for in transaction descriptions.
startstringEarliest createdAt date to filter for. If not provided, it defaults to the date of your first transaction. Format: YYYY-MM-DD or an ISO 8601 string. Please note that your Mercury transactions on your Dashboard might have their postedAt date displayed, as opposed to createdAt
start_afterstringThe ID of the transaction to start the page after (exclusive). When provided, results will begin with the transaction immediately following this ID. Use this for standard forward pagination to get the next page of results. Cannot be combined with end_before.
start_atstringThe ID of the resource to start the page at (inclusive). When provided, results will begin with and include the resource with this ID. Use this to retrieve a specific page when you know the exact starting point. Cannot be combined with start_after or end_before.
statusarraylistTransferMoneyApprovalRequestsRetrieve a paginated list of transfer approval requests for the authenticated organization. Supports filtering by source account, destination account, and status.
destinationAccountIdstringID for a Mercury account.
end_beforestringThe ID of the transfer approval request to end the page before (exclusive). When provided, results will end just before this ID and work backwards. Use this for reverse pagination or to retrieve previous pages. Cannot be combined with start_after.
limitintegerMaximum number of results to return. Allowed range: 1 to 1000. Defaults to 1000
1000orderstringSort order. Can be 'asc' or 'desc'. Defaults to 'asc'
ascdescascsourceAccountIdstringID for a Mercury account.
start_afterstringThe ID of the transfer approval request to start the page after (exclusive). When provided, results will begin with the transfer approval request immediately following this ID. Use this for standard forward pagination to get the next page of results. Cannot be combined with end_before.
start_atstringThe ID of the transfer approval request to start the page at (inclusive). Cannot be combined with start_after or end_before.
statusstringpendingApprovalapprovedrejectedcancelled