Login
Authenticates a user by submitting an accessKey (email) and secretKey (password) to get a bearer token.
Body
secretKeystringOptionalExample:
Configured API User's password
your-passwordResponses
200
OK - Login success. A BEARER_TOKEN cookie is set in the response headers.
application/json
403
Forbidden - Failure: invalid location
application/json
post
/auth/loginPOST /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?

