See api-docs Menu

Lookup Custom Message

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 lookup the custom error message. At this time, it is not possible to create a new custom message, only to modify existing messages.




Resource URL

https://<api-domain>/api/2/branding/custom_error_message

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.

Request Parameters

Acceptable Parameter Combinations

  • Type ID
  • Type Name
  • Type ID + Locale
  • Type Name + Locale
  • App ID + Type ID
  • App ID + Type Name
  • App ID + Type ID + Locale
  • App ID + Type Name + Locale

app_id

optional

integer

Unique identifier for application.

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.