Authenticate with the AutoLeap Partner API to obtain access tokens.
All other endpoints require a valid access token.
Overview
The AutoLeap API uses the REST standard, which means you interact with it by making requests over HTTP.
A request usually includes:
- An HTTP method (like
GETorPOST) - A path (the address of the resource)
- Optional headers and parameters (in the path, query string, or request body)
When you send a request, the API responds with:
- A status code (to indicate success or failure)
- Response headers
- Sometimes a response body with useful data
The API reference describes the method, path, and parameters for each endpoint, and includes sample requests and responses you can use as a guide.
Languages
Servers
Production
https://partnerapi.myautoleap.com/v2/
- Productionhttps://partnerapi.myautoleap.com/v2/partners/login
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://partnerapi.myautoleap.com/v2/partners/login \
-H 'Content-Type: application/json' \
-d '{
"partnerId": "YOUR_PARTNER_ID",
"authKey": "YOUR_AUTH_KEY"
}'Response
application/json
{ "success": true, "data": { "accessToken": "abc123xyz456", "refreshToken": "rT0k3n4950506" } }
- Productionhttps://partnerapi.myautoleap.com/v2/partners/generateNewAccessToken
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://partnerapi.myautoleap.com/v2/partners/generateNewAccessToken \
-H 'Content-Type: application/json' \
-d '{
"refreshToken": "rT0k3n..."
}'Response
application/json
{ "success": true, "data": { "accessToken": "newAccessToken123", "refreshToken": "newRefreshToken456" } }
- Productionhttps://partnerapi.myautoleap.com/v2/partners/logout
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://partnerapi.myautoleap.com/v2/partners/logout \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"refreshToken": "rT0k3n..."
}'Response
application/json
{ "success": true, "message": "Successfully logged out" }