Generate token

Creates an API token for a MyRent account. The token is valid for 1 hour.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

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_key and auth_key on your server. Never put them into browser or mobile app code.

Responses

StatusMeaning
200Token created.
403user_id does not match user_guid, or the keys are wrong or not active.
404Missing or wrong Authorization header, missing user_guid header, or empty body. Empty response body.
Body Params
string
required

MyRent account ID. Must belong to the user_guid header.

string
required

Public key from MyRent.

string
required

Auth key from MyRent.

Headers
string
required

GUID of the MyRent account.

Responses

Language
Credentials
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json