const res = await fetch("https://api.openrevenue.com/api/v1/projects/example.com", {
headers: { Authorization: `Bearer ${OPENREVENUE_API_KEY}` },
})
const project = await res.json()
curl "https://api.openrevenue.com/api/v1/projects/example.com" \
-H "Authorization: Bearer openrevenue_your_key"
{
"id": "44cc0aa0-912f-4067-83c7",
"name": "Madar Agency",
"domain": "example.com",
"timeZone": "Africa/Casablanca",
"publicStatsEnabled": false,
"brandColor": "#FF6A00",
"icon": null,
"installationSeenAt": "2026-05-01T12:00:00.000Z",
"createdAt": "2026-04-01T12:00:00.000Z",
"isOwner": true
}
Get project
Returns project details: name, timezone, public stats flag, brand color, icon, install timestamp, and whether the caller is the owner.
GET
/
api
/
v1
/
projects
/
{domain}
const res = await fetch("https://api.openrevenue.com/api/v1/projects/example.com", {
headers: { Authorization: `Bearer ${OPENREVENUE_API_KEY}` },
})
const project = await res.json()
curl "https://api.openrevenue.com/api/v1/projects/example.com" \
-H "Authorization: Bearer openrevenue_your_key"
{
"id": "44cc0aa0-912f-4067-83c7",
"name": "Madar Agency",
"domain": "example.com",
"timeZone": "Africa/Casablanca",
"publicStatsEnabled": false,
"brandColor": "#FF6A00",
"icon": null,
"installationSeenAt": "2026-05-01T12:00:00.000Z",
"createdAt": "2026-04-01T12:00:00.000Z",
"isOwner": true
}
Response
Errors
| Status | Error | Description |
|---|---|---|
401 | Invalid or missing API key | The Authorization header is missing or the Bearer token is invalid. |
404 | Project not found | No project with that domain exists for the authenticated user. |
const res = await fetch("https://api.openrevenue.com/api/v1/projects/example.com", {
headers: { Authorization: `Bearer ${OPENREVENUE_API_KEY}` },
})
const project = await res.json()
curl "https://api.openrevenue.com/api/v1/projects/example.com" \
-H "Authorization: Bearer openrevenue_your_key"
{
"id": "44cc0aa0-912f-4067-83c7",
"name": "Madar Agency",
"domain": "example.com",
"timeZone": "Africa/Casablanca",
"publicStatsEnabled": false,
"brandColor": "#FF6A00",
"icon": null,
"installationSeenAt": "2026-05-01T12:00:00.000Z",
"createdAt": "2026-04-01T12:00:00.000Z",
"isOwner": true
}
Was this page helpful?