@akamai/openapi-ts
    Preparing search index...

    Type Alias PutPersonalAccessTokenResponses

    type PutPersonalAccessTokenResponses = {
        "200": {
            created: string;
            expiry: string;
            id: number;
            label: string;
            scopes: string;
            token: string;
        };
    }
    Index

    Properties

    Properties

    "200": {
        created: string;
        expiry: string;
        id: number;
        label: string;
        scopes: string;
        token: string;
    }

    A Personal Access Token is a token generated manually to access the API without going through an OAuth login. Personal Access Tokens can have scopes just like OAuth tokens do, and are commonly used to give access to command-line tools like the Linode CLI, or when writing your own integrations.

    Type Declaration

    • Readonlycreated: string

      Filterable, Read-only The date and time this token was created.

    • Readonlyexpiry: string

      Read-only When this token will expire. Personal Access Tokens cannot be renewed, so after this time the token will be completely unusable and a new token will need to be generated. Tokens may be created with null as their expiry and will never expire unless revoked.

    • Readonlyid: number

      Read-only This token's unique ID, which can be used to revoke it.

    • label: string

      Filterable This token's label. This is for display purposes only, but can be used to more easily track what you're using each token for.

    • Readonlyscopes: string

      Read-only The scopes this token was created with. These define what parts of the Account the token can be used to access. Many command-line tools, such as the Linode CLI, require tokens with access to *. Tokens with more restrictive scopes are generally more secure.

    • Readonlytoken: string

      Read-only The token used to access the API. When the token is created, the full token is returned here. Otherwise, only the first 16 characters are returned.