---
title: "Get campaign action by action key (deprecated)"
type: reference
method: GET
path: /rest-api/campaign/{campaignId}/action/{actionKey}.do
tag: "Actions"
---

# Get campaign action by action key (deprecated)

`GET https://YOUR-NETWORK-DOMAIN/rest-api/campaign/{campaignId}/action/{actionKey}.do`

DEPRECATED: Use GET /rest-api/action/{actionKey} instead. Returns a single conversion action identified by its action key within the context of a specific campaign. The campaignId is used to generate the action key for the response but the action itself is looked up by key. Returns 404 if no action exists with the given key. Requires authentication.

## Path params

| Name | Type | Required | Example | Description |
|---|---|---|---|---|
| `campaignId` | integer | yes | `2001` | The numeric ID of the campaign. Used for context when generating the action key in the response. |
| `actionKey` | string | yes | `a1b2c3d4e5` | The unique action key string that identifies the action. |

## Responses

- `200` — Action object with key, id, name, and conversion time frame settings
- `400` — Bad request — invalid or missing parameters
- `401` — Authentication error
- `403` — Not enough permissions
- `404` — No action found with the given action key

## Example request

```bash
curl --request GET \
  --url 'https://YOUR-NETWORK-DOMAIN/rest-api/campaign/2001/action/a1b2c3d4e5.do' \
  --header 'X-Api-Key: YOUR_API_KEY'
```

Source: https://epom.com/ad-server/docs/api/actions/get-campaign-action