> ## Documentation Index
> Fetch the complete documentation index at: https://docs.flexagon.com/llms.txt
> Use this file to discover all available pages before exploring further.

# FlexDeploy API Guide

> This API Guide provides detailed instructions for using the APIs included with FlexDeploy. FlexDeploy REST APIs use Basic Authentication and support b

This API Guide provides detailed instructions for using the APIs included with FlexDeploy.

FlexDeploy REST APIs use **Basic Authentication** and support both **username/password** and **token-based** authentication. API Tokens are supported for all user types in the **Local** and **External** realms. Any groups assigned on the **Edit User** page are stored in the Local realm and are always considered for user authorization in both REST API and UI access. When Realm-level Group Mapping is **allowed** with REST API, these locally assigned groups are **added to** (rather than replacing) the groups provided by the Realm.

Users in the **Local realm** and **External (LDAP, non-SSO) realm** can access REST APIs using either username/password or token.

Users in the **SSO realm** can access REST APIs only using a token. Because SSO-based group mappings are **not** applied to REST API calls, **authorization** is determined solely by the groups mapped locally on the **Edit User** page. If Realm-level Group Mapping is enabled for SSO, this means that any user who requires REST API access must have the same groups replicated locally—an approach that works but is not ideal, as it creates additional administrative overhead and increases the risk of authorization inconsistencies between UI and API access.

See [API Tokens](https://docs.flexagon.com/flexdeploy-11-0-documentation/flexdeploy-users-guide/user-profile/api-tokens.md) for details on tokens.

## Version 2 API Details

V2 documentation is hosted at [https://flexagon.com/api-spec/11.0/v2/](https://flexagon.com/api-spec/11.0/v2/)

## Version 1 API Details

All V1 REST APIs have been deprecated since FlexDeploy 6.0 and may be removed in the next major FlexDeploy release.

V1 documentation is hosted at [https://flexagon.com/api-spec/11.0/v1/](https://flexagon.com/api-spec/11.0/v1/)

## GraphQL API Details

The GraphQL schema is served on the FlexDeploy server. It can easily be retrieved using Postman, GraphQL, or similar tools. See [GraphQL API Queries](https://docs.flexagon.com/flexdeploy-11-0-documentation/flexdeploy-api-guide/graphql-api-queries.md) for more information about using FlexDeploy GraphQL queries.
