PricingBlogEnterpriseAPI
Log inStart free
Log inStart free

ENTERPRISE API

Partner API reference

One API key covers both video generation and organisation operations. Every endpoint lists its request DTO, its response DTO and the error codes it can return, so you can answer the questions an integration raises before you write the first call.

Productionhttps://app.fikad.boo

Overview

The Partner API covers video generation and organisation operations — members, workspaces and tickets — behind a single API key. Every path lives under /api/enterprise/v1, and every request and response is application/json.

  • Production: https://app.fikad.boo

The version is pinned in the path. Breaking changes land on a new path rather than inside v1.

Authentication

Every request needs an Authorization: Bearer <API_KEY> header. Keys are issued per organisation, and the organisations a key may reach are bound to the key itself. Ask your contact at Fika Clip to issue one.

A missing or invalid key returns 401 UNAUTHORIZED_API_KEY. Calling an organisation or workspace outside the key's scope returns 403 WORKSPACE_ACCESS_DENIED.

Auth header
curl -X GET 'https://app.fikad.boo/api/enterprise/v1/workspaces' \
  -H 'Authorization: Bearer fk_v1_abc123...'

The basic flow

This is the shortest path from one longform video to finished shorts.

  • ① POST /workspaces/{workspaceId}/jobs — create a job from a longform URL. A successful call returns 202 Accepted with a jobId.
  • ② GET /jobs/{jobId} — poll the status, every 10 to 30 seconds. If you supplied callback.url you can wait for the webhook instead.
  • ③ GET /jobs/{jobId}/result — read the result. videos[].url is the mp4, and videos[].embedUrl can go straight into an iframe preview.
Create a job
curl -X POST 'https://app.fikad.boo/api/enterprise/v1/workspaces/ws_cuid123abc/jobs' \
  -H 'Authorization: Bearer fk_v1_abc123...' \
  -H 'Content-Type: application/json' \
  -d '{
    "sourceType": "url",
    "sourceUrl": "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
    "title": "Longform episode 01",
    "resolution": "1080p",
    "callback": { "url": "https://your-server.com/webhooks/fikaclip" }
  }'

Where charges happen

Credit is shared across the organisation. Once a workspace has a ticket quota assigned, it can only spend within that quota. Unit prices follow per-organisation and per-workspace pricing rules, so do not hardcode them in a client.

  • Shorts generation (POST /jobs) is charged at request time. If the balance or the quota is short the call is rejected with 402 INSUFFICIENT_CREDIT, so an integration that assumes a 202 needs a failure branch.
  • Thumbnail export and re-rendering are free of charge. In the thumbnail export response credit.previousBalance and credit.currentBalance are always identical, so anything that derived usage from the difference between them should read the generation response instead.
  • When generation fails, the charge is refunded automatically.

Idempotency

Ticket grants, revokes and quota writes accept an Idempotency-Key header. For 24 hours after the first successful request, repeating the same key with the same body returns the original response without re-running anything, and the response carries an Idempotent-Replay: true header.

We strongly recommend it: it is what stops a network retry from granting twice. Failed responses are not stored as idempotency records, so you can fix the cause and retry with the same key. Sending a different body under a key already in use is rejected with 409 IDEMPOTENCY_KEY_REUSED.

Idempotency key
curl -X POST 'https://app.fikad.boo/api/enterprise/v1/organizations/org_1/tickets/bulk-grant' \
  -H 'Authorization: Bearer fk_v1_abc123...' \
  -H 'Idempotency-Key: 9f1c6e2a-0b4d-4a71-8f3e-2c7d9a5b1e04' \
  -H 'Content-Type: application/json' \
  -d '{ "items": [{ "workspaceId": "ws_a", "amount": 50, "reason": "season kickoff" }] }'

Webhooks and signature checks

Supply callback.url when you create a job and we deliver a webhook to that address on completion or failure. That endpoint lives on your server, not ours.

Add callback.secret and the delivery carries an HMAC-SHA256 signature of the request body in the X-Fika-Signature header. Anything other than a 2xx response is retried up to three times with exponential backoff.

Webhooks are notifications. Read the full result with GET /jobs/{jobId}/result.

Signature
X-Fika-Signature: <signature>

signature = HMAC-SHA256(callback.secret, request_body)

Rate limiting and response headers

Authenticated requests are limited to 60 per minute per API key. Going over returns 429 RATE_LIMIT_EXCEEDED together with a Retry-After header. A temporary error that stops the request from being accepted answers 503 RATE_LIMIT_UNAVAILABLE.

Every authenticated response includes the standard X-Request-Id header. When the body also carries requestId, the two values are identical. Quote it when you report an incident or trace a retry. The hyphen-less x-requestId is no longer provided.

Response headers
X-RateLimit-Limit: 60
X-RateLimit-Remaining: 41
X-RateLimit-Reset: 1764547200
Retry-After: 18

Error codes

Error responses take the shape { error: { code, message }, requestId }. The message is human-facing and may change, so always branch on code.

CodeStatusMeaning
INVALID_REQUEST400The request shape or a value is invalid. Check the required fields and their types first.
INVALID_SOURCE_URL400sourceUrl is not a public HTTPS video URL.
INVALID_CREDIT_AMOUNT400The top-up amount is not an integer between 1 and 1,000,000.
INVALID_CAPTION_PAYLOAD400clips[].index does not match the video's VideoClip.index, or the body shape is wrong.
INVALID_THUMBNAIL_OPTIONS400The thumbnail generation options are malformed.
QUOTA_BELOW_USED400You set a quota below what has already been spent, or tried to revoke tickets already used.
INSUFFICIENT_POOL_BALANCE400The organisation's unreserved pool balance is not enough.
REMAINING_CAP_EXCEEDED400After the grant the remaining balance would exceed the remainingCap in the request, so nothing was granted.
PERIOD_TOO_LARGE400The requested period exceeds 1,000 buckets at that interval. Narrow the range or use a coarser interval.
UNAUTHORIZED_API_KEY401The API key is missing or invalid.
INSUFFICIENT_CREDIT402The organisation's credit balance or the workspace's assigned tickets are not enough.
WORKSPACE_ACCESS_DENIED403The organisation or workspace is outside this API key's scope.
FEATURE_NOT_AVAILABLE403The plan or the organisation's settings do not allow that feature.
NOT_FOUND404The target resource does not exist.
WORKSPACE_NOT_FOUND404The workspace could not be found.
VIDEO_NOT_FOUND404The video does not exist or does not belong to this workspace.
TEMPLATE_NOT_FOUND404templateId does not exist in that workspace, or its format is wrong.
THUMBNAIL_SET_NOT_FOUND404There is no ThumbnailSet to export. Request generation first.
THUMBNAIL_NOT_FOUND404The chosen thumbnailUrl is not inside the latest ThumbnailSet.
ORGANIZATION_SUBSCRIPTION_NOT_FOUND404The organisation has no active PlanSubscription.
WORKSPACE_NAME_ALREADY_EXISTS409An active workspace with that name already exists.
IDEMPOTENCY_KEY_REUSED409The same Idempotency-Key was used for a request with different content. Use a new key.
RENDER_PRECONDITION_FAILED412A precondition for re-rendering is not met — most often an expired source video.
AUTO_LAYOUT_PRECONDITION_FAILED412The video has no clips, or is not vertical (9:16), so layout correction cannot run.
LOCALIZED_VIDEO_NOT_SUPPORTED412Localised (translated) videos do not support this operation. Use the original video.
RATE_LIMIT_EXCEEDED429You went over the per-minute limit. Wait out Retry-After and send again.
UPSTREAM_FAILED502The call to the Generation Server failed. Retry shortly.
RATE_LIMIT_UNAVAILABLE503A temporary error stopped the request from being accepted. Please retry in a moment.
Error response
{
  "error": {
    "code": "INSUFFICIENT_CREDIT",
    "message": "Organization credit balance is not enough."
  },
  "requestId": "req_abc123"
}