Leadspace Authorization API
OAuth 2.0 token issuance and refresh
Operations 2
Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay
POST
/oauth/authorize
Get an access token with program credentials · Request an OAuth 2.0 access token
#
Ask an LLM
“How do I get a bearer token to call the Leadspace v4 APIs?”
“What credentials do I exchange for an API access token, and how long does it last?”
Tell an agent
Request a new access token using program ID {user} and secret {pass} for audience {audience}.
Log in with program ID {user} and secret {pass} to get a fresh 24-hour bearer token scoped to {audience}.
Ask an LLM
“Can I renew my bearer token with a refresh token instead of sending my secret again?”
“What do I send to swap a refresh token for a new access token?”
Tell an agent
Refresh the access token for program ID {user} using refresh token {refreshToken}.
Exchange refresh token {refreshToken} for a new bearer token for {user}.
Documentation
Documentation
https://support.leadspace.com/hc/en-us/articles/23687993264284-Leadspace-Single-Direct-API-v4-Technical-Specifications
Documentation
https://support.leadspace.com/hc/en-us/articles/360011926619-Leadspace-Discovery-API
Documentation
https://support.leadspace.com/hc/en-us/articles/360012583400-Leadspace-Intent-Only-API