Skip to main content
POST
/
api
/
action
/
auth
Generate Bearer Token
curl --request POST \
  --url https://sandbox.soleaspay.com/api/action/auth \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "public_apikey": "your_api_key",
  "private_secretkey": "your_secret_key"
}
'
{
  "token": "<string>",
  "data": {
    "expireAt": "2023-11-07T05:31:56Z"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
public_apikey
string
required
Example:

"your_api_key"

private_secretkey
string
required
Example:

"your_secret_key"

Response

Bearer token response

token
string

JWT Bearer token

data
object