Access Workflow jobs output via API

Since repository_dispatch does not return the workflow id as a response, we’re trying to find the workflow by passing a UUID as a payload and then output it. Currently we’re using artifacts to make this information accessible but I was wondering if there’s an option to access workflow output via the REST API.
If this would be possible, we won’t be needed to upload artifacts as well as downloading them and unzipping (since artifacts are only coming as zips)