---
title: "Get Driver Questionnaire Image"
method: GET
path: "/driver-questionnaire-images/{id}"
tags: ["Driver Questionnaires"]
---

# Get Driver Questionnaire Image

`GET /driver-questionnaire-images/{id}`

## Request

- Base URL: `https://api.smartroutes.io/v2`
- URL: `https://api.smartroutes.io/v2/driver-questionnaire-images/{id}`
- Auth: none declared

Retrieve a driver questionnaire image (photo or signature) by its ID. The IDs come from the `images` arrays on `GET /driver-questionnaire-submission/{id}`. By default returns the raw image binary. Use the `encoding` query parameter to request a Base64-encoded JSON response instead.

Images are compressed asynchronously after the driver uploads them. If the image exists but compression has not finished, this endpoint returns `202 Accepted` with a `Retry-After` header and the image's model (`id` and `is_compressed: false`) as the JSON body, instead of image data — retry after the interval given. Image data is returned as WebP; the `Content-Type` header (or `content_type` in the Base64 response) states the format.

## Path parameters

- `id` integer, required: The ID of the image to retrieve.

## Query parameters

- `encoding` 'base64': Set to `base64` to receive the image as a Base64-encoded string in a JSON response instead of raw binary.

## Response `200`

Successful response. Returns raw image binary by default, or a JSON object when `encoding=base64` is specified.

## Other responses

- `202`: The image exists but SmartRoutes has not finished compressing it yet, so no image data is returned. This is a `2xx` response, not an error — retry after the interval given in the `Retry-After` header. The body carries the image's model with `is_compressed: false`. An image normally becomes available within a few retries.
- `400`: Invalid input. The request body failed validation.
- `403`: Forbidden. Returned for rate-limit exhaustion (`name = FORBIDDEN`, with `details.retry_after_seconds` and `Retry-After` header) and permission gate failures (`name = PERMISSION`). Inspect `name` to disambiguate. Send `x-sr-api-features: rate-limit-429` to receive `429 RATE_LIMIT_EXCEEDED` for the rate-limit case instead, leaving `403` to mean permission failures only — see [API Features](#section/Getting-started/API-Features).
- `404`: The requested resource was not found.
- `429`: Rate limit exceeded (`name = RATE_LIMIT_EXCEEDED`). **Only returned to callers that opt in** with the `x-sr-api-features: rate-limit-429` request header; without it the same condition returns `403` with `name = FORBIDDEN` and an otherwise identical body. See [API Features](#section/Getting-started/API-Features).
- `500`: An unexpected server error occurred. The body carries only `name` and `description`: internal details are never returned.

---

[API](https://skmtc.dev/smartroutes/apis/smartroutes-api.md) · [All operations](https://skmtc.dev/smartroutes/apis/smartroutes-api/llms.txt) · [OpenAPI document](https://skmtc.dev/smartroutes/apis/smartroutes-api/revisions/a7ea507afac7?raw)
