request-templates

GET /request-templates

Changed on

Returns a list of RequestTemplate objects.

Request

  • Base URL
    https://api.opal.dev/v1
  • Auth
    HTTP bearer

Response

One page worth of request templates for your organization.

nextstring nullable

The cursor with which to continue pagination if additional result pages exist.

previousstring nullable

The cursor used to obtain the current result page.

Example response

{
  "next": "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzAyMTMlMkIwMCUzQTAw",
  "previous": "cj0xJnA9MjAyMS0wMS0wNSswMyUzQTI0JTNBNTMuNDMwMjEz",
  "results": [
    {
      "request_template_id": "7c86c85d-0651-43e2-a748-d69d658418e8",
      "name": "Production access questions",
      "custom_fields": [
        {
          "name": "Why do you need this access?",
          "required": true,
          "metadata": {
            "callout_data": {
              "severity": "WARNING",
              "text": "This role grants access to production customer data."
            },
            "multi_choice_data": {
              "options": [
                "Incident response",
                "Scheduled maintenance"
              ]
            }
          }
        }
      ]
    }
  ]
}

Changes