GET
/
v1
/
agents
/
jobs
/
{agent_job_id}
/
status
using System;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Threading.Tasks;

class Program
{
    static async Task Main(string[] args)
    {
        string agentJobId = "YOUR_AGENT_JOB_ID"; // Replace with your agent job ID
        string token = "YOUR_API_TOKEN"; // Replace with your API token
        
        string url = $"https://api.roe-ai.com/v1/agents/jobs/{agentJobId}/status/";
        
        using var client = new HttpClient();
        client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", token);
        
        HttpResponseMessage response = await client.GetAsync(url);
        string responseBody = await response.Content.ReadAsStringAsync();
        
        Console.WriteLine(responseBody);
    }
}
{
  "status": 3,
  "timestamp": 1719556664.569293
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

agent_job_id
string
required

Response

200 - application/json
Agent job status
status
integer
required

Status code. 0: PENDING, 1: STARTED, 2: RETRY, 3: SUCCESS, 4: FAILURE, 5: CANCELLED

timestamp
integer
required

Unix timestamp in seconds

error_message
string

Error message if status is RETRY or FAILURE