post
https://auth.my-rent.net/auth/generate
Creates an API token for a MyRent account. The token is valid for 1 hour.
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…
Creates an API token for a MyRent account. Send the token in the token header of every API call that needs it.
MyRent gives you all values for this call, together with a ready cURL command: the API key, user_guid, user_id, public_key and auth_key.
The token expires 1 hour after it is created. Cache it and create a new one shortly before it expires, for example every 45 minutes. Do not create a new token for every request.
Keep credentials private
Keep the API key,
public_keyandauth_keyon your server. Never put them into browser or mobile app code.
Responses
| Status | Meaning |
|---|---|
200 | Token created. |
403 | user_id does not match user_guid, or the keys are wrong or not active. |
404 | Missing or wrong Authorization header, missing user_guid header, or empty body. Empty response body. |
