Legacy
Get a job
Returns the finished draft, or 202 while it is still processing. Use the same key that created the job.
GET
/
v1
/
jobs
/
{ticket}
Get a job
curl --request GET \
--url https://founders-89376--echo-writing-api.us-east.modal.run/v1/jobs/{ticket} \
--header 'Authorization: Bearer <token>'import requests
url = "https://founders-89376--echo-writing-api.us-east.modal.run/v1/jobs/{ticket}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://founders-89376--echo-writing-api.us-east.modal.run/v1/jobs/{ticket}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"request_id": "<string>",
"model": "rl-if100-step020",
"text": "<string>",
"finish_reason": "stop",
"usage": {
"prompt_tokens": 123,
"completion_tokens": 123,
"total_tokens": 123
}
}{
"request_id": "<string>",
"status": "processing",
"status_url": "<string>"
}{
"request_id": "<string>",
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"request_id": "<string>",
"error": {
"code": "<string>",
"message": "<string>"
}
}Authorizations
⌘I
Get a job
curl --request GET \
--url https://founders-89376--echo-writing-api.us-east.modal.run/v1/jobs/{ticket} \
--header 'Authorization: Bearer <token>'import requests
url = "https://founders-89376--echo-writing-api.us-east.modal.run/v1/jobs/{ticket}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://founders-89376--echo-writing-api.us-east.modal.run/v1/jobs/{ticket}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"request_id": "<string>",
"model": "rl-if100-step020",
"text": "<string>",
"finish_reason": "stop",
"usage": {
"prompt_tokens": 123,
"completion_tokens": 123,
"total_tokens": 123
}
}{
"request_id": "<string>",
"status": "processing",
"status_url": "<string>"
}{
"request_id": "<string>",
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"request_id": "<string>",
"error": {
"code": "<string>",
"message": "<string>"
}
}