post
https://api.my-rent.net/auth/customer_token
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests⦠| |||
Loadingā¦
Creates a token for the Customer API (/customer/...). The token is valid for 1 hour.
Send key in the header and your secret in the body. Cache the token and create a new one shortly before it expires, for example every 45 minutes. Do not create a new token for every request.
Keep the secret private
MyRent gives you the secret once. Call this endpoint from your server only and never put the secret in browser or mobile app code, repositories or logs.
Responses
| Status | Meaning |
|---|---|
200 | Token created. exp is the expiry time as a Unix timestamp. |
401 | Wrong key or secret, or the access is not active. |
