Usage of /access-tokens/exchange POST
Discussion
Creates an access token with equivalent scopes for an account, but in a different context.
For security reasons it is not possible for a single access_token to permit access to both public and private team data on Stack Overflow. Use this method to avoid having to authenticate a user twice.
The only supported conversion type is team_for_public
, which takes an access_token with the access_team
and creates new access_tokens with access to public Stack Overflow.
{accessTokens}
can contain up to 20 access tokens, all of which must have the same access_team
scope. These are obtained by authenticating a user using OAuth 2.0.
This method returns a list of exchanged_access_tokens.
Try It