# Rev

## 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/api/Rev"}],"security":[{"ApiKeyHeader":[],"ApiKeyQuery":[]}],"components":{"securitySchemes":{"ApiKeyHeader":{"type":"apiKey","description":"Authorize requests passing your apiKey in HTTP header.","name":"Ocp-Apim-Subscription-Key","in":"header"}},"schemas":{"CaptionOrderResponse":{"title":"CaptionOrderResponse","properties":{"Id":{"type":"integer","format":"int64"},"Status":{"type":"string"}},"description":"CaptionOrderResponse","type":"object"}}},"paths":{"/Orders":{"post":{"tags":["Rev"],"summary":"Creates a caption order for given Video Ids.","description":"Requires at least one Video ID.","operationId":"CreateRevCaptionOrder","responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CaptionOrderResponse"}},"application/xml":{"schema":{"$ref":"#/components/schemas/CaptionOrderResponse"}},"text/csv":{"schema":{"$ref":"#/components/schemas/CaptionOrderResponse"}},"text/html":{"schema":{"$ref":"#/components/schemas/CaptionOrderResponse"}}}},"204":{"description":"No content."},"400":{"description":"Bad request."},"401":{"description":"Unauthorized."},"403":{"description":"Forbidden. The subscription key does not have permission to access this method."},"404":{"description":"Not found. The item you requested could not be found or has been deleted."},"409":{"description":"Conflict."},"429":{"description":"Too many requests."},"500":{"description":"Internal server error."},"503":{"description":"Service unavailable."}},"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"]}}}}}}}}
```

## 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/api/Rev"}],"security":[{"ApiKeyHeader":[],"ApiKeyQuery":[]}],"components":{"securitySchemes":{"ApiKeyHeader":{"type":"apiKey","description":"Authorize requests passing your apiKey in HTTP header.","name":"Ocp-Apim-Subscription-Key","in":"header"}},"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"}}},"paths":{"/Orders/All":{"get":{"tags":["Rev"],"summary":"List of Caption Orders.","description":"Orders are paged. Use Order ID to retrieve the caption attachment.","operationId":"GetRevCaptions","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":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AllRevCaptionsResponse"}},"application/xml":{"schema":{"$ref":"#/components/schemas/AllRevCaptionsResponse"}},"text/csv":{"schema":{"$ref":"#/components/schemas/AllRevCaptionsResponse"}},"text/html":{"schema":{"$ref":"#/components/schemas/AllRevCaptionsResponse"}}}},"204":{"description":"No content."},"400":{"description":"Bad request."},"401":{"description":"Unauthorized."},"403":{"description":"Forbidden. The subscription key does not have permission to access this method."},"404":{"description":"Not found. The item you requested could not be found or has been deleted."},"409":{"description":"Conflict."},"429":{"description":"Too many requests."},"500":{"description":"Internal server error."},"503":{"description":"Service unavailable."}},"deprecated":false}}}}
```

## 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/api/Rev"}],"security":[{"ApiKeyHeader":[],"ApiKeyQuery":[]}],"components":{"securitySchemes":{"ApiKeyHeader":{"type":"apiKey","description":"Authorize requests passing your apiKey in HTTP header.","name":"Ocp-Apim-Subscription-Key","in":"header"}}},"paths":{"/{Id}/Attachments/{Type}/content":{"get":{"tags":["Rev"],"summary":"Caption text.","description":"Requires caption OrderId and Type of caption.","operationId":"GetRevCaptionAttachmentContent","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":"OK.","content":{"application/json":{"schema":{"title":"String","type":"string"}},"application/xml":{"schema":{"title":"String","type":"string"}},"text/csv":{"schema":{"title":"String","type":"string"}},"text/html":{"schema":{"title":"String","type":"string"}}}},"204":{"description":"No content."},"400":{"description":"Bad request."},"401":{"description":"Unauthorized."},"403":{"description":"Forbidden. The subscription key does not have permission to access this method."},"404":{"description":"Not found. The item you requested could not be found or has been deleted."},"409":{"description":"Conflict."},"429":{"description":"Too many requests."},"500":{"description":"Internal server error."},"503":{"description":"Service unavailable."}},"deprecated":false}}}}
```


---

# Agent Instructions: 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:

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

The question should be specific, self-contained, and written in natural language.
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.
