Client-token
Criar nova chave pública para uso no client-side
Visão Geral
Tokens
Charges
Sessions
Customers
Merchants
Vendors
Sellers
Webhooks
Reports
Client-token
Criar nova chave pública para uso no client-side
POST
/
v1
/
auth
curl --request POST \
--url https://api.malga.io/v1/auth \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: <api-key>' \
--header 'X-Client-Id: <api-key>' \
--data '{
"scope": [
"tokens"
],
"expires": 31104000
}'
{
"clientId": "cc0b1e41-2936-45c5-947f-93995ffcdc00",
"publicKey": "<YOUR_PUBLIC_KEY>",
"scope": [
"tokens"
],
"expires": 31104000,
"createdAt": "20200110 00:00:00"
}
Body
application/json
Creat authentication token
The body is of type object
.
Response
201
application/json
Created
The response is of type object
.
Was this page helpful?
curl --request POST \
--url https://api.malga.io/v1/auth \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: <api-key>' \
--header 'X-Client-Id: <api-key>' \
--data '{
"scope": [
"tokens"
],
"expires": 31104000
}'
{
"clientId": "cc0b1e41-2936-45c5-947f-93995ffcdc00",
"publicKey": "<YOUR_PUBLIC_KEY>",
"scope": [
"tokens"
],
"expires": 31104000,
"createdAt": "20200110 00:00:00"
}