---
title: "Returns roles with information for user"
method: GET
path: "/roles"
tags: ["Roles"]
---

# Returns roles with information for user

`GET /roles`

## Request

- Base URL: `https://api.xfa.tech`
- URL: `https://api.xfa.tech/roles`
- Auth: HTTP bearer

## Response `200`

Returns roles for user

- Role[]
  - `email` string, required: Email of user
  - `roleID` string, required: ID of Role
  - `roleType` string, required: Type of Role
  - `organization_id` string, required: ID of Organization
  - `organization_name` string, required: Name of Organization
  - `organization` Organization, required
    - `organization_id` string, required: ID of Organization
    - `name` string, required: Name of Organization
    - `address` string, required: Address of Organization
    - `zip_code` string, required: Zip Code of Organization
    - `city` string, required: City of Organization
    - `country` string, required: Country of Organization
    - `vat` string, required: VAT of Organization
    - `tax_number` string, required: Tax Number of Organization
    - `phone_number` string, required: Phone Number of Organization
    - `billing_email` string, required: Billing Email of Organization
    - `alpha_features` boolean: Alpha features enabled
    - `beta_features` boolean: Beta features enabled
    - `feature_flags` FeatureFlag[]: Feature flags enabled for this organization
    - `default_policy_id` string: Default Policy ID of Organization
  - `intercom_hmac` string, required: Intercom HMAC

---

[API](https://skmtc.dev/xfa/apis/xfa-api.md) · [All operations](https://skmtc.dev/xfa/apis/xfa-api/llms.txt) · [OpenAPI document](https://skmtc.dev/xfa/apis/xfa-api/revisions/1a1be0e8972b?raw)
