Skip to content

List all project variables

GET
/api/v4/projects/{id}/variables

Lists all variables for a project. Use the page and per_page pagination parameters to control the pagination of results.

id
required
One of:
string

The ID of a project or URL-encoded NAMESPACE/PROJECT_NAME of the project owned by the authenticated user

page
integer
default: 1 nullable

Current page number

Example
1
per_page
integer
default: 20 nullable

Number of items per page

Example
20

OK

Media type application/json
object
variable_type
string
key
string
value
string
hidden
boolean
protected
boolean
masked
boolean
raw
boolean
environment_scope
string
description
string
Example
{
"variable_type": "env_var",
"key": "TEST_VARIABLE_1",
"value": "TEST_1",
"environment_scope": "*",
"description": "This variable is being used for ..."
}

Bad Request

Not Found