Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent
with a free APIs.io key —
sign in with
GitHub,
Google or
LinkedIn.
No form to fill in; signing in shares your email address with us (Privacy).
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.
openapi: 3.2.0
info:
title: XFA Roles API
version: '1'
servers:
- url: https://api.xfa.tech
description: Production stack API url
- url: https://test-api.xfa.tech
description: Test stack API url
security:
- bearerAuth: []
tags:
- name: Roles
paths:
/roles:
get:
summary: Returns roles with information for user
x-internal: true
tags:
- Roles
responses:
'200':
description: Returns roles for user
content:
application/json:
schema:
$ref: '#/components/schemas/RoleList'
operationId: getRoles
x-operation-id-source: derived
components:
schemas:
Organization:
type: object
properties:
organization_id:
type: string
description: ID of Organization
name:
type: string
description: Name of Organization
address:
type: string
description: Address of Organization
zip_code:
type: string
description: Zip Code of Organization
city:
type: string
description: City of Organization
country:
type: string
description: Country of Organization
vat:
type: string
description: VAT of Organization
tax_number:
type: string
description: Tax Number of Organization
phone_number:
type: string
description: Phone Number of Organization
billing_email:
type: string
description: Billing Email of Organization
alpha_features:
type: boolean
description: Alpha features enabled
beta_features:
type: boolean
description: Beta features enabled
feature_flags:
type: array
description: Feature flags enabled for this organization
items:
$ref: '#/components/schemas/FeatureFlag'
default_policy_id:
type: string
description: Default Policy ID of Organization
required:
- organization_id
- name
- address
- zip_code
- city
- country
- vat
- tax_number
- phone_number
- billing_email
RoleList:
type: array
items:
$ref: '#/components/schemas/Role'
Role:
type: object
properties:
email:
type: string
description: Email of user
roleID:
type: string
description: ID of Role
roleType:
type: string
description: Type of Role
organization_id:
type: string
description: ID of Organization
organization_name:
type: string
description: Name of Organization
organization:
$ref: '#/components/schemas/Organization'
intercom_hmac:
type: string
description: Intercom HMAC
organization_role:
type: string
enum:
- Administrator
- ReadOnly
description: 'The person''s role in this organization, on organization roles only. Left out on staff roles (System Administrator, Internal Read-Only) and when the role could not be read: treat a missing value as unknown, never as Administrator.'
required:
- email
- roleID
- roleType
- organization_id
- organization_name
- organization
- intercom_hmac
FeatureFlag:
type: string
description: 'An organization feature flag. Values are validated by xfa-organizations-service (`FeatureFlag.IsValid()`), which is the single source of truth; this contract is intentionally left open so that adding a new flag does not require an xfa-api change. Currently known values: phishing_lab, runaway_ai, edr-detection, safe_browsing, slack, teams, self_invite, mem_export, unattended_remote_access, aikido_enabled, application_checks_enabled, idp, play_protect, mdm_enrollment, passkeys, admin_mfa_approval.'
example: play_protect
securitySchemes:
bearerAuth:
type: http
scheme: bearer
bearerFormat: JWT