withHuman Account API

Who the session belongs to. Read the current member, their organization and permissions.

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).

Operations 1

GET /api/v1/me Retrieve the current member #

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/withhuman-ai:withhuman-ai-account-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

withhuman-ai-account-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: withHuman provider Account API
  version: 1.0.0
  description: Agent Approval Protocol and reviewer product endpoints.
servers:
- url: /
tags:
- name: Account
  description: Who the session belongs to. Read the current member, their organization and permissions.
paths:
  /api/v1/me:
    get:
      summary: Retrieve the current member
      description: 'Returns who the session belongs to. The `principal` is what the API checks permissions against on every call. The rest is for display: the person''s name and email, the organization, and the role assignments the membership holds. Call this after signing in to learn what the session can do.'
      operationId: currentPrincipal
      x-withhuman-permission: self
      x-withhuman-credential-kinds:
      - session
      - personal_api_key
      tags:
      - Account
      security:
      - cookieAuth: []
      - apiKeyAuth: []
      responses:
        '200':
          description: The member behind the session
          content:
            application/json:
              schema:
                type: object
                required:
                - principal
                properties:
                  principal:
                    $ref: '#/components/schemas/Principal'
                  user:
                    type: object
                    description: The person who signed in.
                    properties:
                      display_name:
                        type: string
                        example: Ada Lovelace
                        description: The name shown in the product.
                      email:
                        type: string
                        example: ada@example.com
                        description: The primary email address on the account.
                      has_password:
                        type: boolean
                        example: true
                        description: Whether the account has a password. False for an account that only signs in through an identity provider; such an account cannot change or reset a password.
                  organization:
                    type: object
                    description: The organization the session is scoped to.
                    properties:
                      name:
                        type: string
                        example: Northwind
                        description: The organization's display name.
                      slug:
                        type: string
                        example: northwind
                        description: The organization's URL-safe identifier.
                  assignments:
                    type: array
                    description: 'The membership''s role assignments: its own, plus the ones it inherits through its teams. The `grants` in the principal are flattened from these.'
                    items:
                      $ref: '#/components/schemas/RoleAssignment'
                  onboarding:
                    type: object
                    description: Whether the product's guided setup should open for this person.
                    required:
                    - required
                    - checklist
                    - completed_at
                    properties:
                      required:
                        type: boolean
                        example: false
                        description: '`true` while nobody in the organization has finished or skipped the guided setup and this person has the permissions to run it.'
                      checklist:
                        type:
                        - object
                        - 'null'
                        description: What the organization has set up, however it was set up. Reported once the guided setup no longer opens on its own, to a person with the permissions to run it; `null` otherwise. The app offers the setup again while any item is `false`.
                        required:
                        - agent_connected
                        - rules_written
                        - tested
                        properties:
                          agent_connected:
                            type: boolean
                            example: true
                            description: An active agent has an active instance holding an unrevoked, unexpired credential.
                          rules_written:
                            type: boolean
                            example: false
                            description: The entry pipeline can hold or deny a call instead of approving every one.
                          tested:
                            type: boolean
                            example: false
                            description: A person has decided one of the organization's requests.
                      completed_at:
                        type:
                        - string
                        - 'null'
                        format: date-time
                        description: When the organization finished or skipped the guided setup. `null` until then.
        '401':
          description: No session cookie, or the session has expired or been signed out
components:
  schemas:
    Grant:
      type: object
      required:
      - permission
      - scope_kind
      properties:
        permission:
          type: string
          description: A registry key such as request.decide
          example: request.decide
        scope_kind:
          type: string
          enum:
          - organization
          - team
          - agent
          - pipeline
        scope_id:
          type: string
          description: The team id, agent slug, or pipeline key the grant applies to; absent at organization scope
    RoleKey:
      type: string
      enum:
      - owner
      - admin
      - reviewer
      - auditor
      description: A predefined role. `owner` is full control and only an owner may grant it; `admin` manages agents, pipelines, paths, members and teams; `reviewer` decides the requests routed to them; `auditor` reads everything without changing anything.
    Principal:
      type: object
      description: The identity the API checks permissions against. A person acting through a session, or a machine acting through a credential.
      required:
      - actor_type
      - actor_id
      - organization_id
      - permissions
      - grants
      - auth
      properties:
        actor_type:
          type: string
          enum:
          - human
          - agent
          - system
          - gateway
          example: human
          description: '`human` for a signed-in person, `agent` for an agent credential, `gateway` for the chokepoint MCP gateway acting for the organization with the deployment''s gateway token, `system` for actions the provider takes on its own.'
        actor_id:
          type: string
          format: uuid
          description: The user's id for a person, an internal id for an agent (address agents by `agent_slug`), or the literal `gateway` for the gateway.
        organization_id:
          type: string
          format: uuid
          description: The organization every call is scoped to.
        membership_id:
          type: string
          format: uuid
          description: The person's membership in the organization. Present for a person only.
        agent_instance_id:
          type: string
          format: uuid
          description: The instance the credential belongs to. Present for an agent only.
        agent_slug:
          type: string
          pattern: ^[a-z0-9][a-z0-9._-]{0,62}$
          example: claude-code
          description: The agent's slug. Present for an agent only.
        permissions:
          type: array
          description: Every permission the actor holds at any scope, such as `request.decide`, sorted and without duplicates. Use it to decide what to show. Whether an action is allowed depends on `grants`.
          items:
            type: string
          example:
          - request.read
          - request.decide
          - agent.credential.issue
        grants:
          type: array
          description: Every permission the actor holds, each with the scope it applies at. Flattened from the role assignments.
          items:
            $ref: '#/components/schemas/Grant'
        team_ids:
          type: array
          description: The teams the member belongs to. Escalation paths can route requests to a team.
          items:
            type: string
            format: uuid
        auth:
          $ref: '#/components/schemas/AuthContext'
    RoleAssignment:
      type: object
      description: Permissions granted at one scope, with provenance.
      required:
      - id
      - organization_id
      - principal_kind
      - principal_id
      - scope_kind
      - source
      - created_at
      - permissions
      - is_owner
      properties:
        id:
          type: string
          format: uuid
        organization_id:
          type: string
          format: uuid
        principal_kind:
          type: string
          enum:
          - membership
          - team
          - agent
          description: What holds the role.
        principal_id:
          type: string
          format: uuid
          description: The membership, team or agent that holds it.
        scope_kind:
          type: string
          enum:
          - organization
          - team
          - agent
          description: Where the role applies.
        scope_id:
          type: string
          description: The team id or the agent slug. Absent for `organization`.
        scope_name:
          type: string
          description: The team's name, for a team scope.
        source:
          type: string
          enum:
          - manual
          - directory
          description: Whether a person granted it or your directory did.
        source_key:
          type: string
          description: The directory group that produced it. Present for `directory` only.
        granted_by_actor_id:
          type: string
          format: uuid
          description: The member who granted it. Present for `manual` only.
        via_team_id:
          type: string
          format: uuid
          description: The team the role is inherited through. Present when a member holds it through a team rather than directly.
        via_team_name:
          type: string
          description: That team's name.
        created_at:
          type: string
          format: date-time
        permissions:
          type: array
          items:
            type: string
        is_owner:
          type: boolean
        built_in_role:
          $ref: '#/components/schemas/RoleKey'
          description: The predefined role this assignment grants. Absent for a custom permission policy.
        permission_policy_id:
          type: string
          format: uuid
    AuthContext:
      type: object
      description: How a principal was signed in when it acted.
      required:
      - method
      - assurance
      - authenticated_at
      properties:
        method:
          type: string
          example: local_password
          description: How the principal signed in, for example `local_password`, `sso`, or `social_google`.
        assurance:
          type: string
          example: strong
          description: 'The strength of that sign-in: `single_factor` or `strong`.'
        authenticated_at:
          type: string
          format: date-time
          description: When the sign-in happened.
        session_id:
          type: string
          format: uuid
          description: The session that acted, when a person did.
        credential_id:
          type: string
          format: uuid
          description: The credential that acted, when an agent did.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
    cookieAuth:
      type: apiKey
      in: cookie
      name: withhuman_session
    apiKeyAuth:
      type: http
      scheme: bearer
      bearerFormat: whk_ / who_
      description: 'A personal whk_ or organization who_ API key sent as Authorization: Bearer <token>. Personal keys act as their member with live, optionally narrowed access. Organization keys act as themselves with live RBAC permission policies. The x-withhuman-credential-kinds extension lists the kinds supported by each operation. Revocation, expiry, organization status, and the policy switch for that key kind are checked on every request.'