Saltar al contenido principal
POST
/
oauth
/
v3
/
token
Punto de terminación del token de OAuth
curl --request POST \
  --url https://api.hubapi.com/oauth/v3/token \
  --header 'Content-Type: application/x-www-form-urlencoded' \
  --data 'client_id=<string>' \
  --data 'client_secret=<string>' \
  --data 'code=<string>' \
  --data 'code_verifier=<string>' \
  --data 'redirect_uri=<string>' \
  --data 'refresh_token=<string>' \
  --data 'scope=<string>'
{
  "access_token": "<string>",
  "expires_in": 123,
  "refresh_token": "<string>",
  "token_type": "<string>",
  "token_use": "access_token",
  "hub_id": 123,
  "id_token": "<string>",
  "scopes": [
    "<string>"
  ],
  "user_id": 123
}

Documentation Index

Fetch the complete documentation index at: https://developers.hubspot.es/docs/llms.txt

Use this file to discover all available pages before exploring further.

Supported products

Cuerpo

application/x-www-form-urlencoded
client_id
string
client_secret
string
code
string
code_verifier
string
grant_type
enum<string>
Opciones disponibles:
authorization_code,
client_credentials,
refresh_token
redirect_uri
string
refresh_token
string
scope
string

Respuesta

successful operation

access_token
string
requerido
expires_in
integer<int64>
requerido
refresh_token
string
requerido
token_type
string
requerido
token_use
enum<string>
predeterminado:access_token
requerido
Opciones disponibles:
access_token
hub_id
integer<int32>
id_token
string
scopes
string[]
user_id
integer<int32>
Last modified on May 11, 2026