Search services
Search the e-Oficlinic services by text over the connection's local index of the provider's complete master catalog and its professionals' configured services (GRID_PROCEDIMIENTOS), read through the connection and published only when complete. Results rank by an exact provider id, code or CUPS code, then the text as a phrase of the name, every word (accents ignored, prefixes allowed), then words within a small spelling distance. excludeTerms and excludeServiceIds are hard exclusions applied before ranking: no excluded service ever comes back, related ones included. configuredOnly (true by default) keeps services configured for at least one active professional; false searches the whole master catalog, which is not coverage. includeRelated adds, below every direct match, services configured for active professionals whose specialty matches the text, marked related_specialty: it is not a claim of clinical equivalence. Nothing here is coverage, an authorization or an open slot. The first search of a connection starts building the index and answers INDEX_NOT_READY until it is complete; an older index keeps serving while a refresh builds. Pass pageInfo.nextCursor with the same filters for more. agentMode true answers concise Spanish text instead.
- Scope:
oficlinic:services: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 64 KB
- CLI:
arbol oficlinic services search· MCP tool:oficlinic_services_search
https://api.getarbol.com/v1/oficlinic/services/searchAuthorization
Request body JSON required
Returns
200
Successful operation.
400
INVALID_INPUT: The request does not match the published schema.INVALID_CURSOR: The cursor is invalid or belongs to another list.
401
UNAUTHORIZED: A valid access token is required.
403
FORBIDDEN: The token does not authorize this operation.
404
CONNECTION_NOT_FOUND: The connection does not exist in this organization.PROFESSIONAL_NOT_FOUND: The professional is not an active professional of the connection's indexed directory.
409
CONNECTION_REQUIRED: The organization has several active connections: select one.CONNECTION_NOT_ACTIVE: The connection is not active.REAUTHENTICATION_REQUIRED: Provider sign-in is stopped for this connection. Verify the connection again.INDEX_UNAVAILABLE: The connection's service index could not be built. Staff must check the connection and sync the catalog.
413
REQUEST_TOO_LARGE: The request exceeds the allowed size.
415
UNSUPPORTED_MEDIA_TYPE: The request content type is not supported.
429
RATE_LIMITED: The request rate limit was exceeded. Try again later.
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 returned an unrecognized response.
503
UPSTREAM_UNAVAILABLE: The upstream service could not complete the request.INDEX_NOT_READY: The connection's service index is being built. Try again shortly.