Omnara Auth API

The auth API from Omnara — 5 operation(s) for auth.

GitHub OpenAPI

Operations 8

GET /api/v1/auth/pat List Pats #
POST /api/v1/auth/pat Create Pat #
DELETE /api/v1/auth/pat/{pat_id} Delete Pat #
POST /api/v1/auth/sync-user Sync User #
GET /api/v1/auth/session Get Session #
GET /api/v1/auth/me Get Current User Profile #
DELETE /api/v1/auth/me Delete User Account #
PATCH /api/v1/auth/me Update Current User Profile #

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

omnara-com-auth-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Omnara Auth API
  description: UNSTABLE -- This API is under active development. Endpoints, request/response shapes, and authentication requirements may change without notice. Do not build production integrations against these endpoints without contacting the Omnara team first.
  version: 0.1.0-unstable
tags:
- name: Auth
paths:
  /api/v1/auth/pat:
    get:
      tags:
      - Auth
      summary: List Pats
      description: List PATs for the current user.
      operationId: list_pats_api_v1_auth_pat_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                items:
                  $ref: '#/components/schemas/PatSummary'
                type: array
                title: Response List Pats Api V1 Auth Pat Get
      security:
      - HTTPBearer: []
      x-stability: unstable
    post:
      tags:
      - Auth
      summary: Create Pat
      description: Issue a new personal access token for the current user.
      operationId: create_pat_api_v1_auth_pat_post
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreatePatResponse'
      security:
      - HTTPBearer: []
      x-stability: unstable
  /api/v1/auth/pat/{pat_id}:
    delete:
      tags:
      - Auth
      summary: Delete Pat
      description: Delete a PAT owned by the current user.
      operationId: delete_pat_api_v1_auth_pat__pat_id__delete
      security:
      - HTTPBearer: []
      parameters:
      - name: pat_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Pat Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      x-stability: unstable
  /api/v1/auth/sync-user:
    post:
      tags:
      - Auth
      summary: Sync User
      description: 'Sync a user from Supabase to the local database.


        Verifies the requesting user matches the target, then updates the

        display name if it has changed.'
      operationId: sync_user_api_v1_auth_sync_user_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SyncUserRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
      - HTTPBearer: []
      x-stability: unstable
  /api/v1/auth/session:
    get:
      tags:
      - Auth
      summary: Get Session
      description: 'Get the current session info for the authenticated user.


        Returns the user profile if authenticated, otherwise 401.'
      operationId: get_session_api_v1_auth_session_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
      security:
      - HTTPBearer: []
      x-stability: unstable
  /api/v1/auth/me:
    get:
      tags:
      - Auth
      summary: Get Current User Profile
      description: Get the authenticated user's profile.
      operationId: get_current_user_profile_api_v1_auth_me_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UserProfile'
      security:
      - HTTPBearer: []
      x-stability: unstable
    delete:
      tags:
      - Auth
      summary: Delete User Account
      description: 'Delete the current user''s account and all associated data.


        Removes the user from the database (including Stripe subscription

        cancellation) and then from Supabase auth. Returns 207 if the

        database deletion succeeds but the Supabase deletion fails.'
      operationId: delete_user_account_api_v1_auth_me_delete
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
      security:
      - HTTPBearer: []
      x-stability: unstable
    patch:
      tags:
      - Auth
      summary: Update Current User Profile
      description: Update the authenticated user's profile (e.g., display name).
      operationId: update_current_user_profile_api_v1_auth_me_patch
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateProfileRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UserProfile'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
      - HTTPBearer: []
      x-stability: unstable
components:
  schemas:
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    PatSummary:
      properties:
        id:
          type: string
          format: uuid
          title: Id
          description: Unique identifier for the PAT.
        created_at:
          type: string
          title: Created At
          description: ISO-8601 timestamp when the PAT was created.
        last_used_at:
          anyOf:
          - type: string
          - type: 'null'
          title: Last Used At
          description: ISO-8601 timestamp when the PAT was last used, if ever.
      type: object
      required:
      - id
      - created_at
      title: PatSummary
      description: Summary of a personal access token (PAT) without revealing the token value.
    UserProfile:
      properties:
        id:
          type: string
          title: Id
          description: Unique user identifier.
        email:
          type: string
          title: Email
          description: User email address.
        display_name:
          anyOf:
          - type: string
          - type: 'null'
          title: Display Name
          description: User-chosen display name.
        created_at:
          type: string
          title: Created At
          description: ISO-8601 timestamp of account creation.
      type: object
      required:
      - id
      - email
      - created_at
      title: UserProfile
      description: Public profile of the authenticated user.
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
            - type: string
            - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
      - loc
      - msg
      - type
      title: ValidationError
    SyncUserRequest:
      properties:
        id:
          type: string
          title: Id
          description: Supabase user identifier to sync.
        email:
          type: string
          title: Email
          description: Email address from Supabase.
        display_name:
          anyOf:
          - type: string
          - type: 'null'
          title: Display Name
          description: Display name from Supabase profile.
      type: object
      required:
      - id
      - email
      title: SyncUserRequest
      description: Request body for syncing a Supabase user to the local database.
    UpdateProfileRequest:
      properties:
        display_name:
          anyOf:
          - type: string
          - type: 'null'
          title: Display Name
          description: New display name (null to clear).
      type: object
      title: UpdateProfileRequest
      description: Request body for updating the current user's profile.
    CreatePatResponse:
      properties:
        id:
          type: string
          format: uuid
          title: Id
          description: Unique identifier for the PAT.
        created_at:
          type: string
          title: Created At
          description: ISO-8601 timestamp when the PAT was created.
        last_used_at:
          anyOf:
          - type: string
          - type: 'null'
          title: Last Used At
          description: ISO-8601 timestamp when the PAT was last used, if ever.
        token:
          type: string
          title: Token
          description: The raw PAT value. Only returned at creation time.
      type: object
      required:
      - id
      - created_at
      - token
      title: CreatePatResponse
      description: Response returned when a new PAT is created, including the token value shown only once.
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer
x-stability: unstable