Workflow
Get workflow details
Return details for a specific workflow.
get/workflow/runs/{workflow-id}
Request
- Base URLhttps://app.amperity.com/api
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
workflow-idstring required
Example:wf-20240905-66170-6HPlbJ
The workflow ID. Use GET /workflow/runs to list workflow IDs, or copy one from the Workflows page in Amperity.
Query parameters
api_versionstring
A supported version of the Amperity API. You may use the api-version request header instead of the api_version request parameter.
viewstring
Set to "overview" to return only "created_at", "ended_at", "id", "name", "state", "tenant", and "type". Set to "verbose" to return all response parameters, including for any tasks that were started by the workflow. Default: "overview". Any other value returns a 400 response.
Headers
Amperity-Tenantstring required
The ID for the tenant to which a request will be sent.
Api-Versionstring required
A supported version of the Amperity API.
Response
Workflow details
Example response
{
"created_at": "2024-06-19T04:00:18.764Z",
"ended_at": "2024-06-19T04:03:10.119Z",
"error": {
"attribution": "customer",
"data": {
"error_code": "InvalidAccessKeyId",
"id": "s3",
"request_id": "Z47DXHNGJ7ZPMRVS",
"retryable?": false
},
"message": "The credential does not provide access to the given resource. Please update\n the credential's access or try another credential.",
"type": "amperity.plugin.error/invalid-credentials"
},
"id": "wf-20240619-14418-6UhqSe",
"name": "Customer Attribute Daily",
"state": "failed",
"tenant": "acme2-max",
"type": "campaign.send"
}Changes
No recorded changes to this operation across all 1 revision of this API.