Polytomic Subpackage Users API

The subpackage_users API from Polytomic — 5 operation(s) for subpackage_users.

GitHub OpenAPI
Business capability
Identity & Access Management BC-620.20

Operations 11

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /api/organization/users List users in my organization · List Current Org Users #
Ask an LLM
“Who are the users in my own organization?”
“Can I see every user and their roles in the org I'm signed in to?”
Tell an agent
List all users in my current organization.
Show me the email and roles of each user in my org.
POST /api/organization/users Invite a user to my organization · Create Current Org User #
Ask an LLM
“How do I add a new person to my own organization?”
“Does a new user get an invitation email when I add them?”
Tell an agent
Invite {email} to my organization with roles {role_ids}.
Add {email} to my organization and send them an invitation.
GET /api/organization/users/{id} Get a user in my organization · Get Current Org User #
Ask an LLM
“What roles does a specific user in my organization have?”
“Can I look up one user by ID in the org I'm signed in to?”
Tell an agent
Get user {id} from my current organization.
Show the roles assigned to user {id} in my org.
PUT /api/organization/users/{id} Change a user's roles in my org · Update Current Org User #
Ask an LLM
“Can I change the permissions roles assigned to a user in my organization?”
“Does updating a user's roles affect their profile details like name or email?”
Tell an agent
Set the roles of user {id} in my organization to {role_ids}.
Change user {id}'s role assignments in my org to {role_ids}.
DELETE /api/organization/users/{id} Remove a user from my organization · Delete Current Org User #
Ask an LLM
“What happens to a user's access when I remove them from my organization?”
“Is deleting a user from my org permanent?”
Tell an agent destructive · confirm first
Remove user {id} from my organization.
Delete user {id} from my org and revoke their access.
GET /api/organizations/{org_id}/users List users in any organization · List Partner Users #
Ask an LLM
“Can I list the users of any organization, not just my own?”
“Which endpoint returns every user in a given organization?”
Tell an agent
List all users in organization {org_id}.
Show the email and roles of every user in org {org_id}.
POST /api/organizations/{org_id}/users Invite a user to any organization · Create Partner User #
Ask an LLM
“How do I invite someone to an organization I don't belong to?”
“Can I add a user to another organization as a partner?”
Tell an agent
Invite {email} to organization {org_id} with roles {role_ids}.
Add {email} to org {org_id} and send them an invitation.
GET /api/organizations/{org_id}/users/{id} Look up a partner user · Get Partner User #
Ask an LLM
“Can I fetch one partner user's details by ID in an organization?”
“What permissions does a specific partner user hold?”
Tell an agent
Show partner user {id} in organization {org_id}.
Get the role assignments for {id} under org {org_id}.
PUT /api/organizations/{org_id}/users/{id} Change a partner user's roles · Update Partner User #
Ask an LLM
“How do I give a partner user a new role in my organization?”
“Can I remove a partner user's role without deleting them?”
Tell an agent
Assign roles {role_ids} to partner user {id} in {org_id}.
Change the role of {id} to {role} in organization {org_id}.
DELETE /api/organizations/{org_id}/users/{id} Remove a partner user from an organization · Delete Partner User #
Ask an LLM
“What happens to a partner user's access when I remove them from the organization?”
“Is deleting a partner user permanent?”
Tell an agent destructive · confirm first
Delete partner user {id} from organization {org_id}.
Remove {id} from org {org_id} and revoke their access.
POST /api/organizations/{org_id}/users/{id}/keys Issue an API key for a user · Create Partner User API Key #
Ask an LLM
“How do I give a user an API key so they can call the API?”
“Is the API key value returned again after it's created?”
Tell an agent
Issue a new API key for user {id} in organization {org_id}.
Create an API key for user {id} in org {org_id} and revoke any existing key ({force}).

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/polytomic:polytomic-subpackage-users-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

polytomic-subpackage-users-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Reference Subpackage Users API
  version: 1.0.0
servers:
- url: https://app.polytomic.com
tags:
- name: subpackage_users
paths:
  /api/organization/users:
    get:
      operationId: list-current-org-users
      summary: List Current Org Users
      description: 'Lists every user in the caller''s current organization.


        Returns user records including each user''s ID, email, and assigned roles.'
      tags:
      - subpackage_users
      parameters:
      - name: Authorization
        in: header
        description: Bearer user API key
        required: true
        schema:
          type: string
      - name: X-Polytomic-Version
        in: header
        required: false
        schema:
          type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListUsersEnvelope'
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
    post:
      operationId: create-current-org-user
      summary: Create Current Org User
      description: 'Creates a new user in the caller''s current organization and assigns the requested permissions roles.


        The new user receives an invitation email prompting them to set up their

        account. Role assignments take effect as soon as the invitation is accepted.'
      tags:
      - subpackage_users
      parameters:
      - name: Authorization
        in: header
        description: Bearer user API key
        required: true
        schema:
          type: string
      - name: X-Polytomic-Version
        in: header
        required: false
        schema:
          type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UserEnvelope'
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '422':
          description: Unprocessable Entity
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CurrentOrgCreateUserRequestSchema'
  /api/organization/users/{id}:
    get:
      operationId: get-current-org-user
      summary: Get Current Org User
      description: Returns a single user from the caller's current organization.
      tags:
      - subpackage_users
      parameters:
      - name: id
        in: path
        description: Unique identifier of the user.
        required: true
        schema:
          type: string
          format: uuid
      - name: Authorization
        in: header
        description: Bearer user API key
        required: true
        schema:
          type: string
      - name: X-Polytomic-Version
        in: header
        required: false
        schema:
          type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UserEnvelope'
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
    put:
      operationId: update-current-org-user
      summary: Update Current Org User
      description: 'Updates the permissions roles assigned to a user in the caller''s current organization.


        Only the user''s role assignments are modified. Profile information such as name

        and email address is not affected by this endpoint.'
      tags:
      - subpackage_users
      parameters:
      - name: id
        in: path
        description: Unique identifier of the user to update.
        required: true
        schema:
          type: string
          format: uuid
      - name: Authorization
        in: header
        description: Bearer user API key
        required: true
        schema:
          type: string
      - name: X-Polytomic-Version
        in: header
        required: false
        schema:
          type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UserEnvelope'
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '422':
          description: Unprocessable Entity
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CurrentOrgUpdateUserRequestSchema'
    delete:
      operationId: delete-current-org-user
      summary: Delete Current Org User
      description: 'Deletes a user from the caller''s current organization.


        > 🚧 This action is permanent. The user is immediately removed from the

        > organization and loses access to all resources within it. This cannot be

        > undone.'
      tags:
      - subpackage_users
      parameters:
      - name: id
        in: path
        description: Unique identifier of the user.
        required: true
        schema:
          type: string
          format: uuid
      - name: Authorization
        in: header
        description: Bearer user API key
        required: true
        schema:
          type: string
      - name: X-Polytomic-Version
        in: header
        required: false
        schema:
          type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UserEnvelope'
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
  /api/organizations/{org_id}/users:
    get:
      operationId: list
      summary: List Partner Users
      description: 'Lists all users in the specified organization.


        > 🚧 Requires partner key

        >

        > User endpoints are only accessible using partner keys.


        Returns user records including each user''s ID, email, and assigned roles.'
      tags:
      - subpackage_users
      parameters:
      - name: org_id
        in: path
        description: Unique identifier of the organization whose users should be listed.
        required: true
        schema:
          type: string
          format: uuid
      - name: Authorization
        in: header
        description: Bearer partner API key
        required: true
        schema:
          type: string
      - name: X-Polytomic-Version
        in: header
        required: false
        schema:
          type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListUsersEnvelope'
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
    post:
      operationId: create
      summary: Create Partner User
      description: 'Creates a new user in the specified organization and assigns the requested permissions roles.


        > 🚧 Requires partner key

        >

        > User endpoints are only accessible using partner keys.


        The new user receives an invitation email prompting them to set up their

        account. Role assignments take effect as soon as the invitation is accepted.'
      tags:
      - subpackage_users
      parameters:
      - name: org_id
        in: path
        description: Unique identifier of the organization the user belongs to.
        required: true
        schema:
          type: string
          format: uuid
      - name: Authorization
        in: header
        description: Bearer partner API key
        required: true
        schema:
          type: string
      - name: X-Polytomic-Version
        in: header
        required: false
        schema:
          type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UserEnvelope'
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '422':
          description: Unprocessable Entity
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateUserRequestSchema'
  /api/organizations/{org_id}/users/{id}:
    get:
      operationId: get
      summary: Get Partner User
      description: 'Returns a single user in the specified organization.


        > 🚧 Requires partner key

        >

        > User endpoints are only accessible using partner keys.'
      tags:
      - subpackage_users
      parameters:
      - name: id
        in: path
        description: Unique identifier of the user.
        required: true
        schema:
          type: string
          format: uuid
      - name: org_id
        in: path
        description: Unique identifier of the organization the user belongs to.
        required: true
        schema:
          type: string
          format: uuid
      - name: Authorization
        in: header
        description: Bearer partner API key
        required: true
        schema:
          type: string
      - name: X-Polytomic-Version
        in: header
        required: false
        schema:
          type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UserEnvelope'
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
    put:
      operationId: update
      summary: Update Partner User
      description: 'Updates a user''s assigned permissions roles.


        > 🚧 Requires partner key

        >

        > User endpoints are only accessible using partner keys.


        Only the user''s role assignments are modified. Profile information such as name

        and email address is not affected by this endpoint.'
      tags:
      - subpackage_users
      parameters:
      - name: id
        in: path
        description: Unique identifier of the user to update.
        required: true
        schema:
          type: string
          format: uuid
      - name: org_id
        in: path
        description: Unique identifier of the organization the user belongs to.
        required: true
        schema:
          type: string
          format: uuid
      - name: Authorization
        in: header
        description: Bearer partner API key
        required: true
        schema:
          type: string
      - name: X-Polytomic-Version
        in: header
        required: false
        schema:
          type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UserEnvelope'
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '422':
          description: Unprocessable Entity
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateUserRequestSchema'
    delete:
      operationId: delete
      summary: Delete Partner User
      description: 'Deletes a user from the specified organization.


        > 🚧 Requires partner key

        >

        > User endpoints are only accessible using partner keys.


        > 🚧 This action is permanent. The user is immediately removed from the

        > organization and loses access to all resources within it. This cannot be

        > undone.'
      tags:
      - subpackage_users
      parameters:
      - name: id
        in: path
        description: Unique identifier of the user.
        required: true
        schema:
          type: string
          format: uuid
      - name: org_id
        in: path
        description: Unique identifier of the organization the user belongs to.
        required: true
        schema:
          type: string
          format: uuid
      - name: Authorization
        in: header
        description: Bearer partner API key
        required: true
        schema:
          type: string
      - name: X-Polytomic-Version
        in: header
        required: false
        schema:
          type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UserEnvelope'
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
  /api/organizations/{org_id}/users/{id}/keys:
    post:
      operationId: create-api-key
      summary: Create Partner User API Key
      description: 'Issues a new API key for the specified user.


        > 🚧 The API key value is only included in the response at creation time and

        > cannot be retrieved again. Store it securely immediately after creation.'
      tags:
      - subpackage_users
      parameters:
      - name: org_id
        in: path
        description: Unique identifier of the organization the user belongs to.
        required: true
        schema:
          type: string
          format: uuid
      - name: id
        in: path
        description: Unique identifier of the user the key will be issued for.
        required: true
        schema:
          type: string
          format: uuid
      - name: force
        in: query
        description: If true, revoke any existing API key for the user before creating a new one.
        required: false
        schema:
          type: boolean
      - name: Authorization
        in: header
        description: Bearer partner API key
        required: true
        schema:
          type: string
      - name: X-Polytomic-Version
        in: header
        required: false
        schema:
          type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/APIKeyResponseEnvelope'
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
components:
  schemas:
    User:
      type: object
      properties:
        email:
          type: string
          description: Email address used to sign in and receive notifications.
        id:
          type: string
          format: uuid
          description: Unique identifier of the user.
        organization_id:
          type: string
          format: uuid
          description: Unique identifier of the organization the user belongs to.
        role:
          type: string
          description: Deprecated legacy role name. Use role_ids instead.
        role_ids:
          type:
          - array
          - 'null'
          items:
            type: string
            format: uuid
          description: Identifiers of the permissions roles assigned to the user.
      title: User
    CreateUserRequestSchema:
      type: object
      properties:
        email:
          type: string
          description: Email address used to sign the user in and receive notifications.
        role:
          type: string
          description: Deprecated legacy role name. Use role_ids instead; setting both role and role_ids in the same request is rejected.
        role_ids:
          type: array
          items:
            type: string
            format: uuid
          description: Identifiers of the permissions roles to assign to the user. Must contain at least one entry when provided.
      required:
      - email
      title: CreateUserRequestSchema
    APIKeyResponse:
      type: object
      properties:
        value:
          type: string
          description: Newly created API key. This value is shown only once; store it securely.
      title: APIKeyResponse
    UserEnvelope:
      type: object
      properties:
        data:
          $ref: '#/components/schemas/User'
      title: UserEnvelope
    CurrentOrgCreateUserRequestSchema:
      type: object
      properties:
        email:
          type: string
          description: Email address used to sign the user in and receive notifications.
        role:
          type: string
          description: Deprecated legacy role name. Use role_ids instead; setting both role and role_ids in the same request is rejected.
        role_ids:
          type: array
          items:
            type: string
            format: uuid
          description: Identifiers of the permissions roles to assign to the user. Must contain at least one entry when provided.
      required:
      - email
      title: CurrentOrgCreateUserRequestSchema
    ListUsersEnvelope:
      type: object
      properties:
        data:
          type:
          - array
          - 'null'
          items:
            $ref: '#/components/schemas/User'
      title: ListUsersEnvelope
    APIKeyResponseEnvelope:
      type: object
      properties:
        data:
          $ref: '#/components/schemas/APIKeyResponse'
      title: APIKeyResponseEnvelope
    UpdateUserRequestSchema:
      type: object
      properties:
        email:
          type: string
          description: Email address used to sign the user in and receive notifications.
        role:
          type: string
          description: Deprecated legacy role name. Use role_ids instead; setting both role and role_ids in the same request is rejected.
        role_ids:
          type: array
          items:
            type: string
            format: uuid
          description: Identifiers of the permissions roles to assign to the user. Must contain at least one entry when provided.
      required:
      - email
      title: UpdateUserRequestSchema
    CurrentOrgUpdateUserRequestSchema:
      type: object
      properties:
        role:
          type: string
          description: Deprecated legacy role name. Use role_ids instead.
        role_ids:
          type: array
          items:
            type: string
            format: uuid
          description: Identifiers of the permissions roles to assign to the user. Must contain at least one entry when provided.
      title: CurrentOrgUpdateUserRequestSchema
    ApiError:
      type: object
      properties:
        key:
          type: string
        message:
          type: string
        metadata:
          type: object
          additionalProperties:
            description: Any type
        status:
          type: integer
      title: ApiError
  securitySchemes:
    bearerUserAPIKey:
      type: http
      scheme: bearer
      description: Bearer user API key
    orgScopedAPIKey:
      type: http
      scheme: basic
      description: Basic organization-scoped API key
    bearerPartnerKey:
      type: http
      scheme: bearer
      description: Bearer partner API key