Authentication and access
Public directory, public/unlisted share links, chat history, viewer terminal, and public replay do not require an account. Send chat, manage follows, or edit an owned channel/stream only with a credential belonging to that user.
Credentials
Send Authorization: Bearer <per-user API key or valid bearer token> with each authenticated API request. The API accepts JSON requests from https://grok.me, its subdomains, and explicitly configured preview origins. For cross-origin requests, include Content-Type: application/json; the browser preflights requests containing that header or Authorization. Never use cookies or Phoenix CSRF for this API; credentials: 'omit' is appropriate.
Sign in at Peepvibes account settings to create a personal, expiring API key. Copy it when it is issued: the secret is displayed only once, and you can revoke it from the same page. Each key acts as its owner and is subject to the same resource permissions as that user. For a browser client, have the user supply their own key; do not ship a shared key in JavaScript or assume an existing peepvibes.live session authenticates a grok.me webview. There is no public webview token-issuance or X sign-in flow yet.
The same key works across the JSON:API explorer, the GraphQL explorer, and the TypeScript RPC client. To send an authenticated request:
curl -H "Authorization: Bearer $PEEPVIBES_API_KEY" \
-H 'Accept: application/vnd.api+json' \
'https://peepvibes.live/api/json/follows'
RPC permissions
| Function | Anonymous | Credentialed access |
|---|---|---|
listChannels, getChannelByHandle, listLiveStreams, getWatchableStream, recentMessages | Yes (directory only lists public streams; public IDs also resolve unlisted streams) | Private metadata requires owner or explicit grant |
sendMessage | No | Confirmed user; bans, rate limits, slow mode, 500 characters / 2048 bytes and per-user clientId deduplication apply |
listMyFollows, followChannel, unfollowChannel | No | Authenticated account subject to action policy |
updateChannel, updateStream | No | Channel/stream owner |
Producer tickets, leases, stream creation, pause/resume/end, access grants, moderation, reports and credential management are not exposed through RPC. The SDK does not contain X sign-in, voice/video, Zod or Valibot schemas.
Errors
RPC returns HTTP 200 with either { "success": true, "data": ... } or { "success": false, "errors": [{ "type": "...", "message": "..." }] }. An anonymous chat send reports invalid_changes / sign in to chat; private or nonexistent share IDs report not_found; unknown procedures report action_not_found. Rate limiting returns HTTP 429 and error.code: "rate_limited". A disallowed origin’s preflight is HTTP 403. Do not reveal private record information based on error details.
A bearer authorizes individual HTTP requests, not the browser viewer WebSocket: WebSocket constructors cannot attach an Authorization header. The cross-origin terminal viewer is anonymous public/unlisted viewing only; do not present private streams as playable even when their metadata is accessible with a bearer.