The API authorizes requests using Bearer Authentication. When you onboard with Swift, we provide you with a Sandbox and Production API key. These are used to authorize requests to the sandbox and production environments, respectively.

Production API requests should be made over HTTPS to https://api.useswift.dev. Sandbox API requests should be made over HTTPS to https://sandbox.useswift.dev.

Example

curl --url "${SWIFT_API_URL}" \
  -H "Authorization: Bearer ${SWIFT_API_KEY}"