> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.getraya.app/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.getraya.app/_mcp/server.

# List job agents

GET https://v1.getraya.app/api/job-agent

Retrieves a paginated list of job agents for the authenticated account. Results are sorted by created_at. Only agents with at least one job are included.

Reference: https://docs.getraya.app/api-reference/job-agents/list-job-agents

## Authentication

- `X-API-Key` header (required) — API key for authentication. Example: raya_ABCD1234567890abcdef

## Request

### Query parameters

- `offset` (integer, optional, default: 0) — Number of records to skip (default: 0)
- `limit` (integer, optional, default: 10) — Maximum number of records to return (default: 10, max: 100)
- `sort` (enum, optional, default: desc) — Sort order by created_at time (default: desc)
  - Allowed values: `asc`, `desc`

## Response

### 200

Customer job agents retrieved successfully

- `agents` (list of CustomerJobAgentResponseAgentsItems, optional)
- `total` (double, optional) — Total number of agents with jobs for this customer
- `offset` (double, optional) — Number of records skipped
- `limit` (double, optional) — Maximum number of records returned

## Errors

### 400 Bad Request Error

Validation error

- `error` (string, optional)
- `message` (string, optional)

### 401 Unauthorized Error

Unauthorized - Invalid or missing API key

- `error` (string, optional)
- `message` (string, optional)

### 500 Internal Server Error

Internal server error

- `error` (string, optional)
- `message` (string, optional)

## Types

### CustomerJobAgentResponseAgentsItems

- `name` (string, optional, nullable) — Name of the agent
- `id` (string, optional) — Unique identifier of the agent
- `created_at` (datetime, optional, nullable) — Timestamp when the agent was created
- `updated_at` (datetime, optional, nullable) — Timestamp when the agent was last updated

## Examples

**Response**

```json
{
  "agents": [
    {
      "name": "Senior Python Developer",
      "id": "123e4567-e89b-12d3-a456-426614174000",
      "created_at": "2024-01-15T10:25:00Z",
      "updated_at": "2024-01-15T10:25:00Z"
    }
  ],
  "total": 25,
  "offset": 0,
  "limit": 10
}
```

**SDK Code**

```python
import requests

url = "https://v1.getraya.app/api/job-agent"

querystring = {"limit":"10","offset":"0","sort":"desc"}

headers = {"X-API-Key": "<apiKey>"}

response = requests.get(url, headers=headers, params=querystring)

print(response.json())
```

```javascript
const url = 'https://v1.getraya.app/api/job-agent?limit=10&offset=0&sort=desc';
const options = {method: 'GET', headers: {'X-API-Key': '<apiKey>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://v1.getraya.app/api/job-agent?limit=10&offset=0&sort=desc"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("X-API-Key", "<apiKey>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://v1.getraya.app/api/job-agent?limit=10&offset=0&sort=desc")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<apiKey>'

response = http.request(request)
puts response.read_body
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://v1.getraya.app/api/job-agent?limit=10&offset=0&sort=desc")
  .header("X-API-Key", "<apiKey>")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://v1.getraya.app/api/job-agent?limit=10&offset=0&sort=desc', [
  'headers' => [
    'X-API-Key' => '<apiKey>',
  ],
]);

echo $response->getBody();
```

```csharp
using RestSharp;

var client = new RestClient("https://v1.getraya.app/api/job-agent?limit=10&offset=0&sort=desc");
var request = new RestRequest(Method.GET);
request.AddHeader("X-API-Key", "<apiKey>");
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = ["X-API-Key": "<apiKey>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://v1.getraya.app/api/job-agent?limit=10&offset=0&sort=desc")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```