joinsandwich-com Auth API

Firebase session helpers used by the website.

Operations 3

GET /api/auth/me Current session identity #
POST /api/auth/session Mint a Sandwich session cookie from a Firebase ID token #
POST /api/auth/signout Clear the Sandwich session cookie #

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

joinsandwich-com-auth-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Sandwich Public Auth API
  version: 1.0.0
  summary: Public care-directory MCP, markdown negotiation, and discovery for joinsandwich.com.
  description: Machine-readable API for the Sandwich marketing and directory site (www.joinsandwich.com). The public MCP is read-only and requires no auth. Private Care Circle tools and OAuth 2.0 live on inbox.lovedone.app (see /.well-known/oauth-authorization-server).
  contact:
    name: Sandwich
    email: hello@joinsandwich.com
    url: https://www.joinsandwich.com/agents
  license:
    name: Proprietary
    url: https://www.joinsandwich.com/terms
servers:
- url: https://www.joinsandwich.com
  description: Production (canonical www host)
- url: https://joinsandwich.com
  description: Apex host (redirects to www)
tags:
- name: Auth
  description: Firebase session helpers used by the website.
paths:
  /api/auth/me:
    get:
      tags:
      - Auth
      operationId: getAuthMe
      summary: Current session identity
      description: Returns authenticated:false with HTTP 200 when no valid session cookie is present.
      responses:
        '200':
          description: Session probe
          content:
            application/json:
              schema:
                type: object
  /api/auth/session:
    post:
      tags:
      - Auth
      operationId: createAuthSession
      summary: Mint a Sandwich session cookie from a Firebase ID token
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - idToken
              properties:
                idToken:
                  type: string
      responses:
        '200':
          description: Session minted or token refresh required
          content:
            application/json:
              schema:
                type: object
        '400':
          $ref: '#/components/responses/ApiError'
        '401':
          $ref: '#/components/responses/ApiError'
        '500':
          $ref: '#/components/responses/ApiError'
  /api/auth/signout:
    post:
      tags:
      - Auth
      operationId: signOutSession
      summary: Clear the Sandwich session cookie
      responses:
        '200':
          description: Signed out
          content:
            application/json:
              schema:
                type: object
components:
  responses:
    ApiError:
      description: Structured JSON error with code, message, and resolution hint
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
  schemas:
    ApiError:
      type: object
      required:
      - error
      - code
      - message
      - hint
      properties:
        error:
          type: object
          required:
          - code
          - message
          - hint
          properties:
            code:
              type: string
              example: NOT_FOUND
            message:
              type: string
            hint:
              type: string
        code:
          type: string
          example: NOT_FOUND
        message:
          type: string
        hint:
          type: string
  securitySchemes:
    firebaseBearer:
      type: http
      scheme: bearer
      bearerFormat: Firebase ID token
      description: Firebase ID token from a signed-in Sandwich user.