API Specifications

Homepage endpoint.

get

A simple endpoint that serves a homepage.

Authorizations
AuthorizationstringRequired
Responses
chevron-right
200

Homepage rendered successfully.

text/html
Responsestring

HTML content of the homepage.

get
/

Retrieve FusionAuth audit logs and login records.

get

Fetches audit log and login record data from FusionAuth. This data corresponds to the information available in the Audit Log and Login Records sections of the FusionAuth server dashboard.

Authorizations
AuthorizationstringRequired
Header parameters
Application-TokenstringRequired

Authentication token for the application.

App-NamestringOptional

Name of the registration (application), with fallbacks to 'appName' header or a default value if not provided.

Responses
chevron-right
200

Audit logs and login records retrieved successfully, some infos about them are returned.

application/json
Responseobject
get
/apif/audit-logs

Upload FusionAuth audit logs that have to substitute all precedent logs.

post

Allows for the uploading of new FusionAuth's audit log entries. All data must adhere to the FusionAuth log format.

Authorizations
AuthorizationstringRequired
Header parameters
Application-TokenstringRequired

Authentication token for the application.

App-NamestringOptional

Name of the registration (application), with fallbacks to 'appName' header or a default value if not provided.

Bodyobject[]
audit_logsobjectOptional

Audit logs.

loginsobjectOptional

Info about logins.

appsobjectOptional
usersobjectOptional
identitiesobjectOptional
Responses
chevron-right
200

Audit logs uploaded successfully.

application/json
Responseobject
post
/apif/audit-logs

Endpoint to check user permissions.

post

This endpoint allows verifying if a user, identified by his token, possesses the permissions specified in the request according to the desired logic (possesses at least one of the specified permissions or possesses all of the specified permissions). The response also indicates the set of all groups to which the user belongs.

Authorizations
AuthorizationstringRequired
Header parameters
App-NamestringOptional

Name of the registration (application) for which you want to obtain the token.

Example: MAT APP
AuthorizationstringRequired

a string which is the Base64 encoded version of the concatenation of the client ID, a colon (:), and the client secret ("{clientId}:{clientSecret}"" in Base64). The string has to start with the term "Basic ".

Example: Basic WW91ckNsaWVudElEOllvdXJTZWNyZXQ=
Body
user_tokenstringOptional

The token of the user for whom permission verification is requested.

Example: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...
Responses
chevron-right
200

Returns user permission check results, including the list of groups to which the user belongs and a key indicating whether the user possesses the permissions specified in the request list. It uses the specified logic to check permissions (possesses all permissions if the logic is 'AND', possesses at least one of the specified permissions if the logic is 'OR').

application/json
post
/apif/check-user-permissions

Retrieve a list of groups.

get

Fetches a list of groups from the identity provider. Supports additional query parameters for the identity provider's API.

Authorizations
AuthorizationstringRequired
Header parameters
Application-TokenstringRequired

Authentication token for the application.

App-NamestringOptional

The name of the registration (application), with a default fallback if not provided.

AuthorizationstringRequired

A string which is the Base64 encoded version of the concatenation of the client ID, a colon (:), and the client secret ("{clientId}:{clientSecret}"" in Base64). The string has to start with the term "Basic ".

Example: Basic WW91ckNsaWVudElEOllvdXJTZWNyZXQ=
Responses
chevron-right
200

List of groups retrieved successfully.

application/json
Responsearray

List of requested groups.

get
/apif/groups

Create new groups

post

Creates new groups in the identity provider. The request body should contain an array of groups to be created.

Authorizations
AuthorizationstringRequired
Header parameters
Application-TokenstringRequired

Authentication token for the application.

App-NamestringOptional

The name of the registration (application), with a default fallback if not provided.

AuthorizationstringRequired

A string which is the Base64 encoded version of the concatenation of the client ID, a colon (:), and the client secret ("{clientId}:{clientSecret}"" in Base64). The string has to start with the term "Basic ".

Example: Basic WW91ckNsaWVudElEOllvdXJTZWNyZXQ=
Body
anyOptional

Groups to be created in the identity provider.

Responses
chevron-right
200

Groups created successfully.

application/json
Responseany

The list of groups just created, or an error object if creation failed.

post
/apif/groups

Retrieve info about a group.

get

Retrieves detailed information about the specified group.

Authorizations
AuthorizationstringRequired
Query parameters
group_idstringRequired

Unique identifier of the group.

Header parameters
Application-TokenstringRequired

Authentication token for the application.

App-NamestringOptional

The name of the registration (application), with a default fallback if not provided.

AuthorizationstringRequired

A string which is the Base64 encoded version of the concatenation of the client ID, a colon (:), and the client secret ("{clientId}:{clientSecret}"" in Base64). The string has to start with the term "Basic ".

Example: Basic WW91ckNsaWVudElEOllvdXJTZWNyZXQ=
Responses
chevron-right
200

Group information retrieved successfully.

No content

get
/apif/groups/{group_id}

No content

Update group information.

put

Updates the information of a specified group.

Authorizations
AuthorizationstringRequired
Query parameters
group_idstringRequired

Unique identifier of the group.

Header parameters
Application-TokenstringRequired

Authentication token for the application.

App-NamestringOptional

The name of the registration (application), with a default fallback if not provided.

AuthorizationstringRequired

a string which is the Base64 encoded version of the concatenation of the client ID, a colon (:), and the client secret ("{clientId}:{clientSecret}"" in Base64). The string has to start with the term "Basic ".

Example: Basic WW91ckNsaWVudElEOllvdXJTZWNyZXQ=
Body
anyOptional

Group data to be updated.

Responses
chevron-right
200

Group information retrieved successfully.

No content

put
/apif/groups/{group_id}

No content

Delete the specified group.

delete

Deletes a specific group by its ID.

Authorizations
AuthorizationstringRequired
Query parameters
group_idstringRequired

Unique identifier of the group to be deleted.

Header parameters
Application-TokenstringRequired

Authentication token for the application.

App-NamestringOptional

The name of the registration (application), with a default fallback if not provided.

AuthorizationstringRequired

a string which is the Base64 encoded version of the concatenation of the client ID, a colon (:), and the client secret ("{clientId}:{clientSecret}"" in Base64). The string has to start with the term "Basic ".

Example: Basic WW91ckNsaWVudElEOllvdXJTZWNyZXQ=
Responses
chevron-right
200

Group deleted successfully.

No content

delete
/apif/groups/{group_id}

No content

Return the memebers of a group.

get

Get all group members given a specified group.

Authorizations
AuthorizationstringRequired
Query parameters
group_idstringRequired

ID of the group.

Header parameters
Application-TokenstringRequired

Application authentication token.

App-NamestringOptional

Name of the registration (application), with fallbacks to 'appName' header or a default value if not provided.

AuthorizationstringRequired

a string which is the Base64 encoded version of the concatenation of the client ID, a colon (:), and the client secret ("{clientId}:{clientSecret}"" in Base64). The string has to start with the term "Basic ".

Example: Basic WW91ckNsaWVudElEOllvdXJTZWNyZXQ=
Responses
chevron-right
200

Successful operation.

application/json
Responsearray
get
/apif/groups/{group_id}/members

Add members to a group.

post

Add the specified members to the specified group.

Authorizations
AuthorizationstringRequired
Query parameters
group_idstringRequired

ID of the group.

Header parameters
Application-TokenstringRequired

Application authentication token.

App-NamestringOptional

Name of the registration (application), with fallbacks to 'appName' header or a default value if not provided.

AuthorizationstringRequired

a string which is the Base64 encoded version of the concatenation of the client ID, a colon (:), and the client secret ("{clientId}:{clientSecret}"" in Base64). The string has to start with the term "Basic ".

Example: Basic WW91ckNsaWVudElEOllvdXJTZWNyZXQ=
Bodyarray
arrayOptional

list of the members that have to be added to the group.

Responses
post
/apif/groups/{group_id}/members

Remove a member from a group.

delete

Remove the specified member from the specified group.

Authorizations
AuthorizationstringRequired
Query parameters
group_idstringRequired

ID of the group.

user_idstringRequired

ID of the user to remove.

Header parameters
Application-TokenstringRequired

Application authentication token.

App-NamestringOptional

Name of the registration (application), with fallbacks to 'appName' header or a default value if not provided.

AuthorizationstringRequired

a string which is the Base64 encoded version of the concatenation of the client ID, a colon (:), and the client secret ("{clientId}:{clientSecret}"" in Base64). The string has to start with the term "Basic ".

Example: Basic WW91ckNsaWVudElEOllvdXJTZWNyZXQ=
Responses
delete
/apif/groups/{group_id}/members
204

Member removed successfully.

Send invitations.

post

This endpoint allows to send the invitations that are specified in the body.

Authorizations
AuthorizationstringRequired
Header parameters
App-NamestringOptional

The name of the registration (application), with a default fallback if not provided.

Application-TokenstringRequired

Application authentication token.

AuthorizationstringRequired

A string which is the Base64 encoded version of the concatenation of the client ID, a colon (:), and the client secret ("{clientId}:{clientSecret}"" in Base64). The string has to start with the term "Basic ".

Example: Basic WW91ckNsaWVudElEOllvdXJTZWNyZXQ=
Body
objectOptional

It contains infos about the invitation that have to be sent.

Responses
chevron-right
200

Invitation sent successfully.

application/json
Responseobject

It contains data abouth every invitiation that has been sent.

post
/apif/invitations

Endpoint to retrieve an Application Token.

post

This endpoint allows obtaining an application token, which is a token that identifies an application as a service and allows it to perform operations. To obtain this token, the requester must perform a basic auth with the Auth Manager. It is mandatory to specify the App-Name key in the request cookies to identify the registration (application) for which the application token is requested.

Authorizations
AuthorizationstringRequired
Header parameters
App-NamestringOptional

Name of the registration (application) you want to get the token for.

Example: MAT APP
AuthorizationstringRequired

A string which is the Base64 encoded version of the concatenation of the client ID, a colon (:), and the client secret ("{clientId}:{clientSecret}"" in Base64). The string has to start with the term "Basic ".

Example: Basic WW91ckNsaWVudElEOllvdXJTZWNyZXQ=
Body
Responses
chevron-right
200

Success, technical token retrieved and returned.

application/json
post
/apif/oauth/application-token

Retrieve a list of users for the specified registration (App-Name).

get
Authorizations
AuthorizationstringRequired
Header parameters
App-NamestringOptional

The name of the application, with a default fallback if not provided.

Application-TokenstringRequired

Application authentication token.

Responses
chevron-right
200

The list of user for the App-Name application.

application/json
Responseobject
get
/apif/users

Create users for the registration (application) specified in App-Name.

post
Authorizations
AuthorizationstringRequired
Header parameters
App-NamestringOptional

The name of the application, with a default fallback if not provided.

Application-TokenstringRequired

Application authentication token.

Body
objectOptional

it contains the data of the users that have to be added.

Responses
chevron-right
200

Users created successfully.

application/json
Responseobject

Returns data of the added users.

post
/apif/users

Retrieve information for the specified user.

get
Authorizations
AuthorizationstringRequired
Query parameters
user_idstringRequired

Unique identifier of the user.

Header parameters
App-NamestringOptional

The name of the registration (application), with a default fallback if not provided.

Application-TokenstringRequired

Application authentication token.

AuthorizationstringRequired

A string which is the Base64 encoded version of the concatenation of the client ID, a colon (:), and the client secret ("{clientId}:{clientSecret}"" in Base64). The string has to start with the term "Basic ".

Example: Basic WW91ckNsaWVudElEOllvdXJTZWNyZXQ=
Responses
chevron-right
200

User information retrieved successfully.

application/json
Responseobject

Info about the specified user.

get
/apif/users/{user_id}

Update information for the specified user.

put
Authorizations
AuthorizationstringRequired
Query parameters
user_idstringRequired

Unique identifier of the user.

Header parameters
App-NamestringOptional

The name of the registration (application), with a default fallback if not provided.

Application-TokenstringRequired

Application authentication token.

AuthorizationstringRequired

A string which is the Base64 encoded version of the concatenation of the client ID, a colon (:), and the client secret ("{clientId}:{clientSecret}"" in Base64). The string has to start with the term "Basic ".

Example: Basic WW91ckNsaWVudElEOllvdXJTZWNyZXQ=
Body
objectOptional

It has to contain the info about the user that have to be updated.

Responses
chevron-right
200

User information updated successfully.

application/json
Responseobject

It containes the new data about the specified user.

put
/apif/users/{user_id}

Delete the specified user

delete
Authorizations
AuthorizationstringRequired
Path parameters
user_idstringRequired

Unique identifier of the user.

Header parameters
App-NamestringOptional

The name of the registration (application), with a default fallback if not provided.

Application-TokenstringRequired

Application authentication token.

AuthorizationstringRequired

A string which is the Base64 encoded version of the concatenation of the client ID, a colon (:), and the client secret ("{clientId}:{clientSecret}"" in Base64). The string has to start with the term "Basic ".

Example: Basic WW91ckNsaWVudElEOllvdXJTZWNyZXQ=
Responses
chevron-right
200

User deleted successfully.

No content

delete
/apif/users/{user_id}

No content

Retrieve user token and redirect the flow.

get

This endpoint first attempts to retrieve a valid token for the user and the registration specified in the App-Name key, then sets the token within the cookies, breaking it into multiple parts depending on its length and the maximum length set by the configuration of the Auth Manager. The progressive key used in the cookies to save the token follows the following pattern: "&{App-Name}_token{n}" where {App-Name} should be replaced with the value in the App-Name key, while {n} is a sequential number indicating how to reassemble the token. It is mandatory to specify in the request cookies the key App-Name, which indicates the name of the application, and the host key, which identifies the URL to which to redirect the flow.

Authorizations
AuthorizationstringRequired
Responses
get
/authorize

No content

Retrieve user token and redirect the flow.

post

This endpoint first attempts to retrieve a valid token for the user and the registration specified in the App-Name key, then sets the token within the cookies, breaking it into multiple parts depending on its length and the maximum length set by the configuration of the Auth Manager. The progressive key used in the cookies to save the token follows the following pattern: "&{App-Name}_token{n}" where {App-Name} should be replaced with the value in the App-Name key, while {n} is a sequential number indicating how to reassemble the token. It is mandatory to specify in the request cookies the key App-Name, which indicates the name of the application, and the host key, which identifies the URL to which to redirect the flow.

Authorizations
AuthorizationstringRequired
Responses
post
/authorize

No content

Endpoint to perform log in procedures.

get

This endpoint handles login requests, which includes determining the appropriate OAuth provider, building a dynamic or custom redirect URI for authorization, and then redirecting the client to the OAuth authorization URL. It is mandatory to specify in the cookies the keys 'host', which indicates the host to call when the OAuth provider performs the redirect (typically, it is necessary to indicate the path of the current Auth Manager) and 'path', which indicates the endpoint to call at the Auth Manager to validate the token just obtained from the provider. Also 'App-Name' has to be specified in the request cookies: it represents the registration (application).

Authorizations
AuthorizationstringRequired
Responses
get
/login

No content

Endpoint to log out from the registration.

get

This endpoint must be invoked when you want to log out from the application in which you are logged in. In addition to performing the logout, the user's session is cleared, and a redirect to Azure services occurs. NB: it is mandatory to specify in cookies the App-Name field, which indicates the registration (application).

Authorizations
AuthorizationstringRequired
Responses
chevron-right
200

Redirect to the logout URL.

text/html
Responseobject

Redirecting to logout URL.

get
/logout

Endpoint to refresh a token.

post

This endpoint allows obtaining a new token to replace the one currently held, using the available refresh token. This operation should be performed to avoid expiration of the current token, which would otherwise require the user to log in again.

Authorizations
AuthorizationstringRequired
Header parameters
App-NamestringOptional

Name of the registration (application) you want to get the token for.

Default: MAT APP
credentialsstringRequired

A string which is the Base64 encoded version of the concatenation of the client ID, a colon (:), and the client secret ("{clientId}:{clientSecret}"" in Base64). The string has to start with the term "Basic ".

Example: Basic WW91ckNsaWVudElEOllvdXJTZWNyZXQ=
Body
refresh_tokenstringOptional

The refresh token associated to the user token.

Responses
chevron-right
200

Success, new token retrieved and returned

application/json
post
/refresh-token

Get the status of the Auth Manager Server.

get

Returns the current status of the server. If deep is set to true, it performs a deep inspection of all running processes, which can be resource-intensive. The sort_by parameter allows sorting the results based on one of the process attributes.

Authorizations
AuthorizationstringRequired
Query parameters
sort_bystringOptional

The attribute to sort the process information by.

deepbooleanOptional

Flag to indicate if a deep inspection should be performed.

Default: false
Responses
chevron-right
200

Server status returned successfully.

application/json
get
/status

Get a teapot image.

get

Returns an image of a teapot. This endpoint humorously implements HTTP status 418 ("I'm a teapot"), which is a reference to the HTCPCP, an April Fools' joke from 1998. It's a playful reminder that technology also has room for humor and light-heartedness.

Authorizations
AuthorizationstringRequired
Responses
get
/teapot

Last updated