Przejdź do głównej zawartości

Wygeneruj token API

POST
/api/v3/Tokens
curl --request POST \
--url https://twoja-instancja-smerp-api.enterprise.sellrocket.pl/api/v3/Tokens \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "expiresInSeconds": 1, "apiRateLimit": 1 }'

Wydaje token dostępu do API dla bieżącego użytkownika; można ustawić czas ważności i limit zapytań.

object
expiresInSeconds
integer format: int64
nullable
apiRateLimit
integer format: int32
nullable
Examplegenerated
{
"expiresInSeconds": 1,
"apiRateLimit": 1
}

Success

object
success
boolean
message
string
nullable
jwt
string
nullable
expiredAt
string format: date-time
issuedAt
string format: date-time