> For the complete documentation index, see [llms.txt](https://knowledgebase.fabricdata.com/origin/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://knowledgebase.fabricdata.com/origin/apis-all/captions-and-translations-api-docs/rev.md).

# Rev

## Caption text.

> Requires caption OrderId and Type of caption.

```json
{"openapi":"3.1.1","info":{"title":"Rev Caption API","version":"1.0"},"tags":[{"name":"rev"}],"servers":[{"url":"https://api.origin.fabricdata.com"}],"paths":{"/Rev/{Id}/Attachments/{Type}/content":{"get":{"tags":["rev"],"summary":"Caption text.","description":"Requires caption OrderId and Type of caption.","operationId":"GetRevCaptionAttachmentContentIdAttachmentsTypecontent_Get","parameters":[{"schema":{"type":"integer","format":"int64"},"name":"Id","in":"path","description":"Caption Order Id.","required":true},{"schema":{"type":"string","enum":["WebVTT","Ttml","SubRip","Scc","Mcc","QtText","Transcript","Dfxp","CheetaCap","Stl","AvidDs","FacebookSubRip","Unknown"]},"name":"Type","in":"path","description":"Type of caption content.","required":true}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"title":"String","type":"string"}}}}},"deprecated":false}}}}
```

## Creates a caption order for given Video Ids.

> Requires at least one Video ID.

```json
{"openapi":"3.1.1","info":{"title":"Rev Caption API","version":"1.0"},"tags":[{"name":"rev"}],"servers":[{"url":"https://api.origin.fabricdata.com"}],"paths":{"/Rev/Orders":{"post":{"tags":["rev"],"summary":"Creates a caption order for given Video Ids.","description":"Requires at least one Video ID.","operationId":"CreateRevCaptionOrderOrders_Post","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CaptionOrderResponse"}}}}},"deprecated":false,"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{"ClientApiKey":{"type":"string","description":"This is a secret key specific to each partner that wishes to use the Rev Entertainment."},"UserApiKey":{"type":"string","description":"This is a secret key specific to a Rev user, which identifies the user account under whose privileges the requested operation executes. This key can be obtained by logging in to Rev as the user in question and going to the Rev Account Settings page."},"ReferenceId":{"type":"string","description":"Optional order reference number."},"VideoId":{"type":"integer","description":"ID of video to caption.","format":"int64"},"NotificationUrl":{"type":"string","description":"Optional URL to send notifications when order is complete."},"UseSandbox":{"type":"boolean","description":"Optional URL to send notifications when order is complete."}},"required":["ClientApiKey","UserApiKey","VideoId"]}}}}}}},"components":{"schemas":{"CaptionOrderResponse":{"title":"CaptionOrderResponse","properties":{"Id":{"type":"integer","format":"int64"},"Status":{"type":"string"}},"description":"CaptionOrderResponse","type":"object"}}}}
```

## List of Caption Orders.

> Orders are paged. Use Order ID to retrieve the caption attachment.

```json
{"openapi":"3.1.1","info":{"title":"Rev Caption API","version":"1.0"},"tags":[{"name":"rev"}],"servers":[{"url":"https://api.origin.fabricdata.com"}],"paths":{"/Rev/Orders/All":{"get":{"tags":["rev"],"summary":"List of Caption Orders.","description":"Orders are paged. Use Order ID to retrieve the caption attachment.","operationId":"GetRevCaptionsOrdersAll_Get","parameters":[{"schema":{"type":"integer","format":"int32"},"name":"Take","in":"query","description":"Limits the total items returned. Maximum of 100 per request.","required":true},{"schema":{"type":"integer","format":"int32"},"name":"Skip","in":"query","description":"Skips records using for paging results.","required":false}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AllRevCaptionsResponse"}}}}},"deprecated":false}}},"components":{"schemas":{"AllRevCaptionsResponse":{"title":"AllRevCaptionsResponse","properties":{"TotalCount":{"description":"Total count of captions.","type":"integer","format":"int64"},"Skip":{"description":"Records to skip used with paging.","type":"integer","format":"int32"},"Take":{"description":"Page size.","type":"integer","format":"int32"},"Result":{"type":"array","items":{"$ref":"#/components/schemas/RevCaptionsResponse"}}},"description":"AllRevCaptionsResponse","type":"object"},"RevCaptionsResponse":{"title":"RevCaptionsResponse","properties":{"Id":{"description":"Caption Order Id.  Use this ID to get individual captions.","type":"integer","format":"int64"},"VideoId":{"description":"ID of the video getting captioned.","type":"integer","format":"int64"},"OrderNumber":{"description":"Rev internal order number.","type":"string"},"ReferenceId":{"description":"Optional reference Id used when creating the order.","type":"string"},"Status":{"description":"Status of the order.","type":"string"},"Comments":{"description":"List of comments from Rev.","type":"array","items":{"$ref":"#/components/schemas/RevOrderComment"}},"Captions":{"description":"List of captions.","type":"array","items":{"$ref":"#/components/schemas/RevCaptionItem"}},"Created":{"description":"DateTime order was placed.","type":"string","format":"date-time"},"Modified":{"description":"DateTime order was last modified.","type":"string","format":"date-time"},"UseSandbox":{"description":"Determines if order was placed using Rev's testing environment. ","type":"boolean"}},"description":"RevCaptionsResponse","type":"object"},"RevOrderComment":{"title":"RevOrderComment","properties":{"by":{"type":"string"},"timestamp":{"type":"string","format":"date-time"},"text":{"type":"string"}},"description":"RevOrderComment","type":"object"},"RevCaptionItem":{"title":"RevCaptionItem","properties":{"Kind":{"type":"string"},"Text":{"type":"string"},"Content_Type":{"type":"string"}},"description":"RevCaptionItem","type":"object"}}}}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://knowledgebase.fabricdata.com/origin/apis-all/captions-and-translations-api-docs/rev.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
