WeFitter token API

Before any calls can be made to wefitter, BasicAuth is needed to verify the identity of the requesting party. This call will result into a Bearer token which has administrator privileges and is valid for 1 day. This token can be used to create profiles, challenges, etc. The returned bearer is a JWT (JSON Web Token).

Operations 1

POST /token/ Create 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/wefitter-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

wefitter-token-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: WeFitter app Token API
  description: This is the WeFitter API
  termsOfService: https://www.wefitter.com/privacy/
  contact:
    email: hello@wefitter.com
  license:
    name: BSD License
  version: v1.3
servers:
- url: https://api.wefitter.com/api/v1.3
security:
- BearerProfile: []
tags:
- name: token
  description: '

    <p>

    Before any calls can be made to wefitter, BasicAuth is needed to verify the identity of the requesting party.

    This call will result into a Bearer token which has administrator privileges and is valid for 1 day.

    This token can be used to create profiles, challenges, etc.

    </p>


    <p>

    The returned bearer is a JWT (<a href="https://en.wikipedia.org/wiki/JSON_Web_Token">JSON Web Token</a>).

    </p>

    '
paths:
  /token/:
    parameters: []
    post:
      operationId: token_create
      summary: Create Token
      description: "\nIn order to create a token, perform a POST request to this endpoint, example:<br/>\n<table><tbody>\n    <tr><td>Application ID</td><td>123</td></tr>\n    <tr><td>Application Secret</td><td>ABC</td></tr>\n    <tr><td>Authorization header format</td><td>Authorization: base64(app_id:app_secret)</td></tr>\n    <tr><td>Expected result</td><td>Authorization: MTIzOkFCQw==</td></tr>\n</tbody></table>\nFor testing purposes, a CURL can be used:\n<pre>\ncurl -X POST -H \"Authorization: Basic MTIzOkFCQw==\" https://api.wefitter.com/api/v1.3/token/\n# alternatively\ncurl -X POST --user 123:ABC https://api.wefitter.com/api/v1.3/token/\n</pre>\n\nThe response to a successful request should look like this:\n<pre>\n{\n    \"bearer\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOiIxNTY2NTYxMzk2IiwiaWF0IjoxNTE2MjM5MDIyfQ.14x12h5VMJjAV2kFB5cCrfFmZhryBAYGk9N-vhyDl00\"\n}\n</pre>\n"
      responses:
        '201':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Token'
      tags:
      - token
      security:
      - Basic: []
      deprecated: false
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Token'
        required: true
components:
  schemas:
    Token:
      type: object
      properties:
        bearer:
          title: Bearer
          type: string
          readOnly: true
          minLength: 1
  securitySchemes:
    Basic:
      type: http
      scheme: basic
      description: 'Basic Authentication is used to create administrator bearer tokens.


        Once a bearer token has been made, remove this auth. (''logout'' in Swagger'')'
    BearerProfile:
      type: apiKey
      name: Authorization
      in: header
      description: 'Bearer authentication for logged-in profiles.


        When using the GUI, please don''t forget to prefix your bearer tokens with the text ''bearer'', followed by a space.'
    BearerAdmin:
      type: apiKey
      name: Authorization
      in: header
      description: 'Bearer authentication for administrators.


        When using the GUI, please don''t forget to prefix your bearer tokens with the text ''bearer'', followed by a space.'