For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
HomeGuidesAPI Reference
HomeGuidesAPI Reference
  • Online API
    • API Environments
    • Direct Payment Flow
    • REST
    • HTTPS
    • Request Headers
      • User-Agent Header
    • Dates
    • Pagination
    • Authentication
    • Idempotent Requests
    • Timeouts
    • API Simulator
    • JavaScript afterpay.js
    • Errors
LogoLogo
On this page
  • HTTP Headers
Online API

Request Headers

Was this page helpful?
Previous

User-Agent Header

Next
Built with

Clients must send appropriate headers with all requests.

HTTP Headers

Field NameRequirementDescription
AuthorizationrequiredSee Authentication.
Content-TyperequiredAll POST and PUT requests must declare the content-type as application/json.
User-AgentrequiredSee User-Agent Header.
AcceptrecommendedAll requests must accept application/json or */*.