All documentation
Reference

Raw HTTP API Snippet

A raw HTTP example for teams that want to call PulseGrid without using a local SDK wrapper.

HTTP

Overview

Some teams may prefer to call PulseGrid directly over HTTP instead of using a helper module.

Setup

Use your project public and secret keys in request headers for trusted backend operations.

Code example

Raw HTTP API Snippet
POST /api/client-tokens/create/
Content-Type: application/json
X-PulseGrid-Public-Key: pk_xxxxx
X-PulseGrid-Secret-Key: sk_xxxxx

{
  "project_id": "your-project-id",
  "identifier_id": "user_123",
  "identifier_label": "Kwandile",
  "allowed_channels": ["demo-channel"],
  "expires_in": 3600,
  "metadata": {
    "source": "raw_http_example"
  }
}

Notes

Raw HTTP is useful for teams integrating PulseGrid from custom backends or non-standard environments.