Skip to content
Connect an agent

Organisations

Read an organisation's secret scanning

Secret scanning before publish: warn (the default) or block, and the optional private-address and hostname kinds.

GET/orgs/{org}/secret-scanning

TL;DR

QuestionAnswer
What does it do?Read an organisation's secret scanning.
What does it take?org in the path.
What does it return?Status 200 with a body of type SecretScanning.
What can go wrong?401 not signed in; 404 no such organisation, or the caller is not a member of it; 429 too many requests; 503 organisations are not set up on this server. Every failure uses the one error envelope.

What it does

Secret scanning before publish: warn (the default) or block, and the optional private-address and hostname kinds. Any member may read it.

Path parameters

FieldTypeRequiredDescription
orgstringyesThe organisation's id or its slug.

Responses

StatusMeaningBody
200The setting.SecretScanning
401Not signed in.ErrorResponse
404No such organisation, or the caller is not a member of it.ErrorResponse
429Too many requests.ErrorResponse
503Organisations are not set up on this server.ErrorResponse

Response body

A 200 answer has the type SecretScanning.

FieldTypeRequiredDescription
mode"warn" | "block"yeswarn: a publish to the library goes ahead and every draw warns (W700 to W710). block: a publish, an auto-publish, an editor save or a public share with any finding is refused with 422 orgs.publish_blocked.
privateIpsbooleanyesAlso count private IPv4 addresses (10/8, 172.16/12, 192.168/16) as findings (W709). Off by default; counts only while mode is block.
hostPatternsstring[]yesInternal hostname patterns that count as findings (W710), such as *.corp.example: DNS names in lower case, with * only as the first label. Empty by default; count only while mode is block.

See also

DocWhy
API referenceEvery endpoint, and the error envelope
SchemasEvery request and response type
Tool referenceThe operations as callable tools