{"command":{"effect":"read","timeoutSeconds":30,"inputSchema":{"type":"object","description":"Returns user and organization accounts associated with the specified plan, including free plans. For per-seat pricing, you see the list of accounts that have purchased the plan, including the number of seats purchased. When someone submits a plan change that won't be processed until the end of their billing cycle, you will also see the upcoming pending change.\n\nGitHub Apps must use a [JWT](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint. OAuth apps must use [basic authentication](https://docs.github.com/rest/authentication/authenticating-to-the-rest-api#using-basic-authentication) with their client ID and client secret to access this endpoint.","properties":{"path":{"type":"object","properties":{"plan_id":{"type":"integer","description":"The unique identifier of the plan."}},"required":["plan_id"],"additionalProperties":false},"query":{"type":"object","properties":{"sort":{"type":"string","enum":["created","updated"],"default":"created","description":"The property to sort the results by."},"direction":{"type":"string","enum":["asc","desc"],"description":"To return the oldest accounts first, set to `asc`. Ignored without the `sort` parameter."},"per_page":{"type":"integer","default":30,"description":"The number of results per page (max 100). For more information, see \"[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).\""},"page":{"type":"integer","default":1,"description":"The page number of the results to fetch. For more information, see \"[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api).\""}},"required":[],"additionalProperties":false}},"required":["path"],"additionalProperties":false},"name":"List accounts for a plan","id":"github.apps.list-accounts-for-plan","example":{"path":{"plan_id":1}},"maxRequests":1,"summary":false}}