Monetate Token API

API methods for manipulating tokens.

Operations 1

GET /refresh/ Refresh a Token

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/monetate-token-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no email required.

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

OpenAPI Specification

monetate-token-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Monetate Auth Token API
  description: 'The Monetate Auth API allows you to manage tokens on a per—user key basis.


    Using this API, you can request a token with a fixed expiration. It''s returned in a successful (200) response in the ''token'' key-value pair in the ''data'' object.


    The ''data'' object also contains information about the token''s expiration. The value of ''expires_in'' is the number of seconds until the token expires, which always matches the value of ''ttl'' that you passed in the request. The value of ''expires_at'' is the timestamp in seconds since epoch for when the token expires.


    This token is associated with a public key you uploaded to Monetate and may be revoked by deactivating said key.'
  version: v1
servers:
- url: https://api.monetate.net/api/auth/v0
security:
- JWTAuthentication: []
tags:
- name: Token
  description: API methods for manipulating tokens.
paths:
  /refresh/:
    get:
      tags:
      - Token
      summary: Refresh a Token
      description: "Request to refresh a token for use in token authentication.\n\nThis endpoint has no request body, but requires authentication using a signed JWT. For example, in Python using the PyJWT library:\n\n    import jwt\n    import requests\n    import time\n\n    private_key = \"== SECRET RSA KEY ==\"\n\n    payload = jwt.encode({\n        'username': 'api-xxx-yourname',\n        'iat': time.time()\n    }, private_key, algorithm='RS256')\n\n    authorization = \"JWT {}\".format(payload)\n    requests.get(refresh_url, headers={'Authorization': authorization})\n\nThe JWT should contain the username associated with the key and the creation time. The private key must be associated with an uploaded, active public key. The JWT must be encoded with one of the following algorithms:\n\n* `RS256`\n* `RS384`\n* `RS512`\n\nIssuing this request provides a token which is valid until the indicated expiration time. The default time until expiration (of 1 hour) can be manually set by passing a `ttl` query parameter with the request. Valid values are in the inclusive range of 15 minutes to 12 hours.\n\nIssuing this request does not cause any previously issued tokens to expire, they will continue to function.\n\nTo revoke a token prior to expiration, you must deactivate the public key associated with the token."
      parameters:
      - name: ttl
        in: query
        description: The number of seconds until the requested token expires.
        schema:
          maximum: 43200
          minimum: 600
          type: integer
          default: 3600
      responses:
        '200':
          description: The token was successfully generated.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TokenRefreshResponse'
        '401':
          description: "Unauthorized. \n\nThe request did not include a token, or the token provided was invalid. Please ensure that your token is correct and that the Authorization header is properly formatted."
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Response'
        '403':
          description: 'Forbidden.


            The request included a token that has been revoked. Please contact your account administrator to generate a new token.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Response'
        '500':
          description: 'Unknown error.


            Please try again or contact your account manager for more information.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Response'
components:
  schemas:
    ResponseMeta:
      required:
      - code
      type: object
      properties:
        code:
          type: integer
          description: The http response code for this response.
          example: 200
        errors:
          type: array
          description: A list of errors associated with this response.
          example: []
          items:
            type: object
            additionalProperties: true
        warnings:
          type: array
          description: A list of warnings associated with this response.
          example: []
          items:
            type: object
            additionalProperties: true
    TokenRefreshResponse:
      required:
      - data
      - meta
      type: object
      properties:
        meta:
          $ref: '#/components/schemas/ResponseMeta'
        data:
          $ref: '#/components/schemas/TokenRefresh'
    Response:
      required:
      - data
      - meta
      type: object
      properties:
        meta:
          $ref: '#/components/schemas/ResponseMeta'
        data:
          $ref: '#/components/schemas/ResponseAnyData'
    TokenRefresh:
      type: object
      properties:
        issued_at:
          type: number
          description: The timestamp, in seconds since epoch, when the token was issued.
          example: 1481650253.342885
        token:
          type: string
          description: The token to pass to Monetate APIs using token authentication.
          example: 1.lM45vLVwAc5YUD5dAw.XATBdkXQI3Bf7_043j88ScWrzfkzvWcUGRknzkEK7fU
        expires_in:
          type: integer
          description: The number seconds until this token expires, always matches the `ttl` you passed when requesting a new token.
          example: 1000
        expires_at:
          type: number
          description: The timestamp, in seconds since epoch, when the token will expire.
          example: 1481650253.342885
    ResponseAnyData:
      type: object
      additionalProperties: true
  securitySchemes:
    JWTAuthentication:
      type: apiKey
      description: Requests to this API are signed JWT tokens. For more information on JSON Web Tokens (JWT), see https://jwt.io/introduction/.
      name: Authorization
      in: header
x-original-swagger-version: '2.0'