Loading...
    • Developer Guide
    • API Reference
    • MCP
    • Resources
    • Release Notes
    Search...
    ⌘K
    Using the API
    Features overviewClient SDKsBeta headersErrors
    Messages
    Create a Message
    Count tokens in a Message
    Models
    List Models
    Get a Model
    Beta
    Admin
    Get User
    List Users
    Update User
    Remove User
    Completions
    Create a Text Completion
    Support & configuration
    Rate limitsService tiersVersionsIP addressesSupported regionsOpenAI SDK compatibility
    Console
    Log in

    List Users

    get/v1/organizations/users

    List Users

    Query ParametersExpand Collapse
    after_id: optional string

    ID of the object to use as a cursor for pagination. When provided, returns the page of results immediately after this object.

    before_id: optional string

    ID of the object to use as a cursor for pagination. When provided, returns the page of results immediately before this object.

    email: optional string

    Filter by user email.

    formatemail
    limit: optional number

    Number of items to return per page.

    Defaults to 20. Ranges from 1 to 1000.

    maximum1000
    minimum1
    ReturnsExpand Collapse
    data: array of User { id, added_at, email, 3 more }
    id: string

    ID of the User.

    added_at: string

    RFC 3339 datetime string indicating when the User joined the Organization.

    formatdate-time
    email: string

    Email of the User.

    name: string

    Name of the User.

    role: "user" or "developer" or "billing" or 2 more

    Organization role of the User.

    Accepts one of the following:
    "user"
    "developer"
    "billing"
    "admin"
    "claude_code_user"
    type: "user"

    Object type.

    For Users, this is always "user".

    Accepts one of the following:
    "user"
    first_id: string

    First ID in the data list. Can be used as the before_id for the previous page.

    has_more: boolean

    Indicates if there are more results in the requested page direction.

    last_id: string

    Last ID in the data list. Can be used as the after_id for the next page.

    List Users
    curl https://api.anthropic.com/v1/organizations/users \
        -H "X-Api-Key: $ANTHROPIC_ADMIN_API_KEY"
    Response 200
    {
      "data": [
        {
          "id": "user_01WCz1FkmYMm4gnmykNKUu3Q",
          "added_at": "2024-10-30T23:58:27.427722Z",
          "email": "[email protected]",
          "name": "Jane Doe",
          "role": "user",
          "type": "user"
        }
      ],
      "first_id": "first_id",
      "has_more": true,
      "last_id": "last_id"
    }
    Returns Examples
    Response 200
    {
      "data": [
        {
          "id": "user_01WCz1FkmYMm4gnmykNKUu3Q",
          "added_at": "2024-10-30T23:58:27.427722Z",
          "email": "[email protected]",
          "name": "Jane Doe",
          "role": "user",
          "type": "user"
        }
      ],
      "first_id": "first_id",
      "has_more": true,
      "last_id": "last_id"
    }

    Solutions

    • AI agents
    • Code modernization
    • Coding
    • Customer support
    • Education
    • Financial services
    • Government
    • Life sciences

    Partners

    • Amazon Bedrock
    • Google Cloud's Vertex AI

    Learn

    • Blog
    • Catalog
    • Courses
    • Use cases
    • Connectors
    • Customer stories
    • Engineering at Anthropic
    • Events
    • Powered by Claude
    • Service partners
    • Startups program

    Company

    • Anthropic
    • Careers
    • Economic Futures
    • Research
    • News
    • Responsible Scaling Policy
    • Security and compliance
    • Transparency

    Learn

    • Blog
    • Catalog
    • Courses
    • Use cases
    • Connectors
    • Customer stories
    • Engineering at Anthropic
    • Events
    • Powered by Claude
    • Service partners
    • Startups program

    Help and security

    • Availability
    • Status
    • Support
    • Discord

    Terms and policies

    • Privacy policy
    • Responsible disclosure policy
    • Terms of service: Commercial
    • Terms of service: Consumer
    • Usage policy