Accounts
Get all accounts
https://automations-api.contentstack.com/v1/projects/{project_uid}/accounts?limit={limit_value}&skip={skip_value}&asc={field_uid}&desc={field_uid}&include_count={boolean_value}The Get all accounts request returns comprehensive information of all the accounts in a project.
To configure the permissions for your application via OAuth, include the automationhub.accounts:read scope.
Note If you do not specify a value for the optional “limit” query parameter, the API request will by default return the initial 100 items.
{
"accounts": [
{
"group_name": "chatgpt",
"title": "Test ChatGPT Account #1",
"description": "chatGPT auth",
"auth_id": "cb*********94bc590ea30bddfcdad9b",
"user_id": "blt******dae71c6b33",
"org_id": "blt******5ea6ddf287",
"connector_id": "6e4******73e4230b282283164091c07",
"project_id": "05732fe9f7d6454791715b09a3792f52",
"type": "custom",
"source": "automations",
"updated_by": "blt******dae71c6b33",
"scope_join_char": ",",
"created_at": "2024-02-22T12:05:29.854Z",
"updated_at": "2024-02-22T12:05:29.854Z",
"id": "f8cb5c59b72a46858fc709281cf27e50"
},
{
"group_name": "launch",
"title": "Test Launch Account #1",
"auth_id": "0e5a*********60dab5021b434c3ba24",
"user_id": "blt******dae71c6b33",
"org_id": "blt******5ea6ddf287",
"connector_id": "40a****f55c7485b807bb23a536e2a55",
"type": "oauth2",
"source": "automations",
"meta": "{\"scope\":{\"launch:manage\":true}}",
"scope_join_char": ",",
"created_at": "2024-02-22T12:14:18.382Z",
"updated_at": "2024-02-22T12:14:56.891Z",
"id": "94c48b974b9045b3a1327eeb10ada605",
"project_id": "05732fe9f7d6454791715b09a3792f52",
"updated_by": "blt******dae71c6b33"
}
]
}Get a single account
https://automations-api.contentstack.com/v1/projects/{project_uid}/accounts/{account_uid}The Get a single account request fetches a specific account in a project.
To configure the permissions for your application via OAuth, include the automationhub.accounts:read scope.
{
"group_name": "launch",
"title": "Test Launch Account #1",
"auth_id": "0e5a*********60dab5021b434c3ba24",
"user_id": "blt******dae71c6b33",
"org_id": "blt******5ea6ddf287",
"connector_id": "40a****f55c7485b807bb23a536e2a55",
"type": "oauth2",
"source": "automations",
"meta": "{\"scope\":{\"launch:manage\":true}}",
"scope_join_char": ",",
"created_at": "2024-02-22T12:14:18.382Z",
"updated_at": "2024-02-22T12:14:56.891Z",
"id": "94c48b974b9045b3a1327eeb10ada605",
"project_id": "05732fe9f7d6454791715b09a3792f52",
"updated_by": "blt******dae71c6b33"
}