List accounts eligible for a trigger Beta
This endpoint is in beta. Its request and response may change.
Lists the connected accounts on a connection, and marks each one eligible or not for one trigger. An account that can't subscribe is still listed, with a reason and a remedy, such as reconnecting to grant a missing scope. Pass query to search account identifiers. Call this before you subscribe accounts.
Authorization
Authorization: Bearer $TOKEN, an access token from the client credentials grant. See Authentication.
Path parameters
connection_idstringrequiredtrigger_namestringrequiredQuery parameters
page_sizeintegerpage_tokenstringquerystringscalekit_client.actions.triggers.list_eligible_accounts
List a connection's connected accounts and whether each can subscribe.
scalekit_client.actions.triggers.list_eligible_accounts( connection_id: str, trigger_name: str, query: str | None = None, page_size: int | None = None, page_token: str | None = None,) -> ListEligibleAccountsResponseParameters
connection_idstrrequiredconn_...).trigger_namestrrequiredAvailableTrigger.name.querystr | Nonepage_sizeint | Nonepage_tokenstr | Nonenext_page_token or prev_page_token of a previous page.Returns ListEligibleAccountsResponse: One page of accounts with their eligibility and health.
From scalekit-sdk-python 2.23.0.
Response 200
accountsarray of objectShow 6 child attributes
eligiblebooleanhealthobjectShow 5 child attributes
actionstring (enum)RECONNECTCOMPLETE_SETUPblocks_tool_callsbooleanreasonstringremedystringstatestring (enum)READYAWAITING_CONFIRMATIONWRONG_APPDISCONNECTEDNEEDS_REAUTHENTICATIONidstringidentifierstringreasonstringremedystringnext_page_tokenstringprev_page_tokenstringtotal_sizeintegerErrors
Every error has the same body: code, message and details. See Errors and rate limits.
400Invalid request - connection_id is not a valid connection ID, page_token is not a token from a previous response, or query is longer than 100 characters404Not found - the connection does not exist in this environment, the connection's provider publishes no trigger with this name, or Triggers isn't turned on for your environment500Internal error - the accounts for this trigger could not be read; retry the request