1. OpenAPI (Demo)
  2. Quickstart
ReadmeGitHub
  • Platform API overview
  • Quickstart
  • POSTCreate a member session
  • POSTRefresh a member session
  • DELETERevoke a member session
  • GETList organizations
  • POSTCreate an organization
  • GETGet an organization
  • PATCHUpdate an organization
  • GETList organization members
  • POSTInvite an organization member
  • DELETERemove an organization member
  • PATCHUpdate a member role
  • GETList projects
  • POSTCreate a project
  • GETGet a project
  • DELETEArchive a project
  • PATCHUpdate a project
  • GETList project environments
  • POSTCreate a project environment
  • GETList project documents
  • POSTCreate a project document
  • GETGet a document
  • DELETEArchive a document
  • PATCHUpdate a document
  • POSTPublish a document
  • GETList contacts
  • POSTCreate a contact
  • GETGet a contact
  • DELETEDelete a contact
  • PATCHUpdate a contact
  • GETList product events
  • GETGet analytics overview
  • GETList workflows
  • POSTCreate a workflow
  • GETList workflow runs
  • GETList webhook subscriptions
  • POSTCreate a webhook subscription
  • GETGet a webhook subscription
  • DELETEDelete a webhook subscription
  • PATCHUpdate a webhook subscription
  • GETList webhook deliveries
  • POSTReplay a webhook delivery
  • GETList files
  • POSTCreate a multipart file upload
  • GETGet file metadata
  • DELETEDelete a file
  • GETGet current subscription
  • PATCHUpdate subscription settings
  • GETList invoices
  • GETGet metered usage
  • GETList API keys
  • POSTCreate an API key
  • POSTRevoke an API key
  • GETList audit logs
  • GETList exports
  • POSTCreate an export
  • GETGet API health

Quickstart

Make your first authenticated request against the mock Platform API.

Loading documentation…

Platform API overview< PreviousCreate a member sessionNext >

Powered by heyo

On this page

1. Create a token2. List projects3. Continue through a list4. Create a resource

This five-minute example lists projects in a demo organization. The values are fake, but the request shape mirrors the generated reference below.

1. Create a token

In a real integration, create a scoped API key from Developer settings. For this demo, use a placeholder token that follows the expected format:

bash
export HEYO_API_TOKEN="heyo_demo_01J8F2X6ZJ5Q3F7A4K9N"

Never put a long-lived secret in client-side code, source control, screenshots, or a query string. Use a server-side secret store and issue short-lived browser-facing credentials only when a browser really needs one.

2. List projects

bash
curl "https://api.demo.heyo.example/v3/organizations/org_01J8F1Q6N6VTX4E8W9R2D0A7B3/projects?limit=2" \  -H "Authorization: Bearer $HEYO_API_TOKEN" \  -H "X-Request-ID: docs-quickstart-001"

The response uses a consistent envelope:

json
{  "data": [    {      "id": "prj_01J8F5KM4MAB0V7YQ6P3N2R8D1",      "name": "Northstar mobile",      "status": "active"    }  ],  "page": {    "next_cursor": "eyJvZmZzZXQiOjJ9",    "has_more": true  },  "request_id": "req_01J8F6C4YTP8B2S9QK1M"}

3. Continue through a list

Pass the returned next_cursor back as cursor; do not decode or modify it. The final page returns has_more: false and omits next_cursor.

4. Create a resource

The Projects section includes a complete POST example with request-body validation, tags, environment settings, and documented 201, 401, 409, and 422 responses. Use the in-page console to change fields and watch the cURL and JavaScript examples update.