Use the Sanghtech Stream API to manage organizations, upload videos, control secure playback, rotate keys, and automate workflows with webhooks.
Core API Base URL
External Playback API Base URL
Auth: Core API uses Bearer token (Sanctum). External playback API uses headers X-API-Key and X-API-Secret.
Use these endpoints for pricing, company trust data, and initial auth bootstrap.
| Method | Path | Auth | Description |
|---|---|---|---|
| POST | /auth/register | None | Register a new user account. |
| POST | /auth/login | None | Get access token for API requests. |
| GET | /plans | None | List active plans for pricing integration. |
| GET | /plans/compare | None | Feature matrix for plan comparison. |
| GET | /plans/{slug} | None | Read one plan by slug. |
| GET | /webhooks/events | None | List supported webhook event names. |
| GET | /companies | None | List trusted companies and logo URLs. |
| GET | /companies/{slug} | None | Get one company (e.g. navgyan, winningteam, webprint). |
For dashboard and backend integrations where a logged-in user controls organizations and assets.
| Method | Path | Scope | Description |
|---|---|---|---|
| GET | /organizations | User | List organizations user belongs to. |
| POST | /organizations | User | Create an organization. |
| GET | /organizations/{id} | User | Organization details. |
| PUT | /organizations/{id} | User | Update organization info. |
| POST | /organizations/{id}/members | Owner/Admin | Invite member. |
| PUT | /organizations/{id}/members/{userId} | Owner/Admin | Update member role. |
| DELETE | /organizations/{id}/members/{userId} | Owner/Admin | Remove member. |
| Method | Path | Scope | Description |
|---|---|---|---|
| POST | /organizations/{organizationId}/videos/upload | videos:write | Create direct-upload session. |
| POST | /organizations/{organizationId}/videos/{videoId}/upload-complete | videos:write | Mark upload complete and trigger encoding. |
| GET | /organizations/{organizationId}/videos | videos:read | List videos. |
| GET | /organizations/{organizationId}/videos/{videoId} | videos:read | Video details. |
| PUT | /organizations/{organizationId}/videos/{videoId} | videos:write | Update metadata. |
| PUT | /organizations/{organizationId}/videos/{videoId}/security | videos:write | Update security rules (domain lock, etc). |
| GET | /organizations/{organizationId}/videos/{videoId}/analytics | analytics:read | Video analytics. |
| DELETE | /organizations/{organizationId}/videos/{videoId} | videos:write | Delete video. |
For customer websites and applications embedding secure streams.
| Method | Path | Headers | Description |
|---|---|---|---|
| GET | /videos | X-API-Key, X-API-Secret | List public/allowed videos. |
| GET | /videos/{videoId} | X-API-Key, X-API-Secret | Get video info. |
| POST | /videos/{videoId}/play | X-API-Key, X-API-Secret | Get signed playback URLs. |
| POST | /videos/{videoId}/track | X-API-Key, X-API-Secret | Track viewer analytics event. |