{"command":{"effect":"read","timeoutSeconds":30,"inputSchema":{"type":"object","description":"Lists secret scanning custom patterns for an organization.\n\nPersonal access tokens (classic) need the `read:org` scope to use this endpoint.","properties":{"path":{"type":"object","properties":{"org":{"type":"string","description":"The organization name. The name is not case sensitive."}},"required":["org"],"additionalProperties":false},"query":{"type":"object","properties":{"state":{"type":"string","enum":["published","unpublished"],"description":"Filter custom patterns by state. When absent, returns patterns in all states."},"push_protection":{"type":"string","enum":["enabled","disabled"],"description":"Filter custom patterns by whether push protection is enabled. When absent, returns patterns regardless of push protection status."},"sort":{"type":"string","enum":["created","updated","name"],"default":"created","description":"The property to sort the results by."},"direction":{"type":"string","enum":["asc","desc"],"default":"desc","description":"The direction to sort the results by."},"before":{"type":"string","description":"A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results before this cursor. 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).\""},"after":{"type":"string","description":"A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results after this cursor. 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 organization custom patterns","id":"github.secret-scanning.list-org-custom-patterns","example":{"path":{"org":"example"}},"maxRequests":1,"summary":false}}