Get project info, plan, and embed URLs
GET
/project
Returns the current project's ID, name, plan, plan limits, embed URLs, ready-to-paste snippets, and status pages. Use
status_pages[].public_url or embeds.links.status_page as the canonical public status-page URL. Do not infer public routes from project slugs.Authentication
Bearer Token (hu_api_key)
Responses
200
Project info with plan, limits, and embeds
application/jsondata
object
id
string
Project ID
name
string
slug
string
created_at
string (date-time)
plan
string
Current billing plan
Values
free pro team enterpriselimits
object
Plan-specific resource limits
monitors
integer
Max monitors allowed
status_pages
integer
Max status pages allowed
custom_domains
integer
Max custom domains (0 = not available)
rate_limit
integer
API requests per minute
embeds
object
badges
object
uptime
string (uri)
Uptime badge SVG URL
status
string (uri)
Status badge SVG URL
response_time
string (uri)
Response time badge SVG URL
links
object
Canonical public links for the project's default status page
status_page
string (uri) | null
Canonical public status page URL. Prefers a custom domain when configured.
widgets
object
status_json
string (uri)
Status JSON endpoint (CORS-enabled)
badge_iframe
string (uri)
downtime_banner
string (uri)
Embeddable downtime banner JS
snippets
object
Ready-to-paste HTML and Markdown snippets. Badge snippets are pre-linked to the canonical public status page when one exists.
uptime_badge_html
string
status_badge_html
string
status_badge_iframe_html
string
Ready-to-paste iframe HTML for the live status badge widget.
status_badge_markdown
string
uptime_badge_markdown
string
downtime_banner_html
string
status_json_fetch
string
status_pages
object[]
Array of:
id
string
name
string
slug
string
template
string
brand_color
string | null
logo_url
string (uri) | null
is_published
integer
Values
0 1custom_domain
string | null
public_url
string (uri) | null
Canonical public URL for this status page when published. Uses the custom domain when configured, otherwise
/status/{slug}.embeds
object
Scoped badge URLs, widget URLs, and copy-paste snippets for this status page only.
badges
object
uptime
string (uri)
status
string (uri)
response_time
string (uri)
links
object
status_page
string (uri) | null
widgets
object
status_json
string (uri)
badge_iframe
string (uri)
downtime_banner
string (uri)
snippets
object
uptime_badge_html
string
status_badge_html
string
status_badge_iframe_html
string
status_badge_markdown
string
uptime_badge_markdown
string
downtime_banner_html
string
status_json_fetch
string
401
Unauthorized
curl -X GET 'https://happyuptime.com/api/v1/project' \ -H 'Authorization: Bearer YOUR_API_TOKEN'
const response = await fetch('https://happyuptime.com/api/v1/project', { method: 'GET', headers: { "Authorization": "Bearer YOUR_API_TOKEN" }});const data = await response.json();console.log(data);
import requestsheaders = { 'Authorization': 'Bearer YOUR_API_TOKEN'}response = requests.get('https://happyuptime.com/api/v1/project', headers=headers)print(response.json())
200
Response
{ "data": { "id": "<string>", "name": "<string>", "slug": "<string>", "created_at": "2024-01-01T00:00:00Z", "plan": "free", "limits": { "monitors": 123, "status_pages": 123, "custom_domains": 123, "rate_limit": 123 }, "embeds": { "badges": { "uptime": "<uri>", "status": "<uri>", "response_time": "<uri>" }, "links": { "status_page": "<uri>" }, "widgets": { "status_json": "<uri>", "badge_iframe": "<uri>", "downtime_banner": "<uri>" }, "snippets": { "uptime_badge_html": "<string>", "status_badge_html": "<string>", "status_badge_iframe_html": "<string>", "status_badge_markdown": "<string>", "uptime_badge_markdown": "<string>", "downtime_banner_html": "<string>", "status_json_fetch": "<string>" } }, "status_pages": [ { "id": "<string>", "name": "<string>", "slug": "<string>", "template": "<string>", "brand_color": "<string>", "logo_url": "<uri>", "is_published": 0, "custom_domain": "<string>", "public_url": "<uri>", "embeds": { "badges": { "uptime": {}, "status": {}, "response_time": {} }, "links": { "status_page": {} }, "widgets": { "status_json": {}, "badge_iframe": {}, "downtime_banner": {} }, "snippets": { "uptime_badge_html": {}, "status_badge_html": {}, "status_badge_iframe_html": {}, "status_badge_markdown": {}, "uptime_badge_markdown": {}, "downtime_banner_html": {}, "status_json_fetch": {} } } } ] }}
API Playground
Try this endpoint
GET
/project