Get the project configuration
const url = 'https://app.squally.dev/api/v1/projects/example/settings';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://app.squally.dev/api/v1/projects/example/settings \ --header 'Authorization: Bearer <token>'Stable branch, the plan’s retention, Slack events, PR comments. Configuration only - never a key, token or webhook. Cheap.
Authorizations
Section titled “Authorizations”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters”A project id from GET /projects.
Responses
Section titled “ Responses ”OK
object
object
object
object
object
Examplegenerated
{ "project": { "id": "example", "name": "example" }, "settings": { "stableBranch": "example", "retentionDays": 1, "slack": { "configured": true, "events": [ "example" ] }, "github": { "prCommentsEnabled": true } }}Headers
Section titled “Headers”When the read key expires (ISO-8601). Present only from 7 days before expiry.
Error: invalid_key, key_expired, key_revoked, missing_key, wrong_key_type
object
A sentence for a human. May be reworded.
Stable slug - match on this, not on the sentence.
Example
{ "code": "invalid_key"}Error: tier_too_low
object
A sentence for a human. May be reworded.
Stable slug - match on this, not on the sentence.
Example
{ "code": "tier_too_low"}Error: project_not_found
object
A sentence for a human. May be reworded.
Stable slug - match on this, not on the sentence.
Example
{ "code": "project_not_found"}Rate limited by the edge firewall. No JSON body and no Retry-After - back off for at least 60 s.
Error: internal_error
object
A sentence for a human. May be reworded.
Stable slug - match on this, not on the sentence.
Example
{ "code": "internal_error"}