Login

Login Endpoint

post
/auth/login

Authenticates a user by submitting an accessKey (email) and secretKey (password) to get a bearer token.

Body
accessKeystringOptional

Configured API User email address

Example: [email protected]
secretKeystringOptional

Configured API User's password

Example: your-password
Responses
200

OK - Login success. A BEARER_TOKEN cookie is set in the response headers.

application/json
post
/auth/login
POST /v1/auth/login HTTP/1.1
Host: merchants-api.onekeypayments.com
Content-Type: application/json
Accept: */*
Content-Length: 60

{
  "accessKey": "[email protected]",
  "secretKey": "your-password"
}
{
  "idUser": 123,
  "username": "[email protected]",
  "idMerchant": 456
}

Last updated

Was this helpful?