# LegoTechApps API Documentation

Official LegoTechApps REST API documentation, OpenAPI 3.1 contract, version policy, typed errors and rate limits for developers and agents.

Canonical: https://app.legotechapps.com/developers/api/

## Stable discovery

The public index at /api/v1/ reports the current version, documentation, OpenAPI contract and MCP endpoints. Compatible fields may be added within v1; breaking changes use a new major path.

```text
curl https://legotechapps.com/api/v1/
```

## OpenAPI 3.1

The complete public contract uses unique operation IDs, typed inputs and typed success and error responses. Download it directly or use the official CLI.

```text
legotech openapi --output openapi.json
```

## Errors and limits

REST errors use RFC 9457 application/problem+json with a stable code and a safe hint. Observe RateLimit-Policy, RateLimit and Retry-After instead of guessing when to retry.

```text
curl -i https://legotechapps.com/api/v1/policy
```

## Resources

- [OpenAPI JSON](https://legotechapps.com/openapi.json)
- [API v1 discovery](https://legotechapps.com/api/v1/)
- [Version policy](https://legotechapps.com/api/v1/policy)
- [Authentication](https://app.legotechapps.com/developers/authentication/)
