Instasent · Schema

OAuth token request

Form-encoded token request. Which fields are required depends on `grant_type`: `authorization_code` needs `code`, `code_verifier` and `redirect_uri`; `refresh_token` needs `refresh_token`. `client_id` is required for both.

CompanyMessagingSMSRCSWhatsAppArtificial IntelligenceMarketing

Properties

Name Type Description
grant_type string The grant being used. Any other value returns `unsupported_grant_type`.
client_id string The registered client id. It must match the client the code or refresh token was issued to.
code string `authorization_code` only. The single-use code the dashboard returned to the callback. Consumed on first use.
code_verifier string `authorization_code` only. The PKCE verifier whose `S256` hash was sent as `code_challenge` to the authorization endpoint.
redirect_uri string `authorization_code` only. Must be byte-identical to the `redirect_uri` the code was issued for.
refresh_token string `refresh_token` only. The current refresh token, which this call consumes and replaces.
View JSON Schema on GitHub

JSON Schema

instasent-oauth-token-request-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/instasent/json-schema/instasent-oauth-token-request-schema.json",
  "title": "OAuth token request",
  "description": "Form-encoded token request. Which fields are required depends on\n`grant_type`: `authorization_code` needs `code`, `code_verifier` and\n`redirect_uri`; `refresh_token` needs `refresh_token`. `client_id` is\nrequired for both.\n",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/instasent-oauth-api-openapi.yml#/components/schemas/OAuthTokenRequest",
  "type": "object",
  "properties": {
    "grant_type": {
      "type": "string",
      "description": "The grant being used. Any other value returns `unsupported_grant_type`.",
      "enum": [
        "authorization_code",
        "refresh_token"
      ]
    },
    "client_id": {
      "type": "string",
      "description": "The registered client id. It must match the client the code or\nrefresh token was issued to.\n"
    },
    "code": {
      "type": "string",
      "description": "`authorization_code` only. The single-use code the dashboard\nreturned to the callback. Consumed on first use.\n"
    },
    "code_verifier": {
      "type": "string",
      "description": "`authorization_code` only. The PKCE verifier whose `S256` hash was\nsent as `code_challenge` to the authorization endpoint.\n"
    },
    "redirect_uri": {
      "type": "string",
      "format": "uri",
      "description": "`authorization_code` only. Must be byte-identical to the\n`redirect_uri` the code was issued for.\n"
    },
    "refresh_token": {
      "type": "string",
      "description": "`refresh_token` only. The current refresh token, which this call\nconsumes and replaces.\n"
    }
  },
  "required": [
    "grant_type",
    "client_id"
  ]
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/instasent-oauth-token-request"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.