## Verify Token `accounts.tokens.verify(TokenVerifyParams**kwargs) -> TokenVerifyResponse` **get** `/accounts/{account_id}/tokens/verify` Test whether a token works. ### Parameters - `account_id: str` Account identifier tag. ### Returns - `class TokenVerifyResponse: …` - `id: str` Token identifier tag. - `status: Literal["active", "disabled", "expired"]` Status of the token. - `"active"` - `"disabled"` - `"expired"` - `expires_on: Optional[datetime]` The expiration time on or after which the JWT MUST NOT be accepted for processing. - `not_before: Optional[datetime]` The time before which the token MUST NOT be accepted for processing. ### Example ```python import os from cloudflare import Cloudflare client = Cloudflare( api_token=os.environ.get("CLOUDFLARE_API_TOKEN"), # This is the default and can be omitted ) response = client.accounts.tokens.verify( account_id="023e105f4ecef8ad9ca31a8372d0c353", ) print(response.id) ``` #### Response ```json { "errors": [ { "code": 1000, "message": "message", "documentation_url": "documentation_url", "source": { "pointer": "pointer" } } ], "messages": [ { "code": 1000, "message": "message", "documentation_url": "documentation_url", "source": { "pointer": "pointer" } } ], "success": true, "result": { "id": "ed17574386854bf78a67040be0a770b0", "status": "active", "expires_on": "2020-01-01T00:00:00Z", "not_before": "2018-07-01T05:20:00Z" } } ```