Skip to main content

Login

Description

Displays the login screen to the vehicle owner.

Endpoint

GET https://api.pleos.ai/v1/auth/login

Request

curl
curl -X GET "https://api.pleos.ai/v1/auth/login?clientId={client_id}&brand={brand}&redirectUrl={redirect_url}&state={state}"

Query Params

ParameterTypeDescriptionRequired
clientIdstringEnter the Client ID found under Pleos Playground > My Project.Required
brandstringVehicle brand (hyundai/kia/genesis)Required
redirectUrlstringEnter the OAuth login > Login redirect URL that was provided when requesting Vehicle Data API use under Pleos Playground > My Project.Required
statestringState value generated by the application
Used to prevent cross-site request forgery (CSRF) attacks
When using special characters, Base64 or URL encoding is required
Required
info
  • redirectUrl must use the same Login redirect URL that was entered when requesting the Vehicle Data API.
  • You can check the Login redirect URL in the API > API Access Request History screen.

Responses

Success

200
{
HTTP/1.1 302 Found
Content-Length: 0
Location: https://www.example.com/auth/hyundai?code=a1a2a3a4-1010-2020-xyz1-2166063cb6af.2222b4b4-adde-4c73-8dc3-bc95ebc3935a&state=app_login
}
FieldTypeDescription
codestringAuthentication code issued upon successful login. Used for issuing user tokens
statestringState token requested from the application. Matches the state value provided as a query parameter.

Failure

N/A