Sana Users API

The Users API from Sana — 8 operation(s) for users.

Operations 11

GET /api/v0/users List all users #
POST /api/v0/users Create a user #
GET /api/v0/users/{userId} Retrieve a specific user #
PATCH /api/v0/users/{userId} Update a user #
DELETE /api/v0/users/{userId} Delete a user #
POST /api/v0/users/{userId}/send-invite Send an invite email to a user #
GET /api/v0/users/{userId}/groups List a user's groups #
PUT /api/v0/users/{userId}/manager/{managerId} Set a user's manager #
DELETE /api/v0/users/{userId}/manager Remove a user's manager #
GET /api/v0/users/attributes-schema List the custom attribute schema #

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/sana-users-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

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. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

sana-users-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Sana Assignments Users API
  version: v0/v1
  description: Sana's REST API for the Sana AI knowledge/learning platform. Programmatic access to users, groups, programs, assignments, courses, paths, teamspaces, reporting/Insights, and xAPI statements. Authentication is OAuth 2.0 client credentials returning a bearer token; GET requests require the `read` scope and write requests require the `write` scope. The API is served per tenant at https://<domain>.sana.ai.
  contact:
    name: Sana API Documentation
    url: https://docs.sana.ai/api-docs/
servers:
- url: https://{domain}.sana.ai
  description: Per-tenant Sana host
  variables:
    domain:
      default: app
      description: Your Sana workspace subdomain
security:
- bearerAuth: []
tags:
- name: Users
paths:
  /api/v0/users:
    get:
      operationId: listUsers
      tags:
      - Users
      summary: List all users
      parameters:
      - $ref: '#/components/parameters/next'
      - $ref: '#/components/parameters/limit'
      responses:
        '200':
          description: A page of users
    post:
      operationId: createUser
      tags:
      - Users
      summary: Create a user
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - email
              properties:
                email:
                  type: string
                  format: email
                firstName:
                  type: string
                lastName:
                  type: string
                role:
                  type: string
                  enum:
                  - learner
                  - group-admin
                  - admin
                language:
                  type: string
                  description: IETF BCP 47 language tag
                customAttributes:
                  type: object
                  additionalProperties: true
      responses:
        '201':
          description: User created
  /api/v0/users/{userId}:
    get:
      operationId: getUser
      tags:
      - Users
      summary: Retrieve a specific user
      parameters:
      - $ref: '#/components/parameters/userId'
      responses:
        '200':
          description: A user
    patch:
      operationId: updateUser
      tags:
      - Users
      summary: Update a user
      parameters:
      - $ref: '#/components/parameters/userId'
      responses:
        '200':
          description: User updated
    delete:
      operationId: deleteUser
      tags:
      - Users
      summary: Delete a user
      parameters:
      - $ref: '#/components/parameters/userId'
      responses:
        '204':
          description: User deleted
  /api/v0/users/{userId}/send-invite:
    post:
      operationId: sendUserInvite
      tags:
      - Users
      summary: Send an invite email to a user
      parameters:
      - $ref: '#/components/parameters/userId'
      responses:
        '200':
          description: Invite sent
  /api/v0/users/{userId}/invite-link:
    post:
      operationId: createUserInviteLink
      tags:
      - Users
      summary: Generate a new invite link for a user
      parameters:
      - $ref: '#/components/parameters/userId'
      responses:
        '200':
          description: Invite link generated
  /api/v0/users/{userId}/groups:
    get:
      operationId: listUserGroups
      tags:
      - Users
      summary: List a user's groups
      parameters:
      - $ref: '#/components/parameters/userId'
      responses:
        '200':
          description: A list of groups
  /api/v0/users/{userId}/manager/{managerId}:
    put:
      operationId: setUserManager
      tags:
      - Users
      summary: Set a user's manager
      parameters:
      - $ref: '#/components/parameters/userId'
      - name: managerId
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Manager set
  /api/v0/users/{userId}/manager:
    delete:
      operationId: removeUserManager
      tags:
      - Users
      summary: Remove a user's manager
      parameters:
      - $ref: '#/components/parameters/userId'
      responses:
        '204':
          description: Manager removed
  /api/v0/users/attributes-schema:
    get:
      operationId: getUserAttributesSchema
      tags:
      - Users
      summary: List the custom attribute schema
      responses:
        '200':
          description: Attribute schema
components:
  parameters:
    next:
      name: next
      in: query
      required: false
      description: Cursor to fetch the next batch of results
      schema:
        type: string
    limit:
      name: limit
      in: query
      required: false
      description: Number of items to return (default 100, max 1000)
      schema:
        type: integer
        default: 100
        maximum: 1000
    userId:
      name: userId
      in: path
      required: true
      schema:
        type: string
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: Bearer access token obtained from POST /api/token via the OAuth 2.0 client credentials grant.
    oauth2:
      type: oauth2
      flows:
        clientCredentials:
          tokenUrl: https://{domain}.sana.ai/api/token
          scopes:
            read: Read access (required for GET requests)
            write: Write access (required for POST, PATCH, DELETE requests)