Authentication
Retrieve Authentication Token
Exchange credentials for JWT and Refresh tokens. The returned tokens are required to use other API endpoints and to retrieve new tokens before they expire. For initial authentication, supply your username and password with the Basic authorization format header. For subsequent authentications, use the refresh token in the Bearer format.
post/auth/token
Request
- Base URLhttps://api.morningconsult.com/v1
- Auth
- HTTP basic
- or HTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Response
Auth Tokens
Example response
{
"token_type": "Bearer",
"expires_in": 3600,
"id_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxM",
"refresh_token": "eyJxdWVyeSI6ImRvZ3MifQ=="
}Changes
No recorded changes to this operation across all 1 revision of this API.