---
title: "Read a destination's delivery attempt history"
description: "PubNio API posts.attempts: read a destination's delivery attempt history. Request fields, examples in five clients, errors, and idempotency."
---

> Documentation Index
> Fetch the complete documentation index at: https://pubnio.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Read a destination's delivery attempt history

Read a destination's delivery attempt history with [`GET /api/v1/posts/{postId}/targets/{targetId}/attempts`](https://pubnio.com/api/v1/docs#tag/posts/GET/api/v1/posts/{postId}/targets/{targetId}/attempts). Requires an API key with the `read` scope or a signed-in workspace member.

## Request

| Parameter     | In    | Type   | Required |
| ------------- | ----- | ------ | -------- |
| `postId`      | path  | UUID   | Yes      |
| `targetId`    | path  | UUID   | Yes      |
| `workspaceId` | query | UUID   | Yes      |
| `cursor`      | query | string | No       |
| `limit`       | query | string | No       |

## Response

- HTTP 200: `DeliveryHistory` with `currentAttemptId`, `data`, `hasMore`, `nextCursor`.

The [OpenAPI document](https://pubnio.com/api/v1/openapi) has each field's type.

## Examples

### TypeScript

```ts
const history = await workspace.posts.attempts(postId, targetId);
```

### Python

```python
history = workspace.posts.attempts(post_id, target_id)
```

### cURL

```sh
curl "https://pubnio.com/api/v1/posts/$POST_ID/targets/$TARGET_ID/attempts?workspaceId=$WORKSPACE_ID" \
  -H "Authorization: Bearer $PUBNIO_API_KEY"
```

### CLI

```sh
pnio posts attempts "$POST_ID" "$TARGET_ID"
```

### MCP execute

```js
async () => {
  const postId = "<postId>";
  const targetId = "<targetId>";
  const response = await codemode.request({
    method: "GET",
    path: `/api/v1/posts/${postId}/targets/${targetId}/attempts`,
    query: { workspaceId: codemode.workspaceId },
  });
  return response.data;
};
```

## Errors

It declares no problem of its own.

It declares the problems [most operations](https://pubnio.com/docs/reference/#shared-problems) declare.

## Idempotency

None needed: a read is safe to retry.

## Limits

- Up to 100 items a page; pass `nextCursor` back as `cursor`. See [Pagination](https://pubnio.com/docs/concepts/pagination/).

## Related

- [Posts operations](https://pubnio.com/docs/reference/#posts)
- [Publishing](https://pubnio.com/docs/publishing/)
- [Post lifecycle](https://pubnio.com/docs/concepts/post-lifecycle/)

Source: https://pubnio.com/docs/reference/posts-attempts/index.mdx
