CalypsoAI Auth API

The Auth API from CalypsoAI — 4 operation(s) for auth.

Operations 8

GET /backend/v1/auth/roles Get roles #
POST /backend/v1/auth/roles Create role #
GET /backend/v1/auth/roles/default Get the default role #
DELETE /backend/v1/auth/roles/{roleId} Delete role #
GET /backend/v1/auth/roles/{roleId} Get role #
PATCH /backend/v1/auth/roles/{roleId} Update role #
DELETE /backend/v1/auth/roles/{roleId}/permissions Remove permissions #
PATCH /backend/v1/auth/roles/{roleId}/permissions Add permissions #

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/calypsoai-com:calypsoai-com-auth-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

calypsoai-com-auth-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: CalypsoAI Auth API
  version: 1.0.0
servers:
- description: US1 availability zone
  url: https://us1.calypsoai.app
- description: EU1 availability zone
  url: https://eu1.calypsoai.app
tags:
- name: Auth
paths:
  /backend/v1/auth/roles:
    get:
      description: 'Retrieves a list of available roles associated with a given resource,

        with the option to adjust the limit for more results.'
      operationId: get_auth_roles
      parameters:
      - description: Returns roles associated with the specified project. If not provided, organization roles are returned
        in: query
        name: projectId
        required: false
        schema:
          anyOf:
          - format: uuid
            type: string
          - type: 'null'
          description: Returns roles associated with the specified project. If not provided, organization roles are returned
          title: Projectid
      - description: Max number of items to be returned.
        in: query
        name: limit
        required: false
        schema:
          default: 10
          description: Max number of items to be returned.
          maximum: 100
          minimum: 1
          title: Limit
          type: integer
      - description: Pass cursor from response to get next or prev page.
        in: query
        name: cursor
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          description: Pass cursor from response to get next or prev page.
          title: Cursor
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetAuthRolesResponse'
          description: Successful Response
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
      security:
      - HTTPBearer: []
      summary: Get roles
      tags:
      - Auth
    post:
      description: 'Create a new role associated with a given resource.


        Currently available resources to associate with a role are the organization and projects.'
      operationId: post_auth_roles
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PostAuthRolesBody'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PostSuccessMessage'
          description: Successful Response
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
      security:
      - HTTPBearer: []
      summary: Create role
      tags:
      - Auth
  /backend/v1/auth/roles/default:
    get:
      description: Requests the configured default role.
      operationId: get_auth_roles_default
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetAuthRoleDefaultResponse'
          description: Successful Response
      security:
      - HTTPBearer: []
      summary: Get the default role
      tags:
      - Auth
  /backend/v1/auth/roles/{roleId}:
    delete:
      description: Deletes a role. If the role has assigned users, they can be moved to a new role if one is provided.
      operationId: delete_auth_roles_roleId
      parameters:
      - in: path
        name: roleId
        required: true
        schema:
          anyOf:
          - format: uuid
            type: string
          - type: string
          title: Roleid
      requestBody:
        content:
          application/json:
            schema:
              anyOf:
              - $ref: '#/components/schemas/DeleteAuthRoleBody'
              - type: 'null'
              title: Body
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SuccessMessage'
          description: Successful Response
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
      security:
      - HTTPBearer: []
      summary: Delete role
      tags:
      - Auth
    get:
      description: Request a role by its ID.
      operationId: get_auth_roles_roleId
      parameters:
      - in: path
        name: roleId
        required: true
        schema:
          anyOf:
          - format: uuid
            type: string
          - type: string
          title: Roleid
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetAuthRoleResponse'
          description: Successful Response
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
      security:
      - HTTPBearer: []
      summary: Get role
      tags:
      - Auth
    patch:
      description: Modifies the role's name and/or permissions. If permissions are provided, they will replace the existing set.
      operationId: patch_auth_roles_roleId
      parameters:
      - in: path
        name: roleId
        required: true
        schema:
          anyOf:
          - format: uuid
            type: string
          - type: string
          title: Roleid
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PatchAuthRoleBody'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SuccessMessage'
          description: Successful Response
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
      security:
      - HTTPBearer: []
      summary: Update role
      tags:
      - Auth
  /backend/v1/auth/roles/{roleId}/permissions:
    delete:
      description: Revokes one or more existing permissions from the specified role.
      operationId: delete_auth_roles_roleId_permissions
      parameters:
      - in: path
        name: roleId
        required: true
        schema:
          anyOf:
          - format: uuid
            type: string
          - type: string
          title: Roleid
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DeleteAuthRolePermissionsBody'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SuccessMessage'
          description: Successful Response
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
      security:
      - HTTPBearer: []
      summary: Remove permissions
      tags:
      - Auth
    patch:
      description: Add new permissions to a role.
      operationId: patch_auth_roles_roleId_permissions
      parameters:
      - in: path
        name: roleId
        required: true
        schema:
          anyOf:
          - format: uuid
            type: string
          - type: string
          title: Roleid
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PatchAuthRolePermissionsBody'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SuccessMessage'
          description: Successful Response
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
      security:
      - HTTPBearer: []
      summary: Add permissions
      tags:
      - Auth
components:
  schemas:
    GetAuthRoleResponse:
      properties:
        role:
          $ref: '#/components/schemas/Role'
          description: The requested role.
      required:
      - role
      title: GetAuthRoleResponse
      type: object
    GetAuthRolesResponse:
      properties:
        next:
          anyOf:
          - type: string
          - type: 'null'
          description: Cursor to the next page, if any.
          title: Next
        prev:
          anyOf:
          - type: string
          - type: 'null'
          description: Cursor to the previous page, if any.
          title: Prev
        roles:
          description: Roles matching the given filter criteria.
          items:
            $ref: '#/components/schemas/Role'
          title: Roles
          type: array
      required:
      - roles
      title: GetAuthRolesResponse
      type: object
    DeleteAuthRolePermissionsBody:
      properties:
        permissions:
          anyOf:
          - items:
              type: string
            type: array
          - type: 'null'
          description: Permissions to remove from the existing role permission set.
          title: Permissions
      title: DeleteAuthRolePermissionsBody
      type: object
    PatchAuthRolePermissionsBody:
      properties:
        permissions:
          anyOf:
          - items:
              type: string
            type: array
          - type: 'null'
          description: Permissions to add to the existing role permission set.
          title: Permissions
      title: PatchAuthRolePermissionsBody
      type: object
    SuccessMessage:
      description: Confirms a successful operation.
      properties:
        message:
          title: Message
          type: string
      required:
      - message
      title: SuccessMessage
      type: object
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          title: Detail
          type: array
      title: HTTPValidationError
      type: object
    PostAuthRolesBody:
      properties:
        isDefault:
          anyOf:
          - type: boolean
          - type: 'null'
          description: Set the new role as the default.
          title: Isdefault
        name:
          description: Name of the role. Requires case insensitive uniqueness.
          maxLength: 100
          minLength: 1
          title: Name
          type: string
        permissions:
          description: Permissions to grant to users with the created role.
          items:
            type: string
          title: Permissions
          type: array
        projectId:
          anyOf:
          - format: uuid
            type: string
          - type: 'null'
          description: Assign the created role to a given project. If not provided, the role is associated with the organization.
          title: Projectid
      required:
      - name
      - permissions
      title: PostAuthRolesBody
      type: object
    PostSuccessMessage:
      description: Contains the ID of an object after a successful POST operation.
      properties:
        id:
          anyOf:
          - format: uuid
            type: string
          - type: string
          title: Id
      required:
      - id
      title: PostSuccessMessage
      type: object
    Role:
      properties:
        id:
          format: uuid
          title: Id
          type: string
        isDefault:
          anyOf:
          - type: boolean
          - type: 'null'
          default: false
          title: Isdefault
        memberCount:
          title: Membercount
          type: integer
        name:
          title: Name
          type: string
        permissions:
          default: []
          items:
            type: string
          title: Permissions
          type: array
        projectId:
          anyOf:
          - format: uuid
            type: string
          - type: 'null'
          title: Projectid
        system:
          title: System
          type: boolean
      required:
      - id
      - name
      - system
      - memberCount
      title: Role
      type: object
    GetAuthRoleDefaultResponse:
      properties:
        role:
          $ref: '#/components/schemas/Role'
          description: The requested role.
      required:
      - role
      title: GetAuthRoleDefaultResponse
      type: object
    ValidationError:
      properties:
        ctx:
          title: Context
          type: object
        input:
          title: Input
        loc:
          items:
            anyOf:
            - type: string
            - type: integer
          title: Location
          type: array
        msg:
          title: Message
          type: string
        type:
          title: Error Type
          type: string
      required:
      - loc
      - msg
      - type
      title: ValidationError
      type: object
    DeleteAuthRoleBody:
      properties:
        reassignToRoleId:
          anyOf:
          - format: uuid
            type: string
          - type: string
          - type: 'null'
          title: Reassigntoroleid
      title: DeleteAuthRoleBody
      type: object
    PatchAuthRoleBody:
      properties:
        isDefault:
          anyOf:
          - type: boolean
          - type: 'null'
          description: Set the new role as the default.
          title: Isdefault
        name:
          anyOf:
          - maxLength: 100
            minLength: 1
            type: string
          - type: 'null'
          description: New name of the role. Requires case insensitive uniqueness.
          title: Name
        permissions:
          anyOf:
          - items:
              type: string
            type: array
          - type: 'null'
          description: 'New set of the permissions assigned by the role. Replaces existing set.


            To add/remove roles use PATCH/DELETE `/auth/roles/{roleId}/permissions`'
          title: Permissions
      title: PatchAuthRoleBody
      type: object
  securitySchemes:
    HTTPBearer:
      scheme: bearer
      type: http