Endpoints: Flex API v2
Flex API v2 exposes these REST endpoints, grouped by the stage of the tokenization flow each one supports.
Capture Context
| Method | Path | Description |
|---|---|---|
POST | /flex/v2/sessions | Generate the capture context that scopes and secures the data to capture. |
GET | /flex/v2/public-keys/{keyId} | Retrieve the public key used to validate a capture context's signature. |
Tokenization
| Method | Path | Description |
|---|---|---|
POST | /flex/v2/tokens | Tokenize the secured payment information and receive a transient token. |
Server URLs
Use the base URL for your environment as the URL prefix. See API Server URLs for the full reference:
| Environment | Base URL |
|---|---|
| Production | api.cybersource.com |
| Production (Saudi Arabia) | api.sa.cybersource.com |
| Test | apitest.cybersource.com |
| Test (Saudi Arabia) | apitest.sa.cybersource.com |
| Environment | Base URL |
|---|---|
| Production | api.visaacceptance.com |
| Test | apitest.visaacceptance.com |
| Environment | Base URL |
|---|---|
| Production | api.smartpayfuse.barclaycard |
| Test | api.smartpayfuse-test.barclaycard |
| Environment | Base URL |
|---|---|
| Production | api.merchant-services.bankofamerica.com |
| Test | apitest.merchant-services.bankofamerica.com |
| Environment | Base URL |
|---|---|
| Production | api.gw.cliq.com |
| Test | api.gw.cas.cliq.com |
| Environment | Base URL |
|---|---|
| Production | nabgateway-api.nab.com.au |
| Test | nabgateway-api-test.nab.com.au |
Was this page helpful?
Thanks for your feedback!
Last published: September 29, 2026