> For the complete documentation index, see [llms.txt](https://docs.wingbits.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.wingbits.com/developers/account.md).

# Account

API key account introspection: plan, rate limits, and usage.

## Get plan and usage for the current API key

> Returns the caller‘s subscription plan together with current rate-limit and monthly quota state — how many requests have been used, how many remain, and when the monthly counter next resets. This endpoint is free: calling it does NOT consume your monthly quota, though it is still rate limited.

```json
{"openapi":"3.0.3","info":{"title":"Wingbits Customer API","version":"1.0.0"},"tags":[{"name":"Account","description":"API key account introspection: plan, rate limits, and usage."}],"servers":[{"url":"http://localhost:3002"},{"url":"https://customer-api.wingbits.com"}],"security":[{"apiKeyAuth":[]}],"components":{"securitySchemes":{"apiKeyAuth":{"type":"apiKey","in":"header","name":"x-api-key","description":"API key for accessing protected endpoints"}}},"paths":{"/v1/account/usage":{"get":{"summary":"Get plan and usage for the current API key","tags":["Account"],"description":"Returns the caller‘s subscription plan together with current rate-limit and monthly quota state — how many requests have been used, how many remain, and when the monthly counter next resets. This endpoint is free: calling it does NOT consume your monthly quota, though it is still rate limited.","responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"plan":{"type":"string","description":"Name of the subscription plan tied to the API key."},"rateLimitPerMinute":{"type":"number","description":"Maximum number of requests allowed per minute for this API key."},"monthlyLimit":{"type":"number","description":"Total number of requests allowed in the current monthly billing period."},"monthlyUsed":{"type":"number","description":"Number of requests consumed so far in the current monthly billing period."},"monthlyRemaining":{"type":"number","description":"Number of requests still available in the current monthly billing period."},"periodResetAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"ISO 8601 timestamp at which the monthly usage counter next resets."},"features":{"type":"object","properties":{"geoQueryMaxNm":{"description":"Maximum size (in nautical miles) allowed for a geographic flight query on this plan. Absent when the plan has no geo query size limit.","type":"number"}},"additionalProperties":false,"description":"Plan features that affect what requests are permitted."}},"required":["plan","rateLimitPerMinute","monthlyLimit","monthlyUsed","monthlyRemaining","periodResetAt","features"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"number","description":"HTTP status code, like 200, 400, 401, 403, 404, 500"},"error":{"type":"string","description":"Error type. Textual representation of the status code, like \"Bad Request\", \"Unauthorized\", \"Forbidden\""},"message":{"type":"string","description":"Error message. Detailed description of the error"},"code":{"description":"Custom error code to further identify the error, like \"MFA_REQUIRED\", \"INVALID_CREDENTIALS\"","type":"string"},"validation":{"description":"Validation errors if any","type":"array","items":{"type":"object","properties":{"message":{"type":"string"},"path":{"type":"array","items":{"type":"string"}}},"required":["message","path"],"additionalProperties":false}}},"required":["statusCode","error","message"],"additionalProperties":false}}}},"402":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"number","description":"HTTP status code, like 200, 400, 401, 403, 404, 500"},"error":{"type":"string","description":"Error type. Textual representation of the status code, like \"Bad Request\", \"Unauthorized\", \"Forbidden\""},"message":{"type":"string","description":"Error message. Detailed description of the error"},"code":{"description":"Custom error code to further identify the error, like \"MFA_REQUIRED\", \"INVALID_CREDENTIALS\"","type":"string"},"validation":{"description":"Validation errors if any","type":"array","items":{"type":"object","properties":{"message":{"type":"string"},"path":{"type":"array","items":{"type":"string"}}},"required":["message","path"],"additionalProperties":false}}},"required":["statusCode","error","message"],"additionalProperties":false}}}},"429":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"number","description":"HTTP status code, like 200, 400, 401, 403, 404, 500"},"error":{"type":"string","description":"Error type. Textual representation of the status code, like \"Bad Request\", \"Unauthorized\", \"Forbidden\""},"message":{"type":"string","description":"Error message. Detailed description of the error"},"code":{"description":"Custom error code to further identify the error, like \"MFA_REQUIRED\", \"INVALID_CREDENTIALS\"","type":"string"},"validation":{"description":"Validation errors if any","type":"array","items":{"type":"object","properties":{"message":{"type":"string"},"path":{"type":"array","items":{"type":"string"}}},"required":["message","path"],"additionalProperties":false}}},"required":["statusCode","error","message"],"additionalProperties":false}}}},"500":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"statusCode":{"type":"number","description":"HTTP status code, like 200, 400, 401, 403, 404, 500"},"error":{"type":"string","description":"Error type. Textual representation of the status code, like \"Bad Request\", \"Unauthorized\", \"Forbidden\""},"message":{"type":"string","description":"Error message. Detailed description of the error"},"code":{"description":"Custom error code to further identify the error, like \"MFA_REQUIRED\", \"INVALID_CREDENTIALS\"","type":"string"},"validation":{"description":"Validation errors if any","type":"array","items":{"type":"object","properties":{"message":{"type":"string"},"path":{"type":"array","items":{"type":"string"}}},"required":["message","path"],"additionalProperties":false}}},"required":["statusCode","error","message"],"additionalProperties":false}}}}}}}}}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.wingbits.com/developers/account.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
