> For the complete documentation index, see [llms.txt](https://docs.january.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.january.ai/mobile-sdks/readme/client-and-resources.md).

# Client and resources

`JanuaryPartnerClient` is the public SDK entry point. Its generated OpenAPI transport remains package-private.

## Create a client

```swift
let client = try JanuaryPartnerClient(developmentAPIKey: apiKey)
```

## Resource methods

| Resource        | Method                        | Purpose                           |
| --------------- | ----------------------------- | --------------------------------- |
| `foods`         | `search(_:)`                  | Search foods by name              |
| `foods`         | `lookupByBarcode(_:)`         | Look up UPC/EAN/GTIN codes        |
| `foods`         | `searchByNaturalLanguage(_:)` | Parse meal descriptions           |
| `foods`         | `suggestAlternatives(_:)`     | Find dietary alternatives         |
| `restaurants`   | `search(_:)`                  | Find nearby restaurants           |
| `restaurants`   | `searchMenuItems(_:)`         | Find nearby menu items            |
| `photoScanning` | `scan(_:)`                    | Analyze a meal image              |
| `photoScanning` | `correct(_:)`                 | Correct a scan with text feedback |
| `foodLogs`      | `create(_:)`                  | Create a food log                 |
| `foodLogs`      | `list(_:)`                    | List food logs for a date range   |
| `foodLogs`      | `update(_:)`                  | Update a food log                 |
| `foodLogs`      | `delete(_:)`                  | Delete a food log                 |
| `glucose`       | `predict(_:)`                 | Predict glucose impact            |

All resource calls use Swift concurrency and can throw `JanuaryError`.

## Identifiers

The SDK uses typed wrappers to prevent identifier mixups:

* `PartnerUserID`
* `FoodID`
* `ServingID`
