Turink Auth Controller API

The auth-controller API from Turink — 8 operation(s) for auth-controller.

GitHub OpenAPI

Operations 8

POST /api/v1/auth/withdraw Withdraw #
POST /api/v1/auth/register Register #
POST /api/v1/auth/refresh Refresh #
POST /api/v1/auth/me/password Change password #
POST /api/v1/auth/me/language Update language #
POST /api/v1/auth/logout Logout #
POST /api/v1/auth/login Login #
GET /api/v1/auth/me Me #

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/turink-com:turink-com-auth-controller-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

turink-com-auth-controller-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: PostMD Auth Controller API
  description: 'Markdown documents published as web pages.


    Publishing, reading, and changing or deleting a document that has no password need no credential. A document with a password takes it in the `X-Document-Password` header. An API key, issued from the web app and sent as `Authorization: Bearer pmk_...`, makes the documents it publishes its owner''s and is needed for groups, notes and a member''s own lists. Each operation below says which applies.


    A document code forms two addresses: `/d/{docCode}` is the viewer a person opens, `/share/{docCode}` is the address to hand out because it carries the title in link previews. Neither returns the document to a caller that does not run scripts: the viewer returns a service notice and the share address a short page holding only the title. The document itself comes from `GET /api/v1/documents/{docCode}/raw`.


    A document can be revised in edit mode, where the server holds a working copy that readers do not see until it is applied.


    This specification covers the endpoints only. What the service can do and which page describes each thing is listed at `/llms.txt`. One capability is not an endpoint at all: a document can carry graph data inside its markdown, described at `/docs/graph`.'
  version: v1
servers:
- url: https://postmd.turink.com
  description: Generated server url
tags:
- name: auth-controller
paths:
  /api/v1/auth/withdraw:
    post:
      tags:
      - auth-controller
      operationId: withdraw
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/WithdrawRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            '*/*':
              schema:
                $ref: '#/components/schemas/ApiResponseVoid'
      security:
      - apiKey: []
      summary: Withdraw
      x-summary-source: derived
  /api/v1/auth/register:
    post:
      tags:
      - auth-controller
      operationId: register
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RegisterRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            '*/*':
              schema:
                $ref: '#/components/schemas/ApiResponseMemberSummary'
      summary: Register
      x-summary-source: derived
  /api/v1/auth/refresh:
    post:
      tags:
      - auth-controller
      operationId: refresh
      responses:
        '200':
          description: OK
          content:
            '*/*':
              schema:
                $ref: '#/components/schemas/ApiResponseTokenResponse'
      summary: Refresh
      x-summary-source: derived
  /api/v1/auth/me/password:
    post:
      tags:
      - auth-controller
      operationId: changePassword
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ChangePasswordRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            '*/*':
              schema:
                $ref: '#/components/schemas/ApiResponseVoid'
      security:
      - apiKey: []
      summary: Change password
      x-summary-source: derived
  /api/v1/auth/me/language:
    post:
      tags:
      - auth-controller
      operationId: updateLanguage
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/LanguageRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            '*/*':
              schema:
                $ref: '#/components/schemas/ApiResponseMemberSummary'
      security:
      - apiKey: []
      summary: Update language
      x-summary-source: derived
  /api/v1/auth/logout:
    post:
      tags:
      - auth-controller
      operationId: logout
      parameters:
      - name: allDevices
        in: query
        required: false
        schema:
          type: boolean
          default: false
      responses:
        '200':
          description: OK
          content:
            '*/*':
              schema:
                $ref: '#/components/schemas/ApiResponseVoid'
      security:
      - apiKey: []
      summary: Logout
      x-summary-source: derived
  /api/v1/auth/login:
    post:
      tags:
      - auth-controller
      operationId: login
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/LoginRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            '*/*':
              schema:
                $ref: '#/components/schemas/ApiResponseLoginResponse'
      summary: Login
      x-summary-source: derived
  /api/v1/auth/me:
    get:
      tags:
      - auth-controller
      operationId: me
      responses:
        '200':
          description: OK
          content:
            '*/*':
              schema:
                $ref: '#/components/schemas/ApiResponseMemberSummary'
      security:
      - apiKey: []
      summary: Me
      x-summary-source: derived
components:
  schemas:
    ChangePasswordRequest:
      type: object
      properties:
        currentPassword:
          type: string
          minLength: 1
        newPassword:
          type: string
          maxLength: 100
          minLength: 8
      required:
      - currentPassword
      - newPassword
    LoginRequest:
      type: object
      properties:
        email:
          type: string
          format: email
          minLength: 1
        password:
          type: string
          minLength: 1
        trustThisDevice:
          type: boolean
      required:
      - email
      - password
    ApiResponseTokenResponse:
      type: object
      properties:
        resultCode:
          type: string
        message:
          type: string
        pagination:
          $ref: '#/components/schemas/Pagination'
        data:
          $ref: '#/components/schemas/TokenResponse'
    Pagination:
      type: object
      properties:
        totalItemCount:
          type: integer
          format: int64
        pageItemCount:
          type: integer
          format: int32
        pageNo:
          type: integer
          format: int32
    WithdrawRequest:
      type: object
      properties:
        password:
          type: string
          minLength: 1
      required:
      - password
    RegisterRequest:
      type: object
      properties:
        email:
          type: string
          format: email
          minLength: 1
        password:
          type: string
          maxLength: 100
          minLength: 8
        name:
          type: string
          maxLength: 100
          minLength: 0
        language:
          type: string
      required:
      - email
      - name
      - password
    LoginResponse:
      type: object
      properties:
        accessToken:
          type: string
        accessTokenExpiresIn:
          type: integer
          format: int64
        member:
          $ref: '#/components/schemas/MemberSummary'
    MemberSummary:
      type: object
      properties:
        memberId:
          type: integer
          format: int64
        email:
          type: string
        name:
          type: string
        preferredLanguage:
          type: string
    ApiResponseVoid:
      type: object
      properties:
        resultCode:
          type: string
        message:
          type: string
        pagination:
          $ref: '#/components/schemas/Pagination'
        data: {}
    LanguageRequest:
      type: object
      properties:
        language:
          type: string
          minLength: 1
      required:
      - language
    TokenResponse:
      type: object
      properties:
        accessToken:
          type: string
        accessTokenExpiresIn:
          type: integer
          format: int64
    ApiResponseMemberSummary:
      type: object
      properties:
        resultCode:
          type: string
        message:
          type: string
        pagination:
          $ref: '#/components/schemas/Pagination'
        data:
          $ref: '#/components/schemas/MemberSummary'
    ApiResponseLoginResponse:
      type: object
      properties:
        resultCode:
          type: string
        message:
          type: string
        pagination:
          $ref: '#/components/schemas/Pagination'
        data:
          $ref: '#/components/schemas/LoginResponse'
  securitySchemes:
    apiKey:
      type: http
      description: 'API key issued from the web app. The value starts with `pmk_` and is shown once at creation.


        Scopes are independent: `documents:write` does not grant `documents:read`.'
      scheme: bearer