Ideavate Developer Hub
  • Guides
    • Getting Started
      • Access Token Issuance
      • Using GraphQL
      • Example GraphQL Queries
    • Open Utilities API
      • Introduction
      • Consent and credential sharing
      • Access levels
      • Data update notifications
      • Using Auth Link
    • Data APIs
      • QR code parser
      • Vehicle lookup
  • API Reference
    • Auth Link API
      • Security
      • GET /link
      • POST /token
      • GET /status
    • GraphQL API
      • Authentication
      • Data Model
      • GET or POST /graphql
      • Error Handling
      • Webhooks
  • GraphQL Explorer
Powered by GitBook
On this page
  • Request
  • Endpoint
  • Headers
  1. API Reference
  2. Auth Link API

POST /token

Exchange an Authorization Code or Refresh Token for a fresh GraphQL access token

Request

Endpoint

POST https://auth.open-utilities.com/v1/token

Headers

  • Content-Type - Must be application/x-www-form-urlencoded

Form Data

Name
Type
Description

client_id

string

client_secret

optional string

Required where PKCE is not being used

grant_type

string

Must be authorization_code or refresh_token

code

string

The code returned to your redirect URI after consent flow. Required for grant_type=authorization_code

refresh_token

string

Required for grant_type=refresh_token

code_verifier

string

Required where PKCE is being used

PreviousGET /linkNextGET /status

Last updated 2 years ago