# Versapay Authentication API

**Canonical:** https://apis.io/apis/versapay/versapay-authentication-api/  
**Provider:** Versapay — https://apis.io/providers/versapay/  
**Base URL:** https://secure.versapay.com  
**Documentation:** https://developers.versapay.com/

Versapay Authentication API is one of 22 APIs that [Versapay](https://apis.io/providers/versapay/) publishes on the [APIs.io](https://apis.io/) network, described by a machine-readable OpenAPI specification. Tagged areas include Authentication. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, and an API reference.

Visit your account settings in `UAT` (https://uat.versapay.com/account) or `Production` (https://secure.versapay.com/account) to setup API credentials needed for authentication as well as webhooks to receive relevant callbacks from Versapay transaction processing. You can generate/disable your API credentials as often as necessary for security reasons. If you do not have an account, please contact Versapay Support for support & setup of AR invoicing integration, hosted checkout and/or payment acceptance for partner and/or API credential setup. ## API Token and API Key API requests are authenticated using `API Token & Key` via [HTTPS Basic Access Authentication](https://en.wikipedia.org/wiki/Basic_access_authentication). <table class="security-details"><tbody><tr><th> Security Scheme Type </th><td> <!-- -->HTTPS<!-- --> </td></tr><tr><th> HTTPS Authorization Scheme </th><td> <!-- -->basic<!-- --> </td></tr></tbody></table> Simply provide the `API Token & Key` values as the `user` and `password` parameters, using cURL for instance: `curl -u "Nvax...:UN0I..." -X POST https://secure.versapay.com/api/...` ## JWT Token Alternatively, API requests can also be authenticated using `JWT Token` via [HTTPS Bearer Authentication](https://en.wikipedia.org/wiki/JSON_Web_Token). <table class="security-details"><tbody><tr><th> Security Scheme Type </th><td> <!-- -->HTTPS<!-- --> </td></tr><tr><th> HTTP Authorization Scheme </th><td> <!-- -->bearer JWT<!-- --> </td></tr></tbody></table> `JWT Tokens`, automatically generated alongside `API Token & Key`, are displayed along with expiration in account settings as well as via authenticated `/api/whoami`, see `Authentication` _Echo identity and account profile settings_ Simply provide the `JWT Token` in the authorization header, using cURL for instance: `curl -H "Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ0b2tlbiI6Im54eDFaSjgzeXRNNmhtb3NGVExCIiwiZXhwIjoxNzEyOTU5NDA5fQ.adV6U1vW69Ypskt61uPL8hZ-4muvtM4FLM48QN6iCc4" -X POST https://secure.versapay.com/api/...`

## Operations (1)

| Method | Path | Summary |
|---|---|---|
| GET | `/api/whoami` | Echo identity and account profile settings |

## Machine-readable artifacts (6)

- **OpenAPI** — https://raw.githubusercontent.com/api-evangelist/versapay/refs/heads/main/openapi/versapay-authentication-api-openapi.yml
- **Documentation** — https://developers.versapay.com/
- **APIReference** — https://developers.versapay.com/
- **ToolCrosswalk** — https://raw.githubusercontent.com/api-evangelist/versapay/refs/heads/main/mcp/versapay-tool-crosswalk.yml
- **Documentation** — https://developers.versapay.com/ecommerce/
- **APIReference** — https://developers.versapay.com/ecommerce/

## Other Versapay APIs (12)

- [Versapay Agreements API](https://apis.io/apis/versapay/versapay-agreements-api/)
- [Versapay Autopay API](https://apis.io/apis/versapay/versapay-autopay-api/)
- [Versapay Card Present EMV API](https://apis.io/apis/versapay/versapay-card-present-emv-api/)
- [Versapay Collaboration API](https://apis.io/apis/versapay/versapay-collaboration-api/)
- [Versapay Customers API](https://apis.io/apis/versapay/versapay-customers-api/)
- [Versapay Developers API](https://apis.io/apis/versapay/versapay-developers-api/)
- [Versapay Divisions API](https://apis.io/apis/versapay/versapay-divisions-api/)
- [Versapay File Imports API](https://apis.io/apis/versapay/versapay-file-imports-api/)
- [Versapay Fund Sources API](https://apis.io/apis/versapay/versapay-fund-sources-api/)
- [Versapay Gift Cards API](https://apis.io/apis/versapay/versapay-gift-cards-api/)
- [Versapay Internal API](https://apis.io/apis/versapay/versapay-internal-api/)
- [Versapay Invoices API](https://apis.io/apis/versapay/versapay-invoices-api/)

## Tags

Authentication

---

Profiled by [API Evangelist](https://apievangelist.com) and published on [APIs.io](https://apis.io/apis/versapay/versapay-authentication-api/). The API's provider profile, Kin Score and agent-readiness rating are at https://apis.io/providers/versapay/.
