List global build commands via API
This method returns all global build command templates defined at the account level.
Tip: You can explore and test this endpoint interactively using our OpenAPI documentation.
URL
/global_build_commands
HTTP Method
GET
Example cURL Request
curl -H "Accept: application/json" \
--user your-email@example.com:your-api-key \
https://test.deployhq.com/global_build_commands
Example Response
[
{
"identifier": "df8966fe-e161-4517-98e2-24f79102dd62",
"description": "Install dependencies",
"command": "npm ci",
"halt_on_error": true,
"source": "global"
}
]
Error Responses
401 Unauthorized- the email address or API key is missing or incorrect403 Forbidden- your user is not an account administrator