API Reference

API Reference

Complete REST API documentation for URI Social SDK. All endpoints use JSON for requests and responses.

Base URL
https://api.urisocial.com

This is the SDK's default base URL — all requests must be made over HTTPS. You can override it via the baseUrl (JS) / base_url (Python) client option if needed.

Authentication
Include your API key in the Authorization header
curl https://api.urisocial.com/api/v1/content \
  -H "X-API-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json"

Content Endpoints

The core content-generation endpoints, shown here as the SDK's client.content resource calls them.

POST/api/v1/content/generate
Generate social media content for one or more platforms from a seed description
Content
GET/api/v1/content/{id}
Get previously generated content by ID
Content
GET/api/v1/content
List generated content, paginated
Content
DELETE/api/v1/content/{id}
Delete generated content
Content

Video Editing Endpoints

The production, Submagic, and ZapCap endpoints below are shown here as the SDK's client.video resource calls them. Uploads are sent as multipart/form-data, not JSON.

Billing: produce-video, submagic-produce, and zapcap-produce are charged ceil(duration_seconds / 60) × credits_per_minute — charged before the job is submitted for processing, and refunded automatically if the job later fails (not for bad uploads). The rate is admin-configurable, not a fixed constant — always read it from GET /social-media/video-editing/pricing rather than hard-coding it. Every produce response includes a billing object with the exact charge.

GET/social-media/video-editing/pricing
Current video-editing credit rate (credits per billable minute) — fetch this instead of hard-coding it
Video Editing
POST/social-media/produce-video
Upload a raw clip and start the full AI production pipeline — cuts, zooms, sound effects, captions, hook text
Video Editing
GET/social-media/produce-video-job/{job_id}
Poll a production job for status, progress, and output_url
Video Editing
POST/social-media/produce-video-job/{job_id}/start-render
Approve (optionally edited) AI decisions and start the final render
Video Editing
POST/social-media/submagic-produce
Upload a video to Submagic for AI captions, magic zooms, magic b-roll, and silence/bad-take removal
Video Editing
GET/social-media/submagic-job/{job_id}
Poll a Submagic job for status and output_url
Video Editing
POST/social-media/zapcap-produce
Upload a video to ZapCap for AI captions, with optional b-roll and background music
Video Editing
GET/social-media/zapcap-job/{job_id}
Poll a ZapCap job for status and output_url
Video Editing

SDK Resources

Beyond content generation, the SDK exposes these resources as client.<resource> (JS/TS) or client.<resource> (Python, snake_case) — each maps to its own set of REST endpoints under the hood.

client.content

Generate, fetch, list, and delete AI-generated social content (shown above)

client.drafts

Manage saved content drafts before publishing

client.images

Generate standalone images

client.connections

Connect and manage linked social media accounts

client.publishing

Publish drafts to connected platforms, scheduled or immediate

client.brandProfile

Manage brand voice/profile settings used during generation

client.analytics

Retrieve performance analytics for published content

client.calendar

Content planning and scheduling calendar

client.video

Produce, caption (Submagic/ZapCap), edit, and polish video, plus the AI storyboard/Veo generation pipeline and video drafts — see Video Editing Endpoints below

client.blog

Long-form blog content generation

client.autoGenerate

Automated recurring content generation

client.workspaces

Multi-tenant workspace management (since v2.0.0)

client.clients

Multi-tenant client/organization management (since v2.0.0)

client.agency

Multi-brand agency management (since v3.0.0)

client.customGuides

Visual brand guide management (since v3.0.0)

client.canvasEditor

Layered document/canvas editing (since v3.0.0)

client.utils

Miscellaneous helper operations

Rate Limiting

Requests are throttled hourly and daily by plan, and AI-generation actions also draw down a monthly credit quota. See the Rate Limiting page for the full breakdown by tier.

Rate limit information is included in response headers: X-RateLimit-Limit and X-RateLimit-Remaining

Error Codes
Standard HTTP status codes are used
200OK - Request succeeded
201Created - Resource created successfully
400Bad Request - Invalid parameters
401Unauthorized - Invalid or missing API key
403Forbidden - Insufficient permissions
404Not Found - Resource not found
429Too Many Requests - Rate limit exceeded
500Internal Server Error - Something went wrong