Patricia Identities API

The identities API from Patricia — 6 operation(s) for identities.

GitHub OpenAPI

Operations 6

GET /v1/me/identities List my linked accounts #
POST /v1/me/identities/link-url-independent/microsoft Start a company-independent Microsoft account link #
POST /v1/me/identities/link-url-independent/slack Start a company-independent Slack account link #
POST /v1/me/identities/microsoft/link-url Start linking a Microsoft account #
POST /v1/me/identities/slack/link-url Start linking a Slack account #
DELETE /v1/me/identities/{identity_id} Unlink one of my accounts #

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/patricia-app:patricia-app-identities-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

patricia-app-identities-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Patricia Identities API
  version: 0.1.0
tags:
- name: Identities
paths:
  /v1/me/identities:
    get:
      tags:
      - Identities
      summary: List my linked accounts
      description: Every federated credential the signed-in teammate holds, removed ones included.
      operationId: list_my_identities_v1_me_identities_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LinkedIdentityListResponse'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '403':
          description: 'Forbidden. Inspect response body `code` for the specific reason (for example: PERMISSION_DENIED, EMAIL_NOT_VERIFIED, TENANT_ACCESS_REQUIRED, ROLE_UNRESOLVED)'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '422':
          description: Validation error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
      - HTTPBearer: []
  /v1/me/identities/link-url-independent/microsoft:
    post:
      tags:
      - Identities
      summary: Start a company-independent Microsoft account link
      description: 'Begin a link from a user session without selecting a company.


        A contextual check returns linked or unlinked without starting a sign-in.'
      operationId: mint_microsoft_workspace_link_url_v1_me_identities_link_url_independent_microsoft_post
      requestBody:
        content:
          application/json:
            schema:
              anyOf:
              - $ref: '#/components/schemas/ContextualMemberLinkRequest'
              - type: 'null'
              title: Body
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                anyOf:
                - $ref: '#/components/schemas/MemberLinkUrlResponse'
                - $ref: '#/components/schemas/AccountLinkStatusResponse'
                title: Response Mint Microsoft Workspace Link Url V1 Me Identities Link Url Independent Microsoft Post
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '403':
          description: 'Forbidden. Inspect response body `code` for the specific reason (for example: PERMISSION_DENIED, EMAIL_NOT_VERIFIED, TENANT_ACCESS_REQUIRED, ROLE_UNRESOLVED)'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '409':
          description: Conflict
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '422':
          description: Validation error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
      - HTTPBearer: []
  /v1/me/identities/link-url-independent/slack:
    post:
      tags:
      - Identities
      summary: Start a company-independent Slack account link
      description: 'Begin a link from a user session without selecting a company.


        A contextual check returns linked or unlinked without starting a sign-in.'
      operationId: mint_independent_link_url_v1_me_identities_link_url_independent_slack_post
      requestBody:
        content:
          application/json:
            schema:
              anyOf:
              - $ref: '#/components/schemas/ContextualMemberLinkRequest'
              - type: 'null'
              title: Body
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                anyOf:
                - $ref: '#/components/schemas/MemberLinkUrlResponse'
                - $ref: '#/components/schemas/AccountLinkStatusResponse'
                title: Response Mint Independent Link Url V1 Me Identities Link Url Independent Slack Post
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '403':
          description: 'Forbidden. Inspect response body `code` for the specific reason (for example: PERMISSION_DENIED, EMAIL_NOT_VERIFIED, TENANT_ACCESS_REQUIRED, ROLE_UNRESOLVED)'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '409':
          description: Conflict
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '422':
          description: Validation error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
      - HTTPBearer: []
  /v1/me/identities/microsoft/link-url:
    post:
      tags:
      - Identities
      summary: Start linking a Microsoft account
      description: Mint a Microsoft sign-in URL that proves the signed-in teammate's own Entra identity, and set the short-lived browser cookie the callback requires. A contextual check returns linked or unlinked without starting a sign-in.
      operationId: mint_microsoft_link_url_v1_me_identities_microsoft_link_url_post
      security:
      - HTTPBearer: []
      parameters:
      - name: X-Tenant-Id
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Tenant-Id
      requestBody:
        content:
          application/json:
            schema:
              anyOf:
              - $ref: '#/components/schemas/ContextualMemberLinkRequest'
              - type: 'null'
              title: Body
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                anyOf:
                - $ref: '#/components/schemas/MemberLinkUrlResponse'
                - $ref: '#/components/schemas/AccountLinkStatusResponse'
                title: Response Mint Microsoft Link Url V1 Me Identities Microsoft Link Url Post
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '403':
          description: 'Forbidden. Inspect response body `code` for the specific reason (for example: PERMISSION_DENIED, EMAIL_NOT_VERIFIED, TENANT_ACCESS_REQUIRED, ROLE_UNRESOLVED)'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '409':
          description: Conflict
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '422':
          description: Validation error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
  /v1/me/identities/slack/link-url:
    post:
      tags:
      - Identities
      summary: Start linking a Slack account
      description: Mint a Slack sign-in URL that proves the signed-in teammate's own Slack identity, and set the short-lived browser cookie the callback requires. A contextual check returns linked or unlinked without starting a sign-in.
      operationId: mint_slack_link_url_v1_me_identities_slack_link_url_post
      security:
      - HTTPBearer: []
      parameters:
      - name: X-Tenant-Id
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Tenant-Id
      requestBody:
        content:
          application/json:
            schema:
              anyOf:
              - $ref: '#/components/schemas/ContextualMemberLinkRequest'
              - type: 'null'
              title: Body
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                anyOf:
                - $ref: '#/components/schemas/MemberLinkUrlResponse'
                - $ref: '#/components/schemas/AccountLinkStatusResponse'
                title: Response Mint Slack Link Url V1 Me Identities Slack Link Url Post
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '403':
          description: 'Forbidden. Inspect response body `code` for the specific reason (for example: PERMISSION_DENIED, EMAIL_NOT_VERIFIED, TENANT_ACCESS_REQUIRED, ROLE_UNRESOLVED)'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '409':
          description: Conflict
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '422':
          description: Validation error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
  /v1/me/identities/{identity_id}:
    delete:
      tags:
      - Identities
      summary: Unlink one of my accounts
      description: Remove one of the signed-in teammate's federated credentials. Writes Patricia rows only and calls no provider endpoint, so it works even when the provider account is gone.
      operationId: revoke_my_identity_v1_me_identities__identity_id__delete
      security:
      - HTTPBearer: []
      parameters:
      - name: identity_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Identity Id
      - name: X-Tenant-Id
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Tenant-Id
      responses:
        '204':
          description: Successful Response
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '403':
          description: 'Forbidden. Inspect response body `code` for the specific reason (for example: PERMISSION_DENIED, EMAIL_NOT_VERIFIED, TENANT_ACCESS_REQUIRED, ROLE_UNRESOLVED)'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '422':
          description: Validation error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '409':
          description: Conflict
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  schemas:
    MemberLinkUrlResponse:
      properties:
        url:
          type: string
          title: Url
          description: Provider sign-in URL carrying the signed, browser-bound link state.
      type: object
      required:
      - url
      title: MemberLinkUrlResponse
      description: Where to send the browser so somebody can prove a provider identity.
    ContextualMemberLinkRequest:
      properties:
        context:
          anyOf:
          - type: string
            maxLength: 4096
          - type: 'null'
          title: Context
        check_only:
          type: boolean
          title: Check Only
          default: false
        for_sign_in_setup:
          type: boolean
          title: For Sign In Setup
          default: false
      type: object
      title: ContextualMemberLinkRequest
    LinkedIdentityListResponse:
      properties:
        items:
          items:
            $ref: '#/components/schemas/LinkedIdentityResponse'
          type: array
          title: Items
          description: The person's own credentials, revoked ones included.
      type: object
      required:
      - items
      title: LinkedIdentityListResponse
      description: Every federated credential the signed-in person holds, newest first.
    ErrorResponse:
      properties:
        code:
          type: string
          title: Code
        message:
          type: string
          title: Message
        errors:
          anyOf:
          - items:
              additionalProperties: true
              type: object
            type: array
          - type: 'null'
          title: Errors
      type: object
      required:
      - code
      - message
      title: ErrorResponse
      description: Standard error envelope, matching exception handler output.
    AccountLinkStatusResponse:
      properties:
        status:
          type: string
          enum:
          - linked
          - unlinked
          title: Status
      type: object
      required:
      - status
      title: AccountLinkStatusResponse
    LinkedIdentityResponse:
      properties:
        id:
          type: string
          format: uuid
          title: Id
          description: Identifier of this linked credential, for the unlink call.
        provider_code:
          type: string
          title: Provider Code
          description: Which identity provider vouches for it, for example 'entra'.
        directory_id:
          type: string
          title: Directory Id
          description: The provider directory or workspace the credential belongs to.
        linked_at:
          type: string
          format: date-time
          title: Linked At
          description: When Patricia first recorded this credential.
        last_authenticated_at:
          type: string
          format: date-time
          title: Last Authenticated At
          description: 'When this credential was last seen. Set when Patricia records the credential and moved forward on each successful sign-in with it, so it equals the connected time until the first sign-in rather than being absent. Never null: the column is NOT NULL with a server default.'
        revoked_at:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Revoked At
          description: When the link was removed, or null while it is live. A removed link is still listed so an unlink reads as a state change rather than as a row disappearing.
      type: object
      required:
      - id
      - provider_code
      - directory_id
      - linked_at
      - last_authenticated_at
      title: LinkedIdentityResponse
      description: 'One federated credential the signed-in person holds.


        The provider SUBJECT is deliberately absent. It is the directory object id of a real human and

        the value somebody would need to forge a binding, and nobody needs to read it to know whether

        their account is linked. The directory id IS present: it is workspace-level rather than

        person-level, an admin can already read it on the Teams settings page, and without it a person

        holding two Microsoft accounts cannot tell their rows apart.'
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer