# List Jobs GET https://api.chaser.sh/v1/jobs Reference: https://docs.chaser.sh/api-reference/chaser-core-api/jobs/list-jobs ## OpenAPI Specification ```yaml openapi: 3.1.0 info: title: Chaser Core API version: 1.0.0 paths: /v1/jobs: get: operationId: list-jobs summary: List Jobs tags: - subpackage_jobs parameters: - name: status in: query description: Optional status filter required: false schema: type: string - name: kind in: query description: Optional job kind filter required: false schema: type: string - name: limit in: query description: Maximum number of jobs required: false schema: type: integer - name: offset in: query description: Skip this many jobs before returning rows required: false schema: type: integer - name: Authorization in: header description: Bearer authentication required: true schema: type: string responses: '200': description: List jobs content: application/json: schema: $ref: '#/components/schemas/ListJobsResponse' servers: - url: https://api.chaser.sh - url: http://localhost:8000 components: schemas: JobInfo: type: object properties: created_at: type: string error: type: - string - 'null' id: type: string idempotency_key: type: - string - 'null' input: description: Any type kind: type: string result: description: Any type run_at: type: - string - 'null' status: type: string updated_at: type: string required: - created_at - id - input - kind - status - updated_at title: JobInfo ListJobsResponse: type: object properties: has_more: type: boolean description: Whether additional rows exist after this page. jobs: type: array items: $ref: '#/components/schemas/JobInfo' limit: type: - integer - 'null' description: Effective query limit used to page this response. offset: type: integer description: Effective query offset used to page this response. total: type: integer description: Total number of jobs matching filters (before limit/offset). required: - has_more - jobs - offset - total title: ListJobsResponse securitySchemes: BearerAuth: type: http scheme: bearer ``` ## SDK Code Examples ```python import requests url = "https://api.chaser.sh/v1/jobs" headers = {"Authorization": "Bearer "} response = requests.get(url, headers=headers) print(response.json()) ``` ```javascript const url = 'https://api.chaser.sh/v1/jobs'; const options = {method: 'GET', headers: {Authorization: 'Bearer '}}; 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://api.chaser.sh/v1/jobs" req, _ := http.NewRequest("GET", url, nil) req.Header.Add("Authorization", "Bearer ") 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://api.chaser.sh/v1/jobs") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true request = Net::HTTP::Get.new(url) request["Authorization"] = 'Bearer ' response = http.request(request) puts response.read_body ``` ```java import com.mashape.unirest.http.HttpResponse; import com.mashape.unirest.http.Unirest; HttpResponse response = Unirest.get("https://api.chaser.sh/v1/jobs") .header("Authorization", "Bearer ") .asString(); ``` ```php request('GET', 'https://api.chaser.sh/v1/jobs', [ 'headers' => [ 'Authorization' => 'Bearer ', ], ]); echo $response->getBody(); ``` ```csharp using RestSharp; var client = new RestClient("https://api.chaser.sh/v1/jobs"); var request = new RestRequest(Method.GET); request.AddHeader("Authorization", "Bearer "); IRestResponse response = client.Execute(request); ``` ```swift import Foundation let headers = ["Authorization": "Bearer "] let request = NSMutableURLRequest(url: NSURL(string: "https://api.chaser.sh/v1/jobs")! 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() ```