Organizations
PreviewOrganizations, members and invitations. Reference for API version next.
On this page
List your organizations
/api/v1/organizations Authentication
- API key in X-API-Key
- API key or session token in Authorization: Bearer
Responses
200Organizations you belong to.Body (application/json)
organizationsarray of objects
429A per-user limit was exceeded (the Platform API, embeddings or rerank). This response does not use the error envelope. Wait forRetry-Afterseconds.Headers
X-Request-IDstringThe request's correlation id (yours, or one BreachLine generated). Quote it to support.
Retry-AfterintegerSeconds to wait before retrying.
Body (application/json)
detailstring Requiredretry_afterinteger Required- Always
60
Example
curl "https://api.breachline.io/api/v1/organizations" \
-H "Authorization: Bearer $BREACHLINE_API_KEY"
{
"organizations": [
{}
]
}
Get an organization
/api/v1/organizations/{org_id} Members only.
Authentication
- API key in X-API-Key
- API key or session token in Authorization: Bearer
Path parameters
org_idstring RequiredOrganization id.
Responses
200The organization.Body (application/json)
429A per-user limit was exceeded (the Platform API, embeddings or rerank). This response does not use the error envelope. Wait forRetry-Afterseconds.Headers
X-Request-IDstringThe request's correlation id (yours, or one BreachLine generated). Quote it to support.
Retry-AfterintegerSeconds to wait before retrying.
Body (application/json)
detailstring Requiredretry_afterinteger Required- Always
60
Example
curl "https://api.breachline.io/api/v1/organizations/{org_id}" \
-H "Authorization: Bearer $BREACHLINE_API_KEY"
{}
List members
/api/v1/organizations/{org_id}/members Members only.
Authentication
- API key in X-API-Key
- API key or session token in Authorization: Bearer
Path parameters
org_idstring RequiredOrganization id.
Responses
200The members.Body (application/json)
429A per-user limit was exceeded (the Platform API, embeddings or rerank). This response does not use the error envelope. Wait forRetry-Afterseconds.Headers
X-Request-IDstringThe request's correlation id (yours, or one BreachLine generated). Quote it to support.
Retry-AfterintegerSeconds to wait before retrying.
Body (application/json)
detailstring Requiredretry_afterinteger Required- Always
60
Example
curl "https://api.breachline.io/api/v1/organizations/{org_id}/members" \
-H "Authorization: Bearer $BREACHLINE_API_KEY"
{}
Invite a member
/api/v1/organizations/{org_id}/invites Requires the org:invite member scope. The response includes the invitation token; treat it as a secret.
Authentication
- API key in X-API-Key
- API key or session token in Authorization: Bearer
Path parameters
org_idstring RequiredOrganization id.
Request body
emailstring (email) Required- Maximum length
254
rolestring- Default
MEMBER
scopesarray of strings- Maximum items
200
Responses
201The invitation.Body (application/json)
idstringinvitee_emailstringrolestringscopesarray of stringsstatusstringexpires_atstring (date-time)tokenstringThe invitation token. Treat it as a secret.
429A per-user limit was exceeded (the Platform API, embeddings or rerank). This response does not use the error envelope. Wait forRetry-Afterseconds.Headers
X-Request-IDstringThe request's correlation id (yours, or one BreachLine generated). Quote it to support.
Retry-AfterintegerSeconds to wait before retrying.
Body (application/json)
detailstring Requiredretry_afterinteger Required- Always
60
Example
curl -X POST "https://api.breachline.io/api/v1/organizations/{org_id}/invites" \
-H "Authorization: Bearer $BREACHLINE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"email": "string"
}'
{
"id": "string",
"invitee_email": "string",
"role": "string",
"scopes": [
"string"
],
"status": "string",
"expires_at": "2026-11-11T00:00:00Z",
"token": "string"
}