revoke_token

Generated automatically from the published contract sources.

Build metadata: Registered in this build. Registration describes the default dispatcher in this build. It does not guarantee that a caller has the required credential or grant, that a tool is listed for that connection, or that the required service is configured.

A script calls this action over HTTPS at POST https://turnzero.ai/api/v1/actions/revoke_token, with a bearer credential and the action's payload as the JSON body.

Contract description

Revoke one API token by its id. Every later use of it is refused.

Access and action metadata

{
  "name": "revoke_token",
  "resource": "token",
  "tier": "reversible",
  "summary": "End one minted token by its identity; every later presentation is refused.",
  "annotations": {
    "readOnlyHint": false,
    "destructiveHint": true,
    "openWorldHint": false
  }
}

MCP catalog entry

{
  "name": "revoke_token",
  "tier": "reversible",
  "summary": "Revoke one API token by its id. Every later use of it is refused.",
  "owners": [],
  "scenario": "API-L0-05"
}

request

JSON pointer Description and constraints
"" (root) Type: object
Required fields: ["id"]
/properties/id The token's id, as `list_tokens` and the minting response give it.

Type: string

response

JSON pointer Description and constraints
"" (root) Type: object
Required fields: ["contract_version","token"]
Additional properties: false
/properties/contract_version Required value: 1
/properties/token Type: object
Required fields: ["id","revoked_at"]
Additional properties: false
/properties/token/properties/id Type: string
/properties/token/properties/revoked_at Type: string

Complete payload contract

{
  "request": {
    "type": "object",
    "required": [
      "id"
    ],
    "properties": {
      "id": {
        "type": "string",
        "description": "The token's id, as `list_tokens` and the minting response give it."
      }
    }
  },
  "response": {
    "type": "object",
    "required": [
      "contract_version",
      "token"
    ],
    "properties": {
      "contract_version": {
        "const": 1
      },
      "token": {
        "type": "object",
        "required": [
          "id",
          "revoked_at"
        ],
        "properties": {
          "id": {
            "type": "string"
          },
          "revoked_at": {
            "type": "string"
          }
        },
        "additionalProperties": false
      }
    },
    "additionalProperties": false
  }
}

Shared contracts