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

# Submit a wait-time report

POST https://staging.cail.health/v1/wait-times
Content-Type: application/json

Records an observed wait time at a location. Reports are crowdsourced from member clients and feed the network-wide median that other members and operators see. Reports include the device platform for analytics but never carry identifying member information. Values are bounded at 0-480 minutes; submissions outside the range are rejected.

Reference: https://docs.cail.health/api-references/api-reference/check-availability/submit

## OpenAPI Specification

```yaml
openapi: 3.1.0
info:
  title: cail-api
  version: 1.0.0
paths:
  /v1/wait-times:
    post:
      operationId: submit
      summary: Submit a wait-time report
      description: >-
        Records an observed wait time at a location. Reports are crowdsourced
        from member clients and feed the network-wide median that other members
        and operators see. Reports include the device platform for analytics but
        never carry identifying member information. Values are bounded at 0-480
        minutes; submissions outside the range are rejected.
      tags:
        - subpackage_checkAvailability
      parameters:
        - name: Authorization
          in: header
          description: Bearer authentication
          required: true
          schema:
            type: string
      responses:
        '200':
          description: The recorded wait-time observation.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SubmitWaitTimeResponse'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SubmitWaitTimeRequest'
servers:
  - url: https://staging.cail.health
    description: https://staging.cail.health
components:
  schemas:
    SubmitWaitTimeRequestDevicePlatform:
      type: string
      enum:
        - ios
        - android
        - web
      description: Calling device platform. Accepts the snake_case key `device_platform`.
      title: SubmitWaitTimeRequestDevicePlatform
    SubmitWaitTimeRequest:
      type: object
      properties:
        locationId:
          type: string
          description: >-
            Stable identifier of the location the report is for. Accepts the
            snake_case key `location_id`.
        valueMinutes:
          type: number
          format: double
          description: >-
            Observed wait time in minutes. Accepts the snake_case key
            `value_minutes`.
        devicePlatform:
          $ref: '#/components/schemas/SubmitWaitTimeRequestDevicePlatform'
          description: >-
            Calling device platform. Accepts the snake_case key
            `device_platform`.
      required:
        - locationId
        - valueMinutes
        - devicePlatform
      title: SubmitWaitTimeRequest
    SubmitWaitTimeResponse:
      type: object
      properties:
        id:
          type: string
          description: Stable identifier for the recorded wait-time observation.
        reportedAt:
          type: string
          description: ISO 8601 timestamp at which the report was recorded on the server.
      required:
        - id
        - reportedAt
      title: SubmitWaitTimeResponse
  securitySchemes:
    firebaseBearer:
      type: http
      scheme: bearer

```

## Examples



**Request**

```json
{
  "locationId": "b3c8a5d2-1f4e-4d9a-9c8b-7a6e5f4d3c2b",
  "valueMinutes": 18,
  "devicePlatform": "ios"
}
```

**Response**

```json
{
  "id": "7e6f5d4c-3b2a-4190-bf8e-7d6c5b4a3f2e",
  "reportedAt": "2026-05-13T14:21:00.000Z"
}
```

**SDK Code**

```python A 22 minute wait at a walk-in centre
import requests

url = "https://staging.cail.health/v1/wait-times"

payload = {
    "locationId": "b3c8a5d2-1f4e-4d9a-9c8b-7a6e5f4d3c2b",
    "valueMinutes": 18,
    "devicePlatform": "ios"
}
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
```

```javascript A 22 minute wait at a walk-in centre
const url = 'https://staging.cail.health/v1/wait-times';
const options = {
  method: 'POST',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: '{"locationId":"b3c8a5d2-1f4e-4d9a-9c8b-7a6e5f4d3c2b","valueMinutes":18,"devicePlatform":"ios"}'
};

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

```go A 22 minute wait at a walk-in centre
package main

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

func main() {

	url := "https://staging.cail.health/v1/wait-times"

	payload := strings.NewReader("{\n  \"locationId\": \"b3c8a5d2-1f4e-4d9a-9c8b-7a6e5f4d3c2b\",\n  \"valueMinutes\": 18,\n  \"devicePlatform\": \"ios\"\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("Authorization", "Bearer <token>")
	req.Header.Add("Content-Type", "application/json")

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

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

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

}
```

```ruby A 22 minute wait at a walk-in centre
require 'uri'
require 'net/http'

url = URI("https://staging.cail.health/v1/wait-times")

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

request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"locationId\": \"b3c8a5d2-1f4e-4d9a-9c8b-7a6e5f4d3c2b\",\n  \"valueMinutes\": 18,\n  \"devicePlatform\": \"ios\"\n}"

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

```java A 22 minute wait at a walk-in centre
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://staging.cail.health/v1/wait-times")
  .header("Authorization", "Bearer <token>")
  .header("Content-Type", "application/json")
  .body("{\n  \"locationId\": \"b3c8a5d2-1f4e-4d9a-9c8b-7a6e5f4d3c2b\",\n  \"valueMinutes\": 18,\n  \"devicePlatform\": \"ios\"\n}")
  .asString();
```

```php A 22 minute wait at a walk-in centre
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://staging.cail.health/v1/wait-times', [
  'body' => '{
  "locationId": "b3c8a5d2-1f4e-4d9a-9c8b-7a6e5f4d3c2b",
  "valueMinutes": 18,
  "devicePlatform": "ios"
}',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
  ],
]);

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

```csharp A 22 minute wait at a walk-in centre
using RestSharp;

var client = new RestClient("https://staging.cail.health/v1/wait-times");
var request = new RestRequest(Method.POST);
request.AddHeader("Authorization", "Bearer <token>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"locationId\": \"b3c8a5d2-1f4e-4d9a-9c8b-7a6e5f4d3c2b\",\n  \"valueMinutes\": 18,\n  \"devicePlatform\": \"ios\"\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift A 22 minute wait at a walk-in centre
import Foundation

let headers = [
  "Authorization": "Bearer <token>",
  "Content-Type": "application/json"
]
let parameters = [
  "locationId": "b3c8a5d2-1f4e-4d9a-9c8b-7a6e5f4d3c2b",
  "valueMinutes": 18,
  "devicePlatform": "ios"
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://staging.cail.health/v1/wait-times")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

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()
```