Use the API base URL
Send requests tohttps://app.ona.com/api.
If your organization uses a custom management-plane domain, replace
https://app.ona.com with that domain. Create and use tokens from the same domain.Authenticate requests
Send a personal access token or service account token as a Bearer token in theAuthorization header.
Send Connect requests
Unary methods acceptPOST requests with Protocol Buffer JSON request bodies. The generated method pages list the route, RPC cardinality, request fields, response fields, validation constraints, and a copyable example.
Protocol Buffer JSON differs from ordinary JSON in a few places:
- Field names use their lower camel-case JSON name, such as
environmentId. - Enum values use symbolic names, such as
ENVIRONMENT_PHASE_RUNNING. - 64-bit integers are strings.
bytesfields are base64-encoded strings.- Timestamps use RFC 3339 strings and durations use strings such as
60s. - Unknown fields are rejected.
application/connect+json or application/connect+proto. Use a generated Connect client for streaming rather than sending an unframed JSON body directly.
Handle errors
Connect errors contain a machine-readable code and message. Treat authentication and permission errors separately from validation failures, and do not retry requests with invalid arguments. Retry transient errors such asunavailable with exponential backoff.
Never log Bearer tokens or secret request fields when recording failed requests.