See api-docs Menu

List Custom Messages

Early Preview

This API is in early preview and may be subject to change. Please contact your account manager if you are interested in trying the Branding API.

Use this API to list custom error messages.




Resource URL

https://<api-domain>/api/2/branding/brands/<brand_id>/custom_error_messages

Header Parameters

Authorization

required

string

Set to bearer <access_token>.

Set <access_token> to the access token you generated using the Generate Token API.

The access token must have been generated using an API credential pair created using the scope required to call this API. This API can be called using any one of the following scopes: Manage All.

In order to use the Branding API your API Credentials must be created after 21st October 2020.

Content-Type

required

string

Set to application/json.

Resource Parameters

brand_id

required

integer | master

Unique identifier for the branding object.

Request Parameters

Acceptable Parameter Combinations

  • None (empty)
  • ID
  • Locale
  • Type ID
  • Type Name
  • Type ID + Locale
  • Type Name + Locale

id

optional

integer

Unique identifier for custom error message.

type_id

optional

integer

Type ID for the custom error message.

Acceptable values:

  • 9

type_name

optional

integer

Type name for the custom error message.

Acceptable values:

  • MESSAGE_TYPE_NO_ACCESS_APP

locale

optional

string

Locale of the custom error message.

Sample Responses

{
    "type_id": 9,
    "locale": "en",
    "title": "Access Denied",
    "description": "This message will appear when the user doesn't have access to certain application",
    "message": "This is from the global legacy access denied"
}

Postman Collection

Replace sample variables indicated by {{ }} with your actual values.

Download for the Branding API


Have a Question?

Found a problem or a bug? Submit a support ticket.

Looking for walkthroughs or how-to guides on OneLogin's user and admin features? Check out the documentation in our Knowledge Base.

Have a product idea or request? Share it with us in our Ideas Portal.