List connection candidates
const url = 'https://example.com/v1/connection-choices/candidates?projectId=2489E9AD-2EE2-8E00-8EC9-32D5F69181C0&owner=me&limit=25';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://example.com/v1/connection-choices/candidates?projectId=2489E9AD-2EE2-8E00-8EC9-32D5F69181C0&owner=me&limit=25' \ --header 'Authorization: Bearer <token>'The connections a choice in the project may name: live ones, working or needing a reconnect, in this server’s environment, on a live registration that allows the project. The company’s: the project’s admins read each in full, and its members read connectionId and name only (read on the project). With owner=me, the caller’s own instead, in full, with main.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”The project.
Only this app’s (its entry id).
me: only the caller’s own, even for a tenant admin.
1..100. Default 25.
Where the previous page ended: its nextCursor, as it came. A runtime that seals cursors takes one only for the same list, filters and caller, within a day; otherwise 400 bad-input, and the list starts again without it. Absent → first page.
Responses
Section titled “Responses”Page of candidates.
object
A connection a choice in the project may name: the company’s, or with owner=me, your own. Its state is working or needs-reconnecting: one that needs reconnecting may be chosen, and works again once it’s reconnected. A project admin reads all of a company one; a project member, only connectionId and name. You read all of your own.
object
Its label, else its account’s label (a connection made before connections had names).
The app’s entry id.
Its account’s label: an email address, a login.
working: runs can use it. needs-reconnecting: the app no longer accepts it; connect again. removing: a disconnect is under way. removed: gone.
Only ever true, with owner=me: your main connection of the app.
Example
{ "data": [ { "state": "working" } ]}No projectId, or one that is not a UUID; an app that is not an entry id; or an owner other than me (bad-input).
object
object
Stable machine-readable discriminant. Values match domain error codes (see docs/API-ROUTE-CONVENTIONS.md §4.3).
Optional, kind-specific.
object
Server-assigned request id; also echoed via X-Request-Id header.
Examplegenerated
{ "error": { "code": "example", "message": "example", "details": {}, "requestId": "example" }}Missing / malformed / expired / revoked bearer token.
object
object
Stable machine-readable discriminant. Values match domain error codes (see docs/API-ROUTE-CONVENTIONS.md §4.3).
Optional, kind-specific.
object
Server-assigned request id; also echoed via X-Request-Id header.
Examplegenerated
{ "error": { "code": "example", "message": "example", "details": {}, "requestId": "example" }}Not a member of the project (permission-denied).
object
object
Stable machine-readable discriminant. Values match domain error codes (see docs/API-ROUTE-CONVENTIONS.md §4.3).
Optional, kind-specific.
object
Server-assigned request id; also echoed via X-Request-Id header.
Examplegenerated
{ "error": { "code": "example", "message": "example", "details": {}, "requestId": "example" }}The database was too busy to answer in time (database-busy); Retry-After (whole seconds) says when to try again.
object
object
Stable machine-readable discriminant. Values match domain error codes (see docs/API-ROUTE-CONVENTIONS.md §4.3).
Optional, kind-specific.
object
Server-assigned request id; also echoed via X-Request-Id header.
Examplegenerated
{ "error": { "code": "example", "message": "example", "details": {}, "requestId": "example" }}