pricklymails-com Sessions API

The authenticated user's active sessions.

Operations 2

GET /api/users/me/sessions Lists the caller's active sessions #
DELETE /api/users/me/sessions/{uuid} Revokes one of the caller's sessions, which also invalidates its refresh 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/pricklymails-com:pricklymails-com-sessions-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

pricklymails-com-sessions-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Pricklymails Com Sessions API
  version: 0.9.0
  contact:
    email: support@pricklymails.com
  license:
    name: Proprietary
  description: 'Operations tagged sessions across 2 of this provider''s published API definitions: pricklymails-com-openapi.json, pricklymails-com-openapi.yaml. Each path carries the servers of the definition it was published in.'
tags:
- name: Sessions
  description: The authenticated user's active sessions.
paths:
  /api/users/me/sessions:
    get:
      tags:
      - Sessions
      summary: Lists the caller's active sessions
      operationId: list_sessions
      responses:
        '200':
          description: Active sessions for the caller, newest first.
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/SessionResponse'
        '401':
          description: Missing or invalid JWT.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorBody'
      security:
      - jwt: []
  /api/users/me/sessions/{uuid}:
    delete:
      tags:
      - Sessions
      summary: Revokes one of the caller's sessions, which also invalidates its refresh token
      operationId: revoke_session
      parameters:
      - name: uuid
        in: path
        description: Public UUID of the session to revoke.
        required: true
        schema:
          type: string
      responses:
        '204':
          description: Session revoked.
        '400':
          description: Malformed session UUID.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorBody'
        '401':
          description: Missing or invalid JWT.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorBody'
        '403':
          description: Session does not belong to the caller.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorBody'
        '404':
          description: No session with this UUID.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorBody'
      security:
      - jwt: []
components:
  schemas:
    SessionResponse:
      type: object
      description: Public representation of a session.
      required:
      - uuid
      - last_active_at
      - created_at
      - current
      properties:
        created_at:
          type: string
          description: When the session was created (ISO 8601).
        current:
          type: boolean
          description: Whether this is the session the request's access token belongs to.
        device_name:
          type:
          - string
          - 'null'
          description: Device name, if set.
        ip_address:
          type:
          - string
          - 'null'
          description: IP address of the session origin.
        last_active_at:
          type: string
          description: When the session was last active (ISO 8601).
        user_agent:
          type:
          - string
          - 'null'
          description: User agent of the session origin.
        uuid:
          type: string
          description: Public UUID.
    ApiErrorDetail:
      type: object
      description: Detail of an error response.
      required:
      - code
      properties:
        code:
          type: string
          description: Stable key identifying the error (for example `"verify.invalid_uuid"`). Clients localize by this key.
        message:
          type:
          - string
          - 'null'
          description: 'Present on most error kinds and equal to `code`; the API returns no localized text.

            Absent for error kinds that carry no extra detail.'
    ApiErrorBody:
      type: object
      description: 'Error envelope returned with every non-success status: `{ "error": { "code", "message" } }`.'
      required:
      - error
      properties:
        error:
          $ref: '#/components/schemas/ApiErrorDetail'
          description: Error detail.
  securitySchemes:
    bearer_api_key:
      type: http
      scheme: bearer
      description: A `pm_live_*` or `pm_test_*` API key.
    jwt:
      type: http
      scheme: bearer
      description: A short-lived token from `/api/auth/login`, or `/oauth/token` for an agent.
x-refined-from:
- pricklymails-com-openapi.json
- pricklymails-com-openapi.yaml