---
title: "Create Batch Routing"
method: POST
path: "/batch"
tags: ["Routing"]
---

# Create Batch Routing

`POST /batch`

## Query parameters

- `key` string, 32 character alphanumeric string, required

## Request body

- object
  - `requests` object[] — An array of objects to collect the details of individual routing queries that will form a batch.
    - `query` string — Specify the routing query in the form of a string. The supported attributes and their formats are consistent with the standard routing endpoint that is being used as part of the batch. Check the [Sample Request](https://docs.nextbillion.ai/docs/navigation/batch-routing-api#sample-request-1) section for an example request.

## Response `200`

- object
  - `status` string — Returns the overall status of the API request. Its value will belong to one of success, failed, and pending. It can also contain HTTP error codes in case of a failed request or operation.
  - `msg` string — Displays the error message in case of a failed request or operation. Please note that this parameter is not returned in the response in case of a successful request.
  - `track_id` string — Returns the unique ID of the batch processing task. Use this ID using the GET request to retrieve the solution once the task processing is completed.

---

[API](https://skmtc.net/nextbillion-ai/apis/one-spec-service.md) · [All operations](https://skmtc.net/nextbillion-ai/apis/one-spec-service/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/nextbillion-ai/one-spec-service/versions/b647f1808dda/schema)
