Red Hat 3scale Accounts API

Manage developer accounts in the 3scale developer portal

GitHub OpenAPI
Business capability
Developer Platform & API Ecosystem Management BC-4270

Operations 21

POST /admin/api/signup.xml Signup Express (Account Create) #
GET /admin/api/accounts.xml Account List #
GET /admin/api/accounts/{id}.xml Account Read #
PUT /admin/api/accounts/{id}.xml Account Update #
DELETE /admin/api/accounts/{id}.xml Account Delete #
GET /admin/api/accounts/find.xml Account Find #
POST /admin/api/accounts/{account_id}/messages.xml Account Message #
GET /admin/api/accounts/{account_id}/plan.xml Account Fetch Account Plan #
GET /admin/api/accounts/{account_id}/service_contracts.xml [DEPRECATED] Service Subscription List #
DELETE /admin/api/accounts/{account_id}/service_contracts/{id}.xml [DEPRECATED] Service Subscription Delete #
PUT /admin/api/accounts/{id}/approve.xml Account Approve #
PUT /admin/api/accounts/{id}/change_plan.xml Account Change Plan #
PUT /admin/api/accounts/{id}/credit_card.xml Account Set Credit Card #
DELETE /admin/api/accounts/{id}/credit_card.xml Account Delete Credit Card #
PUT /admin/api/accounts/{id}/make_pending.xml Account Reset to Pending #
PUT /admin/api/accounts/{id}/reject.xml Account Reject #
GET /accounts.json List Developer Accounts #
POST /accounts.json Create Developer Account #
GET /accounts/{id}.json Get Developer Account #
PUT /accounts/{id}.json Update Developer Account #
DELETE /accounts/{id}.json Delete Developer Account #

Documentation

Specifications

Schemas & Data

Other Resources

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/red-hat-3scale:red-hat-3scale-accounts-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

red-hat-3scale-accounts-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Account Management Accounts API
  description: API for managing 3scale Admin Portal objects, such as Accounts, Applications, Users, API products, gateway configurations etc.
  version: '1.0'
servers:
- url: /
tags:
- name: Accounts
  description: Manage developer accounts in the 3scale developer portal
paths:
  /admin/api/signup.xml:
    post:
      summary: Signup Express (Account Create)
      description: This request allows you to reproduce a developer sign-up in a single API call. It will create an Account, an Admin User for the account, and optionally an Application with its keys. If the plan_id is not passed, the default plan will be used instead. You can add additional custom parameters in Fields Definition on your Admin Portal.
      tags:
      - Accounts
      requestBody:
        required: true
        description: Custom fields can be specified in the request by adding `&custom-field=value` to the body parameters. See <a href="#model-SignupExpressRequest">SignupExpressRequest</a> schema for the request body definition.
        content:
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/SignupExpressRequest'
      responses:
        default:
          description: success
          content: {}
      operationId: postAdminApiSignupXml
      x-operation-id-source: derived
    servers:
    - url: https://{tenant}-admin.3scale.net
      description: 3scale SaaS host (tenant admin portal for {tenant}); on-premises deployments use their own admin host
      variables:
        tenant:
          default: example
  /admin/api/accounts.xml:
    get:
      summary: Account List
      description: Returns the list of developer accounts (the accounts that consume your API). Filters by state are available and the results can be paginated.
      tags:
      - Accounts
      parameters:
      - name: access_token
        in: query
        description: A personal Access Token
        required: true
        schema:
          type: string
      - name: state
        in: query
        description: Account state.
        schema:
          type: string
          enum:
          - pending
          - approved
          - rejected
      - name: page
        in: query
        description: Page in the paginated list. Defaults to 1.
        schema:
          type: integer
          default: 1
      - name: per_page
        in: query
        description: Number of results per page. Default and max is 500.
        schema:
          type: integer
          default: 500
      responses:
        default:
          description: success
          content: {}
      operationId: getAdminApiAccountsXml
      x-operation-id-source: derived
    servers:
    - url: https://{tenant}-admin.3scale.net
      description: 3scale SaaS host (tenant admin portal for {tenant}); on-premises deployments use their own admin host
      variables:
        tenant:
          default: example
  /admin/api/accounts/{id}.xml:
    get:
      summary: Account Read
      description: Returns a developer account.
      tags:
      - Accounts
      parameters:
      - name: access_token
        in: query
        description: A personal Access Token
        required: true
        schema:
          type: string
      - name: id
        in: path
        description: ID of the account.
        x-data-threescale-name: account_ids
        required: true
        schema:
          type: integer
      responses:
        default:
          description: success
          content: {}
      operationId: getAdminApiAccounts{id}Xml
      x-operation-id-source: derived
    put:
      summary: Account Update
      description: Updates a developer account by ID. You can modify all the fields on the account, including custom fields defined in the fields definition section of your admin portal. Additional fields have to be defined by name and value (i.e &name=value).
      tags:
      - Accounts
      parameters:
      - name: id
        in: path
        description: ID of the account.
        required: true
        schema:
          type: integer
      requestBody:
        required: true
        description: Custom fields can be specified in the request by adding `&custom-field=value` to the body parameters. See <a href="#model-AccountUpdateRequest">AccountUpdateRequest</a> schema for the request body definition.
        content:
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/AccountUpdateRequest'
      responses:
        default:
          description: success
          content: {}
      operationId: putAdminApiAccounts{id}Xml
      x-operation-id-source: derived
    delete:
      summary: Account Delete
      description: Deletes a developer account. Deleting an account removes all users, applications and service subscriptions to the account.
      tags:
      - Accounts
      parameters:
      - name: access_token
        in: query
        description: A personal Access Token
        required: true
        schema:
          type: string
      - name: id
        in: path
        description: ID of the account.
        x-data-threescale-name: account_ids
        required: true
        schema:
          type: integer
      responses:
        default:
          description: success
          content: {}
      operationId: deleteAdminApiAccounts{id}Xml
      x-operation-id-source: derived
    servers:
    - url: https://{tenant}-admin.3scale.net
      description: 3scale SaaS host (tenant admin portal for {tenant}); on-premises deployments use their own admin host
      variables:
        tenant:
          default: example
  /admin/api/accounts/find.xml:
    get:
      summary: Account Find
      description: Find an account by the username or email of its users (username takes precedence over email).
      tags:
      - Accounts
      parameters:
      - name: access_token
        in: query
        description: A personal Access Token
        required: true
        schema:
          type: string
      - name: username
        in: query
        description: Username of the account user.
        schema:
          type: string
      - name: email
        in: query
        description: Email of the account user.
        schema:
          type: string
      - name: user_id
        in: query
        description: ID of the account user.
        x-data-threescale-name: user_ids
        schema:
          type: string
      - name: buyer_provider_key
        in: query
        description: '[Master API] Provider key of the account.'
        schema:
          type: string
      - name: buyer_service_token
        in: query
        description: '[Master API] Service token of the account service.'
        schema:
          type: string
      responses:
        default:
          description: success
          content: {}
      operationId: getAdminApiAccountsFindXml
      x-operation-id-source: derived
    servers:
    - url: https://{tenant}-admin.3scale.net
      description: 3scale SaaS host (tenant admin portal for {tenant}); on-premises deployments use their own admin host
      variables:
        tenant:
          default: example
  /admin/api/accounts/{account_id}/messages.xml:
    post:
      summary: Account Message
      description: Sends a message to the account.
      tags:
      - Accounts
      parameters:
      - name: account_id
        in: path
        description: ID of the account.
        x-data-threescale-name: account_ids
        required: true
        schema:
          type: integer
      requestBody:
        required: true
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                access_token:
                  type: string
                  description: A personal Access Token.
                body:
                  type: string
                  description: Text to send
                subject:
                  type: string
                  description: Subject of the message
              required:
              - access_token
      responses:
        default:
          description: success
          content: {}
      operationId: postAdminApiAccountsByAccountIdMessagesXml
      x-operation-id-source: derived
    servers:
    - url: https://{tenant}-admin.3scale.net
      description: 3scale SaaS host (tenant admin portal for {tenant}); on-premises deployments use their own admin host
      variables:
        tenant:
          default: example
  /admin/api/accounts/{account_id}/plan.xml:
    get:
      summary: Account Fetch Account Plan
      description: Returns the account plan associated to an account.
      tags:
      - Accounts
      parameters:
      - name: access_token
        in: query
        description: A personal Access Token
        required: true
        schema:
          type: string
      - name: account_id
        in: path
        description: ID of the account.
        x-data-threescale-name: account_ids
        required: true
        schema:
          type: integer
      responses:
        default:
          description: success
          content: {}
      operationId: getAdminApiAccountsByAccountIdPlanXml
      x-operation-id-source: derived
    servers:
    - url: https://{tenant}-admin.3scale.net
      description: 3scale SaaS host (tenant admin portal for {tenant}); on-premises deployments use their own admin host
      variables:
        tenant:
          default: example
  /admin/api/accounts/{account_id}/service_contracts.xml:
    get:
      summary: '[DEPRECATED] Service Subscription List'
      description: This endpoint is deprecated, use `GET /admin/api/accounts/{account_id}/service_subscriptions.xml` instead.
      tags:
      - Accounts
      parameters:
      - name: access_token
        in: query
        description: A personal Access Token
        required: true
        schema:
          type: string
      - name: account_id
        in: path
        description: ID of the account.
        x-data-threescale-name: account_ids
        required: true
        schema:
          type: integer
      responses:
        default:
          description: success
          content: {}
      operationId: getAdminApiAccountsByAccountIdServiceContractsXml
      x-operation-id-source: derived
    servers:
    - url: https://{tenant}-admin.3scale.net
      description: 3scale SaaS host (tenant admin portal for {tenant}); on-premises deployments use their own admin host
      variables:
        tenant:
          default: example
  /admin/api/accounts/{account_id}/service_contracts/{id}.xml:
    delete:
      summary: '[DEPRECATED] Service Subscription Delete'
      description: This endpoint is deprecated, use `DELETE /admin/api/accounts/{account_id}/service_subscriptions/{id}.xml` instead.
      tags:
      - Accounts
      parameters:
      - name: access_token
        in: query
        description: A personal Access Token
        required: true
        schema:
          type: string
      - name: account_id
        in: path
        description: ID of the account.
        x-data-threescale-name: account_ids
        required: true
        schema:
          type: integer
      - name: id
        in: path
        description: ID of the service contract.
        required: true
        schema:
          type: integer
      responses:
        default:
          description: success
          content: {}
      operationId: deleteAdminApiAccountsByAccountIdServiceContracts{id}Xml
      x-operation-id-source: derived
    servers:
    - url: https://{tenant}-admin.3scale.net
      description: 3scale SaaS host (tenant admin portal for {tenant}); on-premises deployments use their own admin host
      variables:
        tenant:
          default: example
  /admin/api/accounts/{id}/approve.xml:
    put:
      summary: Account Approve
      description: Approves the account (changes the state to live). Accounts need to be approved explicitly via this API after creation. The state can also be updated by PUT on /admin/api/accounts/{id}.xml
      tags:
      - Accounts
      parameters:
      - name: id
        in: path
        description: ID of the account.
        required: true
        schema:
          type: integer
      requestBody:
        required: true
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                access_token:
                  type: string
                  description: A personal Access Token.
              required:
              - access_token
      responses:
        default:
          description: success
          content: {}
      operationId: putAdminApiAccountsByIdApproveXml
      x-operation-id-source: derived
    servers:
    - url: https://{tenant}-admin.3scale.net
      description: 3scale SaaS host (tenant admin portal for {tenant}); on-premises deployments use their own admin host
      variables:
        tenant:
          default: example
  /admin/api/accounts/{id}/change_plan.xml:
    put:
      summary: Account Change Plan
      description: Changes the account plan for the developer account.
      tags:
      - Accounts
      parameters:
      - name: id
        in: path
        description: ID of the account.
        x-data-threescale-name: account_ids
        required: true
        schema:
          type: integer
      requestBody:
        required: true
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                access_token:
                  type: string
                  description: A personal Access Token.
                plan_id:
                  type: integer
                  description: ID of the target account plan
                  x-data-threescale-name: account_plan_ids
              required:
              - access_token
              - plan_id
      responses:
        default:
          description: success
          content: {}
      operationId: putAdminApiAccountsByIdChangePlanXml
      x-operation-id-source: derived
    servers:
    - url: https://{tenant}-admin.3scale.net
      description: 3scale SaaS host (tenant admin portal for {tenant}); on-premises deployments use their own admin host
      variables:
        tenant:
          default: example
  /admin/api/accounts/{id}/credit_card.xml:
    put:
      summary: Account Set Credit Card
      description: Associates credit card tokens and billing address to an account. This operation is only required if you use your own credit card capture method. These tokens are the ones required by Authorize.net, braintree, payment express and merchant e solutions
      tags:
      - Accounts
      parameters:
      - name: id
        in: path
        description: ID of the account.
        x-data-threescale-name: account_ids
        required: true
        schema:
          type: integer
      requestBody:
        description: Account Set Credit Card
        required: true
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                access_token:
                  type: string
                  description: A personal Access Token.
                credit_card_token:
                  type: string
                  description: Token used by the payment gateway to identify the buyer, customer profile ID (Authorize.net), customer ID (Braintree and Stripe). Some payment gateways may store more than one card under the same buyer reference and/or require an additional identifier for recurring payment. If you are using Braintree, there is no need for additional identifier -- the first credit card available will always be charged. For Authorize.net, see `credit_card_authorize_net_payment_profile_token`. For Stripe, `payment_method_id` must also be set.
                credit_card_authorize_net_payment_profile_token:
                  type: string
                  description: Additional reference provided by the payment gateway to identify a specific card under the same buyer reference. For Authorize.net, you MUST fill with the 'Payment profile token'
                credit_card_expiration_year:
                  type: string
                  description: Year of expiration of credit card. Two digit number
                credit_card_expiration_month:
                  type: string
                  description: Month of expiration of credit card. Two digit number
                billing_address_name:
                  type: string
                  description: Name of the person/company to bill
                billing_address_address:
                  type: string
                  description: Address associated to the credit card
                billing_address_city:
                  type: string
                  description: Billing address city
                billing_address_country:
                  type: string
                  description: Billing address country
                billing_address_state:
                  type: string
                  description: Billing address state
                billing_address_phone:
                  type: string
                  description: Billing address phone
                billing_address_zip:
                  type: string
                  description: Billing address ZIP Code
                credit_card_partial_number:
                  type: string
                  description: Last four digits on the credit card
                payment_method_id:
                  type: string
                  description: The Payment Method ID from the payment gateway. Required for Stripe (e.g. pm_xxxxxxxxxxxxxxxx).
              required:
              - access_token
              - credit_card_token
              - credit_card_expiration_year
              - credit_card_expiration_month
              - billing_address_name
              - billing_address_address
              - billing_address_city
              - billing_address_country
      responses:
        default:
          description: success
          content: {}
      operationId: putAdminApiAccountsByIdCreditCardXml
      x-operation-id-source: derived
    delete:
      summary: Account Delete Credit Card
      description: Removes all credit card info of an account.
      tags:
      - Accounts
      parameters:
      - name: access_token
        in: query
        description: A personal Access Token
        required: true
        schema:
          type: string
      - name: id
        in: path
        description: ID of the account.
        x-data-threescale-name: account_ids
        required: true
        schema:
          type: integer
      responses:
        default:
          description: success
          content: {}
      operationId: deleteAdminApiAccountsByIdCreditCardXml
      x-operation-id-source: derived
    servers:
    - url: https://{tenant}-admin.3scale.net
      description: 3scale SaaS host (tenant admin portal for {tenant}); on-premises deployments use their own admin host
      variables:
        tenant:
          default: example
  /admin/api/accounts/{id}/make_pending.xml:
    put:
      summary: Account Reset to Pending
      description: Resets the state of the account to pending so that it can be approved or rejected again.
      tags:
      - Accounts
      parameters:
      - name: id
        in: path
        description: ID of the account.
        x-data-threescale-name: account_ids
        required: true
        schema:
          type: integer
      requestBody:
        required: true
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                access_token:
                  type: string
                  description: A personal Access Token.
              required:
              - access_token
      responses:
        default:
          description: success
          content: {}
      operationId: putAdminApiAccountsByIdMakePendingXml
      x-operation-id-source: derived
    servers:
    - url: https://{tenant}-admin.3scale.net
      description: 3scale SaaS host (tenant admin portal for {tenant}); on-premises deployments use their own admin host
      variables:
        tenant:
          default: example
  /admin/api/accounts/{id}/reject.xml:
    put:
      summary: Account Reject
      description: Rejects the account (changes the state to rejected). An account can be rejected after creation, the workflow for account creation can have a validation process that ends in approving or rejecting the account submission. The state can also be updated by PUT on /admin/api/accounts/{id}.xml
      tags:
      - Accounts
      parameters:
      - name: id
        in: path
        description: ID of the account.
        required: true
        schema:
          type: integer
      requestBody:
        required: true
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                access_token:
                  type: string
                  description: A personal Access Token.
              required:
              - access_token
      responses:
        default:
          description: success
          content: {}
      operationId: putAdminApiAccountsByIdRejectXml
      x-operation-id-source: derived
    servers:
    - url: https://{tenant}-admin.3scale.net
      description: 3scale SaaS host (tenant admin portal for {tenant}); on-premises deployments use their own admin host
      variables:
        tenant:
          default: example
  /accounts.json:
    get:
      operationId: listAccounts
      summary: List Developer Accounts
      description: Returns a list of developer accounts in the 3scale admin portal. Supports filtering by state (approved, pending, rejected) and pagination with per_page and page parameters.
      tags:
      - Accounts
      parameters:
      - $ref: '#/components/parameters/accessToken'
      - name: state
        in: query
        description: Filter accounts by state
        schema:
          type: string
          enum:
          - approved
          - pending
          - rejected
      - name: page
        in: query
        description: Page number for pagination
        schema:
          type: integer
          default: 1
      - name: per_page
        in: query
        description: Number of results per page (max 500)
        schema:
          type: integer
          default: 20
      responses:
        '200':
          description: List of accounts returned
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AccountList'
      security:
      - provider_key: []
    post:
      operationId: createAccount
      summary: Create Developer Account
      description: Creates a new developer account in the 3scale developer portal. The account requires an organization name and a user with email and password. The account state defaults to pending unless auto-approval is enabled.
      tags:
      - Accounts
      requestBody:
        required: true
        content:
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/CreateAccountRequest'
      responses:
        '201':
          description: Account created successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Account'
        '422':
          description: Validation error
      security:
      - provider_key: []
    servers:
    - url: https://{domain}-admin.3scale.net/admin/api
      description: 3scale Account Management API
      variables:
        domain:
          default: your-domain
          description: Your 3scale tenant domain
  /accounts/{id}.json:
    get:
      operationId: getAccount
      summary: Get Developer Account
      description: Returns the details of a specific developer account by ID.
      tags:
      - Accounts
      parameters:
      - $ref: '#/components/parameters/accessToken'
      - name: id
        in: path
        required: true
        description: The ID of the account
        schema:
          type: integer
      responses:
        '200':
          description: Account details returned
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Account'
        '404':
          description: Account not found
      security:
      - provider_key: []
    put:
      operationId: updateAccount
      summary: Update Developer Account
      description: Updates the details of a specific developer account.
      tags:
      - Accounts
      parameters:
      - $ref: '#/components/parameters/accessToken'
      - name: id
        in: path
        required: true
        description: The ID of the account
        schema:
          type: integer
      requestBody:
        required: true
        content:
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/UpdateAccountRequest'
      responses:
        '200':
          description: Account updated successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Account'
        '404':
          description: Account not found
      security:
      - provider_key: []
    delete:
      operationId: deleteAccount
      summary: Delete Developer Account
      description: Deletes a developer account and all associated applications.
      tags:
      - Accounts
      parameters:
      - $ref: '#/components/parameters/accessToken'
      - name: id
        in: path
        required: true
        description: The ID of the account to delete
        schema:
          type: integer
      responses:
        '200':
          description: Account deleted successfully
        '404':
          description: Account not found
      security:
      - provider_key: []
    servers:
    - url: https://{domain}-admin.3scale.net/admin/api
      description: 3scale Account Management API
      variables:
        domain:
          default: your-domain
          description: Your 3scale tenant domain
components:
  schemas:
    AccountUpdateRequest:
      type: object
      properties:
        access_token:
          type: string
          description: A personal Access Token.
        org_name:
          type: string
          description: Organization name of the account.
        monthly_billing_enabled:
          type: boolean
          description: Updates monthly billing status.
        monthly_charging_enabled:
          type: boolean
          description: Updates monthly charging status.
      required:
      - access_token
      additionalProperties:
        type: string
    SignupExpressRequest:
      type: object
      properties:
        access_token:
          type: string
          description: A personal Access Token.
        org_name:
          type: string
          description: Organization Name of the developer account.
        username:
          type: string
          description: Username of the admin user (on the new developer account).
        email:
          type: string
          description: Email of the admin user.
        password:
          type: string
          description: Password of the admin user.
        account_plan_id:
          type: integer
          description: ID of the account plan (if not assigned default will be used instead).
          x-data-threescale-name: account_plan_ids
        service_plan_id:
          type: integer
          description: ID of the service plan (if not assigned default will be used instead).
          x-data-threescale-name: service_plan_ids
        application_plan_id:
          type: integer
          description: ID of the application plan (if not assigned default will be used instead).
          x-data-threescale-name: application_plan_ids
      additionalProperties:
        type: string
      required:
      - access_token
      - org_name
      - username
      - email
      - password
    CreateAccountRequest:
      type: object
      required:
      - org_name
      - username
      - email
      - password
      properties:
        org_name:
          type: string
        username:
          type: string
        email:
          type: string
          format: email
        password:
          type: string
    AccountList:
      type: object
      properties:
        accounts:
          type: array
          items:
            $ref: '#/components/schemas/Account'
    Account:
      type: object
      properties:
        id:
          type: integer
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
        state:
          type: string
          enum:
          - approved
          - pending
          - rejected
        org_name:
          type: string
          description: Organization name
        extra_fields:
          type: object
          additionalProperties: true
        links:
          type: array
          items:
            type: object
    UpdateAccountRequest:
      type: object
      properties:
        org_name:
          type: string
        extra_fields:
          type: object
  parameters:
    accessToken:
      name: access_token
      in: query
      required: true
      description: Admin API access token
      schema:
        type: string
  securitySchemes:
    provider_key:
      type: apiKey
      in: query
      name: access_token