---
title: Get Request Priority, Status, and TLP constants
---

[Skip to content](#_top)

[API Reference](https://developers.cloudflare.com/api/go)

[Cloudforce One](https://developers.cloudflare.com/api/go/resources/cloudforce_one)

[Requests](https://developers.cloudflare.com/api/go/resources/cloudforce_one/subresources/requests)

Copy Markdown

Open in **Claude**Open in **ChatGPT**Open in **Cursor**

---

**Copy Markdown****View as Markdown**

# Get Request Priority, Status, and TLP constants

client.CloudforceOne.Requests.Constants(ctx, query) (\*[RequestConstants](<https://developers.cloudflare.com/api/go/resources/cloudforce_one#(resource)%20cloudforce_one.requests%20%3E%20(model)%20request_constants%20%3E%20(schema)>), error)

GET/accounts/{account\_id}/cloudforce-one/requests/constants

Retrieves constant values used in Cloudforce One requests, including valid statuses and types.

##### Security

API Email + API Key

The previous authorization scheme for interacting with the Cloudflare API, used in conjunction with a Global API key.

**Example:**`X-Auth-Email: user@example.com`

The previous authorization scheme for interacting with the Cloudflare API. When possible, use API tokens instead of Global API keys.

**Example:**`X-Auth-Key: 144c9defac04969c7bfad8efaa8ea194`

##### Accepted Permissions (at least one required)

`Cloudforce One Write``Cloudforce One Read`

##### ParametersExpand Collapse

<details>

<summary>

query RequestConstantsParams

</summary>

AccountID param.Field\[string]

Identifier.

maxLength32

<a href="#(resource)%20cloudforce_one.requests%20%3E%20(method)%20constants%20%3E%20(params)%20default%20%3E%20(param)%20account_id">Link to this property</a>

</details>

[Link to this property](<#(resource)%20cloudforce_one.requests%20%3E%20(method)%20constants%20%3E%20(params)%20default>)

##### ReturnsExpand Collapse

<details>

<summary>

type RequestConstants struct{…}

</summary>

<details>

<summary>

Priority \[]RequestConstantsPriorityOptional

</summary>

One of the following:

const RequestConstantsPriorityRoutine RequestConstantsPriority = "routine"

<a href="#(resource)%20cloudforce_one.requests%20%3E%20(model)%20request_constants%20%3E%20(schema)%20%3E%20(property)%20priority%20%3E%20(items)%20%3E%20(member)%200">Link to this property</a>

const RequestConstantsPriorityHigh RequestConstantsPriority = "high"

<a href="#(resource)%20cloudforce_one.requests%20%3E%20(model)%20request_constants%20%3E%20(schema)%20%3E%20(property)%20priority%20%3E%20(items)%20%3E%20(member)%201">Link to this property</a>

const RequestConstantsPriorityUrgent RequestConstantsPriority = "urgent"

<a href="#(resource)%20cloudforce_one.requests%20%3E%20(model)%20request_constants%20%3E%20(schema)%20%3E%20(property)%20priority%20%3E%20(items)%20%3E%20(member)%202">Link to this property</a>

</details>

<a href="#(resource)%20cloudforce_one.requests%20%3E%20(model)%20request_constants%20%3E%20(schema)%20%3E%20(property)%20priority">Link to this property</a>

<details>

<summary>

Status \[]RequestConstantsStatusOptional

</summary>

One of the following:

const RequestConstantsStatusOpen RequestConstantsStatus = "open"

<a href="#(resource)%20cloudforce_one.requests%20%3E%20(model)%20request_constants%20%3E%20(schema)%20%3E%20(property)%20status%20%3E%20(items)%20%3E%20(member)%200">Link to this property</a>

const RequestConstantsStatusAccepted RequestConstantsStatus = "accepted"

<a href="#(resource)%20cloudforce_one.requests%20%3E%20(model)%20request_constants%20%3E%20(schema)%20%3E%20(property)%20status%20%3E%20(items)%20%3E%20(member)%201">Link to this property</a>

const RequestConstantsStatusReported RequestConstantsStatus = "reported"

<a href="#(resource)%20cloudforce_one.requests%20%3E%20(model)%20request_constants%20%3E%20(schema)%20%3E%20(property)%20status%20%3E%20(items)%20%3E%20(member)%202">Link to this property</a>

const RequestConstantsStatusApproved RequestConstantsStatus = "approved"

<a href="#(resource)%20cloudforce_one.requests%20%3E%20(model)%20request_constants%20%3E%20(schema)%20%3E%20(property)%20status%20%3E%20(items)%20%3E%20(member)%203">Link to this property</a>

const RequestConstantsStatusCompleted RequestConstantsStatus = "completed"

<a href="#(resource)%20cloudforce_one.requests%20%3E%20(model)%20request_constants%20%3E%20(schema)%20%3E%20(property)%20status%20%3E%20(items)%20%3E%20(member)%204">Link to this property</a>

const RequestConstantsStatusDeclined RequestConstantsStatus = "declined"

<a href="#(resource)%20cloudforce_one.requests%20%3E%20(model)%20request_constants%20%3E%20(schema)%20%3E%20(property)%20status%20%3E%20(items)%20%3E%20(member)%205">Link to this property</a>

</details>

<a href="#(resource)%20cloudforce_one.requests%20%3E%20(model)%20request_constants%20%3E%20(schema)%20%3E%20(property)%20status">Link to this property</a>

<details>

<summary>

TLP \[]RequestConstantsTLPOptional

</summary>

One of the following:

const RequestConstantsTLPClear RequestConstantsTLP = "clear"

<a href="#(resource)%20cloudforce_one.requests%20%3E%20(model)%20request_constants%20%3E%20(schema)%20%3E%20(property)%20tlp%20%3E%20(items)%20%3E%20(member)%200">Link to this property</a>

const RequestConstantsTLPAmber RequestConstantsTLP = "amber"

<a href="#(resource)%20cloudforce_one.requests%20%3E%20(model)%20request_constants%20%3E%20(schema)%20%3E%20(property)%20tlp%20%3E%20(items)%20%3E%20(member)%201">Link to this property</a>

const RequestConstantsTLPAmberStrict RequestConstantsTLP = "amber-strict"

<a href="#(resource)%20cloudforce_one.requests%20%3E%20(model)%20request_constants%20%3E%20(schema)%20%3E%20(property)%20tlp%20%3E%20(items)%20%3E%20(member)%202">Link to this property</a>

const RequestConstantsTLPGreen RequestConstantsTLP = "green"

<a href="#(resource)%20cloudforce_one.requests%20%3E%20(model)%20request_constants%20%3E%20(schema)%20%3E%20(property)%20tlp%20%3E%20(items)%20%3E%20(member)%203">Link to this property</a>

const RequestConstantsTLPRed RequestConstantsTLP = "red"

<a href="#(resource)%20cloudforce_one.requests%20%3E%20(model)%20request_constants%20%3E%20(schema)%20%3E%20(property)%20tlp%20%3E%20(items)%20%3E%20(member)%204">Link to this property</a>

</details>

<a href="#(resource)%20cloudforce_one.requests%20%3E%20(model)%20request_constants%20%3E%20(schema)%20%3E%20(property)%20tlp">Link to this property</a>

</details>

[Link to this property](<#(resource)%20cloudforce_one.requests%20%3E%20(model)%20request_constants%20%3E%20(schema)>)

### Get Request Priority, Status, and TLP constants

Go

HTTPTypeScriptPythonGoTerraform

```
package main

import (
  "context"
  "fmt"

  "github.com/cloudflare/cloudflare-go"
  "github.com/cloudflare/cloudflare-go/cloudforce_one"
  "github.com/cloudflare/cloudflare-go/option"
)

func main() {
  client := cloudflare.NewClient(
    option.WithAPIKey("144c9defac04969c7bfad8efaa8ea194"),
    option.WithAPIEmail("user@example.com"),
  )
  requestConstants, err := client.CloudforceOne.Requests.Constants(context.TODO(), cloudforce_one.RequestConstantsParams{
    AccountID: cloudflare.F("023e105f4ecef8ad9ca31a8372d0c353"),
  })
  if err != nil {
    panic(err.Error())
  }
  fmt.Printf("%+v\n", requestConstants.Priority)
}
```

200 example

```
{
  "errors": [
    {
      "code": 1000,
      "message": "message",
      "documentation_url": "documentation_url",
      "source": {
        "pointer": "pointer"
      }
    }
  ],
  "messages": [
    {
      "code": 1000,
      "message": "message",
      "documentation_url": "documentation_url",
      "source": {
        "pointer": "pointer"
      }
    }
  ],
  "success": true,
  "result": {
    "priority": [
      "routine",
      "high",
      "urgent"
    ],
    "status": [
      "open",
      "accepted",
      "reported",
      "approved",
      "completed",
      "declined"
    ],
    "tlp": [
      "clear",
      "green",
      "amber",
      "amber-strict",
      "red"
    ]
  }
}
```

##### Returns Examples

200 example

```
{
  "errors": [
    {
      "code": 1000,
      "message": "message",
      "documentation_url": "documentation_url",
      "source": {
        "pointer": "pointer"
      }
    }
  ],
  "messages": [
    {
      "code": 1000,
      "message": "message",
      "documentation_url": "documentation_url",
      "source": {
        "pointer": "pointer"
      }
    }
  ],
  "success": true,
  "result": {
    "priority": [
      "routine",
      "high",
      "urgent"
    ],
    "status": [
      "open",
      "accepted",
      "reported",
      "approved",
      "completed",
      "declined"
    ],
    "tlp": [
      "clear",
      "green",
      "amber",
      "amber-strict",
      "red"
    ]
  }
}
```