# Get one repair

**GET** `/repairs/{repair_id}`

## Parameters

### `repair_id` (_path_, required)

Repair id

- **Type:** `string`
- **Example:** `"42"`
- **Constraints:** pattern `^[1-9]\d*$`

## Responses

### 200

Repair

**application/json**

_Schema ref:_ `#/components/schemas/GetRepairResponse` (GetRepairResponse)

```json
{
  "type": "object",
  "properties": {
    "data": {
      "type": "object",
      "nullable": true,
      "properties": {
        "id": {
          "type": "integer"
        },
        "device_id": {
          "type": "integer"
        },
        "status": {
          "type": "string",
          "enum": [
            "REQUEST_RECEIVED",
            "AWAITING_PICKUP",
            "PICKED_UP",
            "REPAIR_IN_PROGRESS",
            "IN_RETURN",
            "COMPLETED",
            "ON_HOLD",
            "CANCELLED"
          ],
          "description": "Repair progress. COMPLETED and CANCELLED are closed repairs."
        },
        "repairer": {
          "type": "string",
          "nullable": true
        },
        "pickup_tracking": {
          "type": "string",
          "nullable": true,
          "description": "Tracking number of the pickup to the repairer"
        },
        "return_tracking": {
          "type": "string",
          "nullable": true,
          "description": "Tracking number of the return from the repairer"
        },
        "loan_device_id": {
          "type": "integer",
          "nullable": true,
          "description": "Company device lent during the repair"
        },
        "requested_at": {
          "type": "string",
          "nullable": true
        },
        "picked_up_at": {
          "type": "string",
          "nullable": true
        },
        "returned_at": {
          "type": "string",
          "nullable": true
        },
        "closed_at": {
          "type": "string",
          "nullable": true
        },
        "created_at": {
          "type": "string",
          "nullable": true
        },
        "updated_at": {
          "type": "string",
          "nullable": true
        }
      },
      "required": [
        "id",
        "device_id",
        "status",
        "repairer",
        "pickup_tracking",
        "return_tracking",
        "loan_device_id",
        "requested_at",
        "picked_up_at",
        "returned_at",
        "closed_at",
        "created_at",
        "updated_at"
      ],
      "description": "Open repair; closed repairs are listed by GET /repairs?device_id="
    }
  },
  "required": [
    "data"
  ]
}
```

### 400

Validation error

**application/json**

_Schema ref:_ `#/components/schemas/ValidationErrorResponse` (ValidationErrorResponse)

```json
{
  "type": "object",
  "properties": {
    "message": {
      "type": "string",
      "description": "Every validation failure, comma-separated",
      "example": "Required, must be an ISO 3166-1 alpha-2 country code"
    },
    "type": {
      "type": "string",
      "enum": [
        "validation_error"
      ]
    },
    "error": {
      "type": "string",
      "enum": [
        "validation_error"
      ]
    }
  },
  "required": [
    "message",
    "type",
    "error"
  ]
}
```

### 401

Missing, invalid, or revoked API key

**text/plain**

```json
{
  "type": "string",
  "example": "Unauthorized"
}
```

### 404

Repair not found

**application/json**

_Schema ref:_ `#/components/schemas/RepairNotFoundErrorResponse` (RepairNotFoundErrorResponse)

```json
{
  "type": "object",
  "properties": {
    "error": {
      "type": "string",
      "enum": [
        "REPAIR_NOT_FOUND"
      ]
    }
  },
  "required": [
    "error"
  ]
}
```

### 429

Rate limit exceeded. The RateLimit-* headers give the limit and the reset time.

**text/plain**

```json
{
  "type": "string",
  "example": "Too many requests, please try again later."
}
```

### 500

Unexpected server error

**application/json**

_Schema ref:_ `#/components/schemas/InternalErrorResponse` (InternalErrorResponse)

```json
{
  "type": "object",
  "properties": {
    "error": {
      "type": "string",
      "enum": [
        "INTERNAL_ERROR"
      ]
    }
  },
  "required": [
    "error"
  ]
}
```

### 503

Rate limiting is temporarily unavailable; retry with backoff

**application/json**

_Schema ref:_ `#/components/schemas/RateLimiterUnavailableResponse` (RateLimiterUnavailableResponse)

```json
{
  "type": "object",
  "properties": {
    "message": {
      "type": "string"
    }
  },
  "required": [
    "message"
  ]
}
```

## Security

```json
[
  {
    "bearerAuth": []
  }
]
```

**bearerAuth:** Bearer token using a Fleet platform API key (flt_sk_…).

---

_Generated from the OpenAPI specification for raw Markdown / tooling use._
