Attachments can be listed either for a specific post using the nested route or across all posts using the standalone route.
Nested: GET /v1/ats/posts/:post_id/attachments — returns only attachments belonging to the specified post. Returns 403 if the post does not exist.
Standalone: GET /v1/ats/attachments — returns all attachments across all posts.
Example request (nested):
GET /api/index.php/v1/ats/posts/101/attachmentsAuthorization: Bearer <token>Accept: application/vnd.api+json
HTTP codes:
Returns a JSON:API collection of attachment resources.
The API user is not an ATS manager, or (for the nested route) the post does not exist.