medium · Capability
Medium OAuth2 API
The Medium OAuth2 API enables third-party applications to authenticate and authorize users to act on their behalf on the Medium platform. Applications redirect users to Medium's authorization endpoint to obtain an authorization code, which is then exchanged for an access token and refresh token. The OAuth2 flow supports scoped permissions including basicProfile, publishPost, listPublications, and uploadImage, allowing developers to request only the level of access their application requires. Access tokens are valid for 60 days and can be refreshed using refresh tokens.
What You Can Do
GET
Authorizeuser
— Authorize a user via OAuth2
/authorize
POST
Exchangeauthorizationcode
— Exchange authorization code for tokens
/tokens
POST
Refreshaccesstoken
— Refresh an access token
/tokens/refresh
MCP Tools
authorizeuser
Authorize a user via OAuth2
read-only
idempotent
exchangeauthorizationcode
Exchange authorization code for tokens
refreshaccesstoken
Refresh an access token