Ask Reedapt for a change
curl --request POST \
--url https://api.reedapt.com/v1/dubs/{dub_id}/requests \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"text": "Make the French less formal.",
"autonomy": "ask"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({text: 'Make the French less formal.', autonomy: 'ask'})
};
fetch('https://api.reedapt.com/v1/dubs/{dub_id}/requests', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.reedapt.com/v1/dubs/{dub_id}/requests"
payload = {
"text": "Make the French less formal.",
"autonomy": "ask"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"id": "run_4f1a9c2e7b3d5a8c0e6f1b2d",
"dub_id": "<string>",
"status": "done",
"request": "<string>",
"reply": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"object": "run",
"proposal": {
"kind": "changes",
"summary": "<string>",
"lines": 123
},
"options": [
{
"id": "apply",
"label": "<string>"
}
],
"applied_lines": 123
}{
"error": {
"code": "UPLOAD_INCOMPLETE",
"message": "Complete the upload before dubbing it.",
"request_id": "req_8f2c1e0a9b7d6c5e4f3a",
"fields": [
{
"field": "target_languages",
"message": "Field required"
}
]
}
}{
"error": {
"code": "UPLOAD_INCOMPLETE",
"message": "Complete the upload before dubbing it.",
"request_id": "req_8f2c1e0a9b7d6c5e4f3a",
"fields": [
{
"field": "target_languages",
"message": "Field required"
}
]
}
}{
"error": {
"code": "UPLOAD_INCOMPLETE",
"message": "Complete the upload before dubbing it.",
"request_id": "req_8f2c1e0a9b7d6c5e4f3a",
"fields": [
{
"field": "target_languages",
"message": "Field required"
}
]
}
}{
"error": {
"code": "UPLOAD_INCOMPLETE",
"message": "Complete the upload before dubbing it.",
"request_id": "req_8f2c1e0a9b7d6c5e4f3a",
"fields": [
{
"field": "target_languages",
"message": "Field required"
}
]
}
}{
"error": {
"code": "UPLOAD_INCOMPLETE",
"message": "Complete the upload before dubbing it.",
"request_id": "req_8f2c1e0a9b7d6c5e4f3a",
"fields": [
{
"field": "target_languages",
"message": "Field required"
}
]
}
}{
"error": {
"code": "UPLOAD_INCOMPLETE",
"message": "Complete the upload before dubbing it.",
"request_id": "req_8f2c1e0a9b7d6c5e4f3a",
"fields": [
{
"field": "target_languages",
"message": "Field required"
}
]
}
}Ask Reedapt for a change
Hand a request in plain words to Reedapt’s dubbing agent, as in the editor’s chat (“make the French less formal”, “speaker 2 should sound angrier”). It uses the same monthly allowance as the chat.
POST
/
dubs
/
{dub_id}
/
requests
Ask Reedapt for a change
curl --request POST \
--url https://api.reedapt.com/v1/dubs/{dub_id}/requests \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"text": "Make the French less formal.",
"autonomy": "ask"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({text: 'Make the French less formal.', autonomy: 'ask'})
};
fetch('https://api.reedapt.com/v1/dubs/{dub_id}/requests', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.reedapt.com/v1/dubs/{dub_id}/requests"
payload = {
"text": "Make the French less formal.",
"autonomy": "ask"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"id": "run_4f1a9c2e7b3d5a8c0e6f1b2d",
"dub_id": "<string>",
"status": "done",
"request": "<string>",
"reply": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"object": "run",
"proposal": {
"kind": "changes",
"summary": "<string>",
"lines": 123
},
"options": [
{
"id": "apply",
"label": "<string>"
}
],
"applied_lines": 123
}{
"error": {
"code": "UPLOAD_INCOMPLETE",
"message": "Complete the upload before dubbing it.",
"request_id": "req_8f2c1e0a9b7d6c5e4f3a",
"fields": [
{
"field": "target_languages",
"message": "Field required"
}
]
}
}{
"error": {
"code": "UPLOAD_INCOMPLETE",
"message": "Complete the upload before dubbing it.",
"request_id": "req_8f2c1e0a9b7d6c5e4f3a",
"fields": [
{
"field": "target_languages",
"message": "Field required"
}
]
}
}{
"error": {
"code": "UPLOAD_INCOMPLETE",
"message": "Complete the upload before dubbing it.",
"request_id": "req_8f2c1e0a9b7d6c5e4f3a",
"fields": [
{
"field": "target_languages",
"message": "Field required"
}
]
}
}{
"error": {
"code": "UPLOAD_INCOMPLETE",
"message": "Complete the upload before dubbing it.",
"request_id": "req_8f2c1e0a9b7d6c5e4f3a",
"fields": [
{
"field": "target_languages",
"message": "Field required"
}
]
}
}{
"error": {
"code": "UPLOAD_INCOMPLETE",
"message": "Complete the upload before dubbing it.",
"request_id": "req_8f2c1e0a9b7d6c5e4f3a",
"fields": [
{
"field": "target_languages",
"message": "Field required"
}
]
}
}{
"error": {
"code": "UPLOAD_INCOMPLETE",
"message": "Complete the upload before dubbing it.",
"request_id": "req_8f2c1e0a9b7d6c5e4f3a",
"fields": [
{
"field": "target_languages",
"message": "Field required"
}
]
}
}Authorizations
Body
application/json
Response
Successful Response
A request handed to Reedapt's dubbing agent, and where it got to.