capabilities.work

Exchange a code or refresh token for tokens

One step with Appwrite. We can help you get access.

Get something done

Exchange a code or refresh token for tokens

Works with AI assistants

Use Appwrite: its Appwrite Oauth2 API lets you exchange a code or refresh token for tokens in a single step (POST /oauth2/{project_id}/token). Appwrite also has an MCP server, so an AI assistant like Claude or ChatGPT can do it for you. capabilities.work can help you get signed up and connected.

  • How do I trade an authorization code for access and refresh tokens?
  • Can I get a new access token using my refresh token?
  • What grant type do I use to poll with a device code?
Say it to your AI assistant
  • Exchange authorization code {code} for tokens in project {project_id} with grant type {grant_type}.
  • Refresh my access token in project {project_id} using {refresh_token} and grant type {grant_type}.
For your developer

POST /oauth2/{project_id}/token in Appwrite Oauth2 API. Full spec on APIs.io.