Consultar el progreso de una invocación
curl --request GET \
--url https://api.revem.ai/automations/public/v1/invocations/{id} \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.revem.ai/automations/public/v1/invocations/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.revem.ai/automations/public/v1/invocations/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"invocationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"ruleId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"definitionVersion": 123,
"subjectType": "contact",
"subjectCount": 123,
"status": "queued",
"counts": {
"queued": 123,
"running": 123,
"succeeded": 123,
"failed": 123,
"canceled": 123
},
"runs": [
{
"runId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"subjectId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "queued"
}
]
}{
"error": "Unauthorized",
"message": "Invalid API key"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}{
"ok": false,
"error": "Too many requests. Retry in 1 minute."
}Automatizaciones
Consultar el progreso de una invocación
Devuelve los resultados de cada contacto o ticket y los conteos agregados. completed significa que todos terminaron; revisa failed y canceled para conocer el resultado.
GET
/
automations
/
public
/
v1
/
invocations
/
{id}
Consultar el progreso de una invocación
curl --request GET \
--url https://api.revem.ai/automations/public/v1/invocations/{id} \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.revem.ai/automations/public/v1/invocations/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.revem.ai/automations/public/v1/invocations/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"invocationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"ruleId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"definitionVersion": 123,
"subjectType": "contact",
"subjectCount": 123,
"status": "queued",
"counts": {
"queued": 123,
"running": 123,
"succeeded": 123,
"failed": 123,
"canceled": 123
},
"runs": [
{
"runId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"subjectId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "queued"
}
]
}{
"error": "Unauthorized",
"message": "Invalid API key"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}{
"ok": false,
"error": "Too many requests. Retry in 1 minute."
}Authorizations
La API key de tu organización, con la forma rvm_<prefijo>.<secreto>, enviada como Authorization: Bearer rvm_…. Revem la emite y sólo se muestra una vez; si la pierdes se reemplaza, no se recupera.
Path Parameters
ID de la invocación.
Response
Progreso y resultados.
Available options:
contact, ticket Available options:
queued, running, completed Show child attributes
Show child attributes
Show child attributes
Show child attributes
