---
title: "Create a vehicle authorization link"
method: POST
path: "/api/v1/vehicles/integrations/authorization-link"
tags: ["Vehicles"]
---

# Create a vehicle authorization link

`POST /api/v1/vehicles/integrations/authorization-link`

Required scope: `vehicles:write`. Returns the link an application user follows to authorize their vehicle account (e.g. Enode or Smartcar) so it can be connected to Monta.

## Request body

- CreateAuthorizationLink
  - `userId` integer, required — Id of the application user the authorization link is created for
  - `redirectUri` string, required — URI the user is redirected to after authorizing their vehicle account. Must be an https:// URL.
  - `provider` 'enode' | 'smartcar', nullable — Vehicle integration provider. Defaults to enode when omitted.
  - `brandId` integer, nullable — Vehicle brand id used to pick a provider-specific authorization flow
  - `scopes` string[], nullable — Scopes requested from the vehicle account. Defaults to charge-state and control-charging.

## Response `200`

Authorization link created

- AuthorizationLink
  - `authorizeLink` string, required — Link the user follows to authorize their vehicle account
  - `token` string, nullable — Token identifying the authorization session
  - `provider` string, required — Vehicle integration provider that issued the link
  - `authFlow` string, required — Authorization flow the client should use to complete linking

## Other responses

- `400` — The request is invalid
- `401` — Consumer with provided credentials was not found
- `403` — Operator doesn't have access to resource
- `404` — Entity with the provided id was not found

---

[API](https://skmtc.net/monta/apis/monta-partner-api.md) · [All operations](https://skmtc.net/monta/apis/monta-partner-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/monta/monta-partner-api/versions/517e18f11015/schema)
