Look up affiliation
Read one matching member contract from an active Account connection. Confirmed affiliation results are reused for seven days. When the provider lists no contract for the document in the company, the answer is outcome noContract with active null: an answer, not a failure and not inactive, so confirm the document number and the company with the person. PATIENT_UNRESOLVED means it listed several contracts and none was chosen. The session is kept alive through the day, and one renewal is admitted only on expiry. This does not authorize care.
- Scope:
sanitas:affiliations:read - Credentials: an API key, a client-credentials token or a person's access token
- Effect: read-only; safe to retry
- Limits: request body up to 8 KB, response up to 32 KB
- CLI:
arbol sanitas affiliations lookup· MCP tool:sanitas_affiliations_lookup
POST
https://api.getarbol.com/v1/sanitas/affiliations/lookupAuthorization
Request body JSON required
Returns
200
Successful operation.
400
INVALID_INPUT: The request does not match the published schema.
401
UNAUTHORIZED: A valid access token is required.
403
FORBIDDEN: The token does not authorize this operation.
404
CONNECTION_NOT_FOUND: The connection is unavailable in this organization.
409
CONNECTION_REQUIRED: Select an active Sanitas connection.PROVIDER_CONTEXT_REQUIRED: Select one of this connection’s provider contexts before querying affiliation.PROVIDER_SESSION_EXPIRED: The provider session requires verification.PATIENT_UNRESOLVED: The provider listed several contracts for this document in this company and none was chosen. Coverage is unknown.
413
REQUEST_TOO_LARGE: The request exceeds the allowed size.
415
UNSUPPORTED_MEDIA_TYPE: The request content type is not supported.
422
CREDENTIALS_REJECTED: The organization's connection to this integration couldn't complete the request. Don't retry it automatically; if it keeps happening, contact your Arbol team.
429
RATE_LIMITED: The request rate limit was exceeded. Try again later.LOGIN_COOLING_DOWN: The organization's connection to this integration couldn't complete the request. Don't retry it automatically; if it keeps happening, contact your Arbol team.
500
INTERNAL_ERROR: The service could not complete the operation.
502
OUTCOME_UNKNOWN: The operation may have been applied; check its result before repeating it.PROVIDER_PROTOCOL_CHANGED: The provider response could not be verified.
503
UPSTREAM_UNAVAILABLE: The upstream service could not complete the request.PROVIDER_UNAVAILABLE: The provider is temporarily unavailable. Coverage is unknown.PROVIDER_ACCESS_DENIED: Sanitas denied the validator request. Coverage is unknown.PROVIDER_CHALLENGE_REQUIRED: The provider requires an interactive challenge. Coverage is unknown.