Skip to content

Where a brand's files live

GET
/api/v1/brands/{slug}/source
curl --request GET \
--url http://localhost:3000/api/v1/brands/example/source \
--header 'Authorization: Bearer <token>'

The repository, branch and folder, the commit both sides last agreed at, and pending when the brand changed here since; source is null when it lives here alone. connect: where this server connects a repository.

Scope: read.

slug
required
string

Brand slug

The source

Media typeapplication/json
object
data
required
object
source
required
Any of:
object
remote
required
string
branch
required
string
path
required
string
commit
required
string | null
syncedAt
required
Any of:
string format: date-time
/^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z|([+-](?:[01]\d|2[0-3]):[0-5]\d)))$/
pending
required

Changed here since the repository last agreed: an export is due

boolean
files
required

Assets that are files in the repository

integer
>= -9007199254740991 <= 9007199254740991
connect
required
Any of:
string format: uri
Examplegenerated
{
"data": {
"source": {
"remote": "example",
"branch": "example",
"path": "example",
"commit": "example",
"syncedAt": "2026-04-15T12:00:00Z",
"pending": true,
"files": 1
},
"connect": "https://example.com"
}
}

An error

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
detail
Examplegenerated
{
"error": {
"code": "example",
"message": "example",
"detail": "example"
}
}