openapi: 3.2.0 info: title: Cacheflow Roles API version: 0.0.3 servers: - url: https://api.getcacheflow.com description: 'Production. Calls are tenant-routed: send Host: .api.getcacheflow.com (per github.com/getcacheflow/api-examples SETUP.md). Host no longer resolves as of 2026-08-13.' - url: https://api.sandbox.getcacheflow.com description: Sandbox. Tenant-routed as .api.sandbox.getcacheflow.com. Host no longer resolves as of 2026-08-13. tags: - name: Roles paths: /api/latest/data/roles: get: tags: - Roles summary: List roles operationId: getAllRoles responses: '200': description: OK content: application/json: schema: type: array items: type: string enum: - anonymous - auth_identity - system - admin - user - observer - sales - scope - api - buyer_guest - buyer_preview - buyer /api/latest/data/roles/{id}: get: tags: - Roles summary: Get users for role operationId: getUsersForRole parameters: - name: id in: path required: true schema: type: string enum: - anonymous - auth_identity - system - admin - user - observer - sales - scope - api - buyer_guest - buyer_preview - buyer responses: '200': description: OK content: application/json: schema: type: array items: $ref: '#/components/schemas/UserProfile' components: schemas: UserEmail: type: object properties: id: type: string format: uuid createdAt: type: string format: date-time readOnly: true createdBy: type: string updatedAt: type: string format: date-time readOnly: true updatedBy: type: string readOnly: true email: type: string status: type: string enum: - pending - active - inactive user: $ref: '#/components/schemas/User' User: type: object properties: id: type: string format: uuid createdAt: type: string format: date-time readOnly: true createdBy: type: string updatedAt: type: string format: date-time readOnly: true updatedBy: type: string readOnly: true username: type: string status: type: string enum: - pending - active - inactive source: type: string firstName: type: string lastName: type: string lastActiveAt: type: string format: date-time manager: $ref: '#/components/schemas/User' UserProfile: type: object properties: user: $ref: '#/components/schemas/User' roleType: type: string enum: - anonymous - auth_identity - system - admin - user - observer - sales - scope - api - buyer_guest - buyer_preview - buyer invite: type: boolean emails: type: array items: $ref: '#/components/schemas/UserEmail'