Search an agency's organizations

POST /agencies/{agencyId}/organizations/search

POST https://zanpki.com/agencies/{agencyId}/organizations/search

Operation ID agencies.agencyId.organizations.search.post
Access Browser session signed in through ZanAuth, using the access token cookie alongside its ID token and refresh token cookies. Or: An access token issued for this site by its ZanAuth issuer, or a static key.

Parameters

NameInTypeDescription
agencyId Path Required string (snowflake) Agency ID.

Request body

Required, sent as application/x-www-form-urlencoded, application/json.

Schema: B2bOrganizationSearchBody

PropertyTypeDescription
page integer (int32) Optional The page number to show, starting at 1. Values past the last page return the last page.
results_per_page one of: 10, 25, 50, 100 Optional How many results to show on each page.
name string, or null Optional Filter organizations whose name contains this text.

Responses

StatusDescriptionSchemaContent type
200 One page of matching search results. B2bOrganizationSearchAnswer application/json
422 The request input was rejected. The errors object lists each validation failure. ValidationProblem application/json
503 The request was rejected. The problem type identifies the error, and the detail field provides a human-readable explanation. Problem application/json
Any other status The request was rejected. The problem type identifies the error, and the detail field provides a human-readable explanation. Problem application/json

200 One page of matching search results.

PropertyTypeDescription
pagination Pagination Required Pagination details for this page of results.
rows list of B2bOrganizationLine Required Matching organizations on this page.

422 The request input was rejected. The errors object lists each validation failure.

PropertyTypeDescription
type string Required A URL that identifies the kind of problem. Its last segment, such as auth_required or input_invalid, is the code your app should check.
title string Required The HTTP status as text, such as Not Found.
status integer (int32) Required The HTTP status code of the response.
detail string Required A human-readable explanation of what went wrong.
instance string Required The path the request was sent to.
errors InputErrors Required Validation errors for each rejected value. Parameter errors are returned as a list, and body errors as a tree matching the request body structure.

503 The request was rejected. The problem type identifies the error, and the detail field provides a human-readable explanation.

PropertyTypeDescription
type string Required A URL that identifies the kind of problem. Its last segment, such as auth_required or input_invalid, is the code your app should check.
title string Required The HTTP status as text, such as Not Found.
status integer (int32) Required The HTTP status code of the response.
detail string Required A human-readable explanation of what went wrong.
instance string Required The path the request was sent to.

Any other status: The request was rejected. The problem type identifies the error, and the detail field provides a human-readable explanation.

PropertyTypeDescription
type string Required A URL that identifies the kind of problem. Its last segment, such as auth_required or input_invalid, is the code your app should check.
title string Required The HTTP status as text, such as Not Found.
status integer (int32) Required The HTTP status code of the response.
detail string Required A human-readable explanation of what went wrong.
instance string Required The path the request was sent to.

Example

curl -X POST 'https://zanpki.com/agencies/{agencyId}/organizations/search' \
  -H 'Authorization: Bearer <access token>' \
  -H 'Content-Type: application/json' \
  -d '{}'

All documentation