---
updatedAt: 2026-03-01T18:59:51.000Z
agentTools:
  siteIndex: https://techdocs.akamai.com/llms.txt
  projectIndex: https://techdocs.akamai.com/adaptive-media-delivery/llms.txt
---

# Revoke tokens

Add a set of token identifiers to a revocation list to revoke them. Add up to 5,000 token identifiers in a single operation.

# OpenAPI definition

```json
{
  "externalDocs": {
    "description": "See documentation for Akamai's Access Revocation API",
    "url": "https://techdocs.akamai.com/adaptive-media-delivery/reference"
  },
  "info": {
    "license": {
      "name": "Apache 2.0",
      "url": "https://www.apache.org/licenses/LICENSE-2.0.html"
    },
    "title": "Access Revocation",
    "version": "v2"
  },
  "openapi": "3.0.0",
  "paths": {
    "/revocation-lists/{revocationListId}/identifiers/add": {
      "post": {
        "description": "Add a set of token identifiers to a revocation list to revoke them. Add up to 5,000 token identifiers in a single operation.",
        "externalDocs": {
          "description": "See documentation for this operation in Akamai's Access Revocation API",
          "url": "https://techdocs.akamai.com/adaptive-media-delivery/reference/post-revocation-list-ids"
        },
        "operationId": "post-revocation-list-ids",
        "parameters": [
          {
            "description": "For customers who manage more than one account, this [runs the operation from another account](https://techdocs.akamai.com/developer/docs/manage-many-accounts-with-one-api-client). The Identity and Access Management API provides a [list of available account switch keys](https://techdocs.akamai.com/iam-api/reference/get-client-account-switch-keys).",
            "in": "query",
            "name": "accountSwitchKey",
            "required": false,
            "schema": {
              "example": "1-5C0YLB:1-8BYUX",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "example": [
                {
                  "durationSeconds": 18000,
                  "id": "sdasd345466dg"
                },
                {
                  "durationSeconds": 3600,
                  "id": "utrfhasdf8990"
                }
              ],
              "schema": {
                "description": "The `session_id` set in the access token used with Token Authentication. The `session_id` serves as each token's `tokenId`.",
                "items": {
                  "additionalProperties": false,
                  "description": "The `session_id` set in the access token used with Token Authentication. The `session_id` serves as each token's `tokenId`.",
                  "properties": {
                    "durationSeconds": {
                      "description": "Akamai revokes the token for this number of seconds. After this time, Akamai marks it as unrevoked so requests can use it again. The minimum value is `1800`, or 30 minutes. If you set it to anything less, it resets to `1800`.",
                      "minimum": 1800,
                      "type": "integer"
                    },
                    "id": {
                      "description": "Uniquely identifies each token, corresponding to the `tokenId` parameter when you run [Get an identifier](ref:get-revocation-list-token).",
                      "minLength": 1,
                      "type": "string"
                    }
                  },
                  "required": [
                    "id"
                  ],
                  "type": "object",
                  "x-akamai": {
                    "file-path": "schemas/token-id.yaml"
                  }
                },
                "minItems": 0,
                "type": "array",
                "x-akamai": {
                  "file-path": "schemas/post-identifiers.yaml"
                }
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "count": 500,
                  "limit": 50000
                },
                "schema": {
                  "additionalProperties": false,
                  "description": "The number of token identifiers in a revocation list and the maximum number it can house.",
                  "properties": {
                    "count": {
                      "description": "The number of token identifiers currently in the revocation list.",
                      "minimum": 0,
                      "type": "integer"
                    },
                    "limit": {
                      "description": "The number of token identifiers you can still add to the revocation list.",
                      "maximum": 50000,
                      "minimum": 0,
                      "type": "integer"
                    }
                  },
                  "required": [
                    "count",
                    "limit"
                  ],
                  "type": "object",
                  "x-akamai": {
                    "file-path": "schemas/meta-info-200.yaml"
                  }
                }
              }
            },
            "description": "The API added the tokens to the revocation list."
          },
          "400": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "Invalid body",
                  "instance": "12ab3c45-789d-01ef-2gh3-ijk4l56m78no",
                  "status": 400,
                  "title": "Bad Request",
                  "type": "bad_request"
                },
                "schema": {
                  "additionalProperties": true,
                  "description": "Specific error details for the action.",
                  "properties": {
                    "detail": {
                      "description": "Information for the error, including the cause if it's available.",
                      "minLength": 1,
                      "type": "string"
                    },
                    "instance": {
                      "description": "Identifies each error instance.",
                      "minLength": 1,
                      "type": "string"
                    },
                    "status": {
                      "description": "The HTTP status code for the error. Possible values: `400`, `401`, `403`, `404`, `405`, `415`, `429`, or `500`.",
                      "enum": [
                        400,
                        401,
                        403,
                        404,
                        405,
                        415,
                        429,
                        500
                      ],
                      "type": "integer"
                    },
                    "title": {
                      "description": "The error title.",
                      "minLength": 1,
                      "type": "string"
                    },
                    "type": {
                      "description": "The type of error. Possible values: `bad_request`, `unauthorized`, `forbidden`, `not_found`, `not_allowed`, `unsupported_media_type`, `too_many_requests` or `internal_server_error`.",
                      "enum": [
                        "bad_request",
                        "unauthorized",
                        "forbidden",
                        "not_found",
                        "not_allowed",
                        "unsupported_media_type",
                        "too_many_requests",
                        "internal_server_error"
                      ],
                      "type": "string"
                    }
                  },
                  "required": [
                    "type",
                    "title",
                    "status",
                    "detail"
                  ],
                  "type": "object",
                  "x-akamai": {
                    "file-path": "schemas/error.yaml"
                  }
                }
              }
            },
            "description": "[Bad request](ref:400). You provided bad parameter data or formatted the request body incorrectly.",
            "x-akamai": {
              "file-path": "errors/400.yaml"
            }
          },
          "401": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "Unauthorized",
                  "instance": "12ab3c45-789d-01ef-2gh3-ijk4l56m78no",
                  "status": 401,
                  "title": "Unauthorized",
                  "type": "unauthorized"
                },
                "schema": {
                  "additionalProperties": true,
                  "description": "Specific error details for the action.",
                  "properties": {
                    "detail": {
                      "description": "Information for the error, including the cause if it's available.",
                      "minLength": 1,
                      "type": "string"
                    },
                    "instance": {
                      "description": "Identifies each error instance.",
                      "minLength": 1,
                      "type": "string"
                    },
                    "status": {
                      "description": "The HTTP status code for the error. Possible values: `400`, `401`, `403`, `404`, `405`, `415`, `429`, or `500`.",
                      "enum": [
                        400,
                        401,
                        403,
                        404,
                        405,
                        415,
                        429,
                        500
                      ],
                      "type": "integer"
                    },
                    "title": {
                      "description": "The error title.",
                      "minLength": 1,
                      "type": "string"
                    },
                    "type": {
                      "description": "The type of error. Possible values: `bad_request`, `unauthorized`, `forbidden`, `not_found`, `not_allowed`, `unsupported_media_type`, `too_many_requests` or `internal_server_error`.",
                      "enum": [
                        "bad_request",
                        "unauthorized",
                        "forbidden",
                        "not_found",
                        "not_allowed",
                        "unsupported_media_type",
                        "too_many_requests",
                        "internal_server_error"
                      ],
                      "type": "string"
                    }
                  },
                  "required": [
                    "type",
                    "title",
                    "status",
                    "detail"
                  ],
                  "type": "object",
                  "x-akamai": {
                    "file-path": "schemas/error.yaml"
                  }
                }
              }
            },
            "description": "[Unauthorized](ref:401). A value in your [authentication credential](https://techdocs.akamai.com/developer/docs/set-up-authentication-credentials) is invalid or it has expired.",
            "x-akamai": {
              "file-path": "errors/401.yaml"
            }
          },
          "403": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "Forbidden",
                  "instance": "12ab3c45-789d-01ef-2gh3-ijk4l56m78no",
                  "status": 403,
                  "title": "Forbidden",
                  "type": "forbidden"
                },
                "schema": {
                  "additionalProperties": true,
                  "description": "Specific error details for the action.",
                  "properties": {
                    "detail": {
                      "description": "Information for the error, including the cause if it's available.",
                      "minLength": 1,
                      "type": "string"
                    },
                    "instance": {
                      "description": "Identifies each error instance.",
                      "minLength": 1,
                      "type": "string"
                    },
                    "status": {
                      "description": "The HTTP status code for the error. Possible values: `400`, `401`, `403`, `404`, `405`, `415`, `429`, or `500`.",
                      "enum": [
                        400,
                        401,
                        403,
                        404,
                        405,
                        415,
                        429,
                        500
                      ],
                      "type": "integer"
                    },
                    "title": {
                      "description": "The error title.",
                      "minLength": 1,
                      "type": "string"
                    },
                    "type": {
                      "description": "The type of error. Possible values: `bad_request`, `unauthorized`, `forbidden`, `not_found`, `not_allowed`, `unsupported_media_type`, `too_many_requests` or `internal_server_error`.",
                      "enum": [
                        "bad_request",
                        "unauthorized",
                        "forbidden",
                        "not_found",
                        "not_allowed",
                        "unsupported_media_type",
                        "too_many_requests",
                        "internal_server_error"
                      ],
                      "type": "string"
                    }
                  },
                  "required": [
                    "type",
                    "title",
                    "status",
                    "detail"
                  ],
                  "type": "object",
                  "x-akamai": {
                    "file-path": "schemas/error.yaml"
                  }
                }
              }
            },
            "description": "[Access forbidden](ref:403). You lack permission for this operation, such as having read-only access.",
            "x-akamai": {
              "file-path": "errors/403.yaml"
            }
          },
          "404": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "Identifier not found",
                  "instance": "12ab3c45-789d-01ef-2gh3-ijk4l56m78no",
                  "status": 404,
                  "title": "Not Found",
                  "type": "not_found"
                },
                "schema": {
                  "additionalProperties": true,
                  "description": "Specific error details for the action.",
                  "properties": {
                    "detail": {
                      "description": "Information for the error, including the cause if it's available.",
                      "minLength": 1,
                      "type": "string"
                    },
                    "instance": {
                      "description": "Identifies each error instance.",
                      "minLength": 1,
                      "type": "string"
                    },
                    "status": {
                      "description": "The HTTP status code for the error. Possible values: `400`, `401`, `403`, `404`, `405`, `415`, `429`, or `500`.",
                      "enum": [
                        400,
                        401,
                        403,
                        404,
                        405,
                        415,
                        429,
                        500
                      ],
                      "type": "integer"
                    },
                    "title": {
                      "description": "The error title.",
                      "minLength": 1,
                      "type": "string"
                    },
                    "type": {
                      "description": "The type of error. Possible values: `bad_request`, `unauthorized`, `forbidden`, `not_found`, `not_allowed`, `unsupported_media_type`, `too_many_requests` or `internal_server_error`.",
                      "enum": [
                        "bad_request",
                        "unauthorized",
                        "forbidden",
                        "not_found",
                        "not_allowed",
                        "unsupported_media_type",
                        "too_many_requests",
                        "internal_server_error"
                      ],
                      "type": "string"
                    }
                  },
                  "required": [
                    "type",
                    "title",
                    "status",
                    "detail"
                  ],
                  "type": "object",
                  "x-akamai": {
                    "file-path": "schemas/error.yaml"
                  }
                }
              }
            },
            "description": "[Not found](ref:404). You've input the API URL incorrectly or named an asset that doesn't exist.",
            "x-akamai": {
              "file-path": "errors/404.yaml"
            }
          },
          "405": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "Method not allowed",
                  "instance": "12ab3c45-789d-01ef-2gh3-ijk4l56m78no",
                  "status": 405,
                  "title": "Not Allowed",
                  "type": "not_allowed"
                },
                "schema": {
                  "additionalProperties": true,
                  "description": "Specific error details for the action.",
                  "properties": {
                    "detail": {
                      "description": "Information for the error, including the cause if it's available.",
                      "minLength": 1,
                      "type": "string"
                    },
                    "instance": {
                      "description": "Identifies each error instance.",
                      "minLength": 1,
                      "type": "string"
                    },
                    "status": {
                      "description": "The HTTP status code for the error. Possible values: `400`, `401`, `403`, `404`, `405`, `415`, `429`, or `500`.",
                      "enum": [
                        400,
                        401,
                        403,
                        404,
                        405,
                        415,
                        429,
                        500
                      ],
                      "type": "integer"
                    },
                    "title": {
                      "description": "The error title.",
                      "minLength": 1,
                      "type": "string"
                    },
                    "type": {
                      "description": "The type of error. Possible values: `bad_request`, `unauthorized`, `forbidden`, `not_found`, `not_allowed`, `unsupported_media_type`, `too_many_requests` or `internal_server_error`.",
                      "enum": [
                        "bad_request",
                        "unauthorized",
                        "forbidden",
                        "not_found",
                        "not_allowed",
                        "unsupported_media_type",
                        "too_many_requests",
                        "internal_server_error"
                      ],
                      "type": "string"
                    }
                  },
                  "required": [
                    "type",
                    "title",
                    "status",
                    "detail"
                  ],
                  "type": "object",
                  "x-akamai": {
                    "file-path": "schemas/error.yaml"
                  }
                }
              }
            },
            "description": "[Not allowed](ref:405). You used an unsupported method with this operation. For example, you set the method to GET for a PUT operation.",
            "x-akamai": {
              "file-path": "errors/405.yaml"
            }
          },
          "415": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "Unsupported media type",
                  "instance": "12ab3c45-789d-01ef-2gh3-ijk4l56m78no",
                  "status": 415,
                  "title": "Unsupported Media Type",
                  "type": "unsupported_media_type"
                },
                "schema": {
                  "additionalProperties": true,
                  "description": "Specific error details for the action.",
                  "properties": {
                    "detail": {
                      "description": "Information for the error, including the cause if it's available.",
                      "minLength": 1,
                      "type": "string"
                    },
                    "instance": {
                      "description": "Identifies each error instance.",
                      "minLength": 1,
                      "type": "string"
                    },
                    "status": {
                      "description": "The HTTP status code for the error. Possible values: `400`, `401`, `403`, `404`, `405`, `415`, `429`, or `500`.",
                      "enum": [
                        400,
                        401,
                        403,
                        404,
                        405,
                        415,
                        429,
                        500
                      ],
                      "type": "integer"
                    },
                    "title": {
                      "description": "The error title.",
                      "minLength": 1,
                      "type": "string"
                    },
                    "type": {
                      "description": "The type of error. Possible values: `bad_request`, `unauthorized`, `forbidden`, `not_found`, `not_allowed`, `unsupported_media_type`, `too_many_requests` or `internal_server_error`.",
                      "enum": [
                        "bad_request",
                        "unauthorized",
                        "forbidden",
                        "not_found",
                        "not_allowed",
                        "unsupported_media_type",
                        "too_many_requests",
                        "internal_server_error"
                      ],
                      "type": "string"
                    }
                  },
                  "required": [
                    "type",
                    "title",
                    "status",
                    "detail"
                  ],
                  "type": "object",
                  "x-akamai": {
                    "file-path": "schemas/error.yaml"
                  }
                }
              }
            },
            "description": "[Unsupported media type](ref:415). You've used an unsupported request or response content type, such as `application/xml`. Try the operation again using `application/json`.",
            "x-akamai": {
              "file-path": "errors/415.yaml"
            }
          },
          "500": {
            "content": {
              "application/problem+json": {
                "example": {
                  "detail": "Internal Server Error",
                  "instance": "12ab3c45-789d-01ef-2gh3-ijk4l56m78no",
                  "status": 500,
                  "title": "Internal Server Error",
                  "type": "internal_server_error"
                },
                "schema": {
                  "additionalProperties": true,
                  "description": "Specific error details for the action.",
                  "properties": {
                    "detail": {
                      "description": "Information for the error, including the cause if it's available.",
                      "minLength": 1,
                      "type": "string"
                    },
                    "instance": {
                      "description": "Identifies each error instance.",
                      "minLength": 1,
                      "type": "string"
                    },
                    "status": {
                      "description": "The HTTP status code for the error. Possible values: `400`, `401`, `403`, `404`, `405`, `415`, `429`, or `500`.",
                      "enum": [
                        400,
                        401,
                        403,
                        404,
                        405,
                        415,
                        429,
                        500
                      ],
                      "type": "integer"
                    },
                    "title": {
                      "description": "The error title.",
                      "minLength": 1,
                      "type": "string"
                    },
                    "type": {
                      "description": "The type of error. Possible values: `bad_request`, `unauthorized`, `forbidden`, `not_found`, `not_allowed`, `unsupported_media_type`, `too_many_requests` or `internal_server_error`.",
                      "enum": [
                        "bad_request",
                        "unauthorized",
                        "forbidden",
                        "not_found",
                        "not_allowed",
                        "unsupported_media_type",
                        "too_many_requests",
                        "internal_server_error"
                      ],
                      "type": "string"
                    }
                  },
                  "required": [
                    "type",
                    "title",
                    "status",
                    "detail"
                  ],
                  "type": "object",
                  "x-akamai": {
                    "file-path": "schemas/error.yaml"
                  }
                }
              }
            },
            "description": "[Internal server error](ref:500). An internal error occurred. Try the request again. If the error continues, contact your account team.",
            "x-akamai": {
              "file-path": "errors/500.yaml"
            }
          }
        },
        "summary": "Revoke tokens",
        "tags": [
          "Identifiers"
        ]
      },
      "parameters": [
        {
          "description": "Uniquely identifies each [revocation list](ref:get-revocation-lists). This corresponds to the revocation list object's `id` member.",
          "in": "path",
          "name": "revocationListId",
          "required": true,
          "schema": {
            "example": 120964235098767,
            "type": "integer"
          },
          "x-akamai": {
            "file-path": "parameters/revocation-list-id-path.yaml"
          }
        }
      ]
    }
  },
  "servers": [
    {
      "url": "https://{hostname}/taas/v2"
    }
  ],
  "x-akamai": {
    "auth-type": "EDGE_GRID",
    "file-path": "access-revocation.yaml"
  },
  "x-readme": {
    "samples-languages": [
      "curl",
      "python",
      "node"
    ],
    "explorer-enabled": true,
    "proxy-enabled": true
  }
}
```

# Sibling pages

* [List identifiers](https://techdocs.akamai.com/adaptive-media-delivery/reference/get-revocation-list-ids.md)
* [Unrevoke tokens](https://techdocs.akamai.com/adaptive-media-delivery/reference/post-unrevoke-revocation-list-ids.md)
* [Get an identifier](https://techdocs.akamai.com/adaptive-media-delivery/reference/get-revocation-list-token.md)
* [Get a revocation list's identifier count](https://techdocs.akamai.com/adaptive-media-delivery/reference/get-revocation-list-meta.md)