Linkwarden Tokens API

The Tokens API from Linkwarden — 2 operation(s) for tokens.

Operations 3

GET /api/v1/tokens Get a list of tokens #
POST /api/v1/tokens Create a new token #
DELETE /api/v1/tokens/{id} Revoke 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/linkwarden:linkwarden-tokens-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 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. See our Privacy Policy and Terms.

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

OpenAPI Specification

linkwarden-tokens-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  description: Linkwarden OpenAPI Documentation.
  version: 1.0.0
  title: Introduction Tokens API
  license:
    name: GNU Affero General Public License v3.0
    url: https://www.gnu.org/licenses/agpl-3.0.html
tags:
- name: Tokens
paths:
  /api/v1/tokens:
    get:
      security:
      - bearerAuth: []
      tags:
      - Tokens
      summary: Get a list of tokens
      description: Retrieves a list of all tokens associated with the authenticated user.
      operationId: getTokens
      responses:
        '200':
          description: Successfully retrieved list of tokens.
          content:
            application/json:
              schema:
                type: object
                properties:
                  response:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: integer
                        name:
                          type: string
                        isSession:
                          type: boolean
                        expires:
                          type: string
                          format: date-time
                        createdAt:
                          type: string
                          format: date-time
        '401':
          $ref: '#/components/responses/Unauthorized'
    post:
      security:
      - bearerAuth: []
      tags:
      - Tokens
      summary: Create a new token
      description: Creates a new token with the specified name and expiry.
      operationId: createToken
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - name
              - expires
              properties:
                name:
                  type: string
                  description: Name of the token.
                expires:
                  type: integer
                  description: Expiry duration in seconds. Use 0 for no expiry.
      responses:
        '200':
          description: Token successfully created.
          content:
            application/json:
              schema:
                type: object
                properties:
                  response:
                    type: object
                    properties:
                      secretKey:
                        type: string
                        description: The secret key for the token.
                      token:
                        type: object
                        properties:
                          id:
                            type: integer
                          name:
                            type: string
                          userId:
                            type: integer
                          token:
                            type: string
                          revoked:
                            type: boolean
                          isSession:
                            type: boolean
                          expires:
                            type: string
                            format: date-time
                          lastUsedAt:
                            type:
                            - string
                            - 'null'
                            format: date-time
                          createdAt:
                            type: string
                            format: date-time
                          updatedAt:
                            type: string
                            format: date-time
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
  /api/v1/tokens/{id}:
    delete:
      tags:
      - Tokens
      summary: Revoke a token
      description: Revokes a token by its ID.
      operationId: revokeToken
      parameters:
      - name: id
        in: path
        description: ID of the token to revoke
        required: true
        schema:
          type: integer
      responses:
        '200':
          description: Successfully revoked the token.
          content:
            application/json:
              schema:
                type: object
                properties:
                  response:
                    type: object
                    properties:
                      id:
                        type: integer
                      name:
                        type: string
                      userId:
                        type: integer
                      token:
                        type: string
                      revoked:
                        type: boolean
                      isSession:
                        type: boolean
                      expires:
                        type: string
                        format: date-time
                      lastUsedAt:
                        type: string
                        format: date-time
                      createdAt:
                        type: string
                        format: date-time
                      updatedAt:
                        type: string
                        format: date-time
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
components:
  responses:
    Unauthorized:
      description: Unauthorized
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    BadRequest:
      description: Bad request error.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
  schemas:
    ErrorResponse:
      type: object
      properties:
        response:
          type: string
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT