POST
/
v1
/
integrations
/
sso
/
token
import { Vercel } from "@vercel/sdk";

const vercel = new Vercel();

async function run() {
  const result = await vercel.marketplace.exchangeSsoToken({
    code: "<value>",
    clientId: "<id>",
    clientSecret: "<value>",
  });

  // Handle the result
  console.log(result);
}

run();
{
  "id_token": "<string>",
  "access_token": "<any>",
  "token_type": "<any>"
}

Body

application/json
code
string
required

The sensitive code received from Vercel

client_id
string
required

The integration client id

client_secret
string
required

The integration client secret

state
string

The state received from the initialization request

redirect_uri
string

The integration redirect URI

grant_type
enum<string>

The grant type, when using x-www-form-urlencoded content type

Available options:
authorization_code

Response

200
application/json
id_token
string
required
access_token
any | null
required
token_type
any | null
required