---
updatedAt: 2026-05-07T18:17:26.000Z
agentTools:
  projectIndex: https://docs.joinforage.app/llms.txt
---

# Revoke an authentication token

> 📘 Authentication Guide
>
> For comprehensive details about authenticating with the Forage API, refer to the [authentication guide](doc:authentication).

A `POST` request to `/o/revoke_token/` revokes a previously created [authentication token](doc:authentication#authentication-tokens).


You need your app's Client ID and Client Secret from the Forage dashboard ([sandbox](https://dashboard.sandbox.joinforage.app/), [production](https://dashboard.joinforage.app/)) to revoke an authentication token. If you don't yet have dashboard access, then please [get in touch](https://www.joinforage.com/get-in-touch).


> 📘 Active Token Limits
>
> There can be up to 1000 active authentication tokens for a Client ID and Client Secret pair at any given time.


# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "x-readme": {
    "explorer-enabled": false,
    "proxy-enabled": false
  },
  "info": {
    "title": "Forage Payments API",
    "description": "The Forage Payments API is a REST API for processing Electronic Benefits Transfer (EBT) payments (SNAP and EBT Cash) in your e-commerce or in-store application.\n\nProcessing any EBT payment, or checking an EBT card's balance, requires the cardholder's PIN. Federal regulations require all PIN entry to happen through a PCI-compliant, USDA-approved interface. Forage provides that interface, so EBT PIN collection always happens through a Forage-hosted surface (Forage Checkout or a Forage SDK), never directly in your own form. Some endpoints (for example, capture and balance) are only reachable through that surface because they require PIN data in the request.\n\nEBT rarely covers an entire order: items like delivery fees and non-eligible products can't be paid with SNAP or EBT Cash. You decide how to handle the remaining balance (split tender) and any credit or debit processing alongside the EBT portion.\n\nForage offers four integration options. Pick the one that fits your platform and engineering resources:\n\n1. **Fully Hosted Checkout.** Forage processes EBT and credit/debit through a Forage-hosted Checkout UI. Lowest engineering effort, and Forage absorbs most error handling. See the [Fully Hosted Checkout guide](https://docs.joinforage.app/docs/fully-hosted).\n2. **Custom Checkout.** Forage processes EBT; you handle split tender, taxes, and credit/debit in your own checkout flow. Best when you want minimal changes to your existing UX. See the [Custom Checkout guide](https://docs.joinforage.app/docs/custom).\n3. **Online SDKs.** Client-side SDKs for [web](https://docs.joinforage.app/docs/forage-js), [iOS](https://docs.joinforage.app/docs/ios), and [Android](https://docs.joinforage.app/docs/android) that collect EBT PINs in your app while keeping you out of PCI scope.\n4. **POS Terminal SDK.** Accept in-person EBT payments on an Android POS device. See the [POS Terminal guide](https://docs.joinforage.app/docs/forage-terminal-android).\n\nAs a general principle, any data created by your requests, or by your customers on a Forage-hosted surface, is retrievable through GET requests to the appropriate resource.\n\nHave more questions? Use our [contact form](https://www.joinforage.com/get-in-touch) to reach our sales and engineering support teams.\n",
    "contact": {
      "name": "API Support",
      "email": "engineering@joinforage.com"
    },
    "version": "2025-08-04"
  },
  "externalDocs": {
    "description": "Forage documentation",
    "url": "https://docs.joinforage.app/"
  },
  "servers": [
    {
      "url": "https://{environment}.joinforage.app",
      "variables": {
        "environment": {
          "default": "api.sandbox",
          "enum": [
            "api",
            "api.sandbox"
          ]
        }
      }
    }
  ],
  "security": [],
  "paths": {
    "/o/revoke_token/": {
      "post": {
        "tags": [
          "Bearer Tokens"
        ],
        "summary": "Revoke an authentication token",
        "x-readme": {
          "code-samples": [
            {
              "language": "curl",
              "code": "curl --request POST \\\n     --url https://api.sandbox.joinforage.app/o/revoke_token/ \\\n     --header 'accept: application/json' \\\n     --header 'content-type: application/x-www-form-urlencoded' \\\n     --data client_id=abc123 \\\n     --data client_secret=a1b2c3d4567 \\\n     --data token=sandbox_uXpcGMAMs7hhbw9JifUuJlzUZS3zWD\n"
            }
          ]
        },
        "description": "> 📘 Authentication Guide\n>\n> For comprehensive details about authenticating with the Forage API, refer to the [authentication guide](https://docs.joinforage.app/docs/authentication).\n\nA `POST` request to `/o/revoke_token/` revokes a previously created [authentication token](https://docs.joinforage.app/docs/authentication#authentication-tokens).\n\n\nYou need your app’s Client ID and Client Secret from the Forage dashboard ([sandbox](https://dashboard.sandbox.joinforage.app/), [production](https://dashboard.joinforage.app/)) to revoke an authentication token. If you don’t yet have dashboard access, then please [get in touch](https://www.joinforage.com/get-in-touch).\n\n\n> 📘 Active Token Limits\n>\n> There can be up to 1000 active authentication tokens for a Client ID and Client Secret pair at any given time.\n",
        "security": [],
        "operationId": "forage_oauth:forage_revoke_token",
        "requestBody": {
          "$ref": "#/components/requestBodies/RevokeToken"
        },
        "responses": {
          "200": {
            "description": "__OK__ - Success"
          },
          "400": {
            "description": "__Bad request__ - The request was not accepted because of an error in the request body or path.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "string",
                      "description": "A string that describes the nature of the error."
                    },
                    "error_description": {
                      "description": "A string that includes more details about the error."
                    }
                  }
                },
                "example": {
                  "error": "invalid_request",
                  "error_description": "Missing token parameter."
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "RevokeTokenRequest": {
        "type": "object",
        "description": "The configuration for single token revocation.",
        "properties": {
          "client_id": {
            "type": "string",
            "description": "The client ID for your application, found in the Forage dashboard ([sandbox](https://dashboard.sandbox.joinforage.app/), [production](https://dashboard.joinforage.app/))."
          },
          "client_secret": {
            "type": "string",
            "description": "The client secret for your application, found in the Forage dashboard ([sandbox](https://dashboard.sandbox.joinforage.app/), [production](https://dashboard.joinforage.app/))."
          },
          "token": {
            "type": "string",
            "description": "The access token to be revoked."
          }
        },
        "required": [
          "token",
          "client_id",
          "client_secret"
        ]
      }
    },
    "requestBodies": {
      "RevokeToken": {
        "description": "Request payload body for server revoke single token",
        "content": {
          "application/x-www-form-urlencoded": {
            "schema": {
              "$ref": "#/components/schemas/RevokeTokenRequest"
            }
          }
        }
      }
    }
  }
}
```

# Sibling pages

* [Create an authentication token](https://docs.joinforage.app/reference/create-authentication-token.md)
* [Bulk revoke authentication tokens](https://docs.joinforage.app/reference/bulk-revoke-auth-tokens.md)
* [Create a session token](https://docs.joinforage.app/reference/create-session-token.md)