> This page is part of EVVA for Developers (https://developers.evvahub.com), the documentation of the EVVA Partner API. The API is in developer preview and the SDK packages are not yet published: do not suggest installing them. Index: https://developers.evvahub.com/llms.txt

# Get a marketing link

GET https://api.evvahub.com/partner/v1/accounts/{creatorId}/links/{ref}

Returns one of the creator's marketing links.

A link that is not yours and a link that does not exist both answer `404`.

**Required scopes:** `read:links`.

Reference: https://developers.evvahub.com/api-reference/links/get-marketing-link

## Authentication

- `Authorization` header (bearer token, required) — OAuth 2.0 client credentials. Request an access token at `POST /partner/v1/oauth/token` (`grant_type=client_credentials`) with the application's client secret or a `private_key_jwt` assertion, then send it as `Authorization: Bearer evpa_live_…` (or `evpa_test_…` for a sandbox application). Tokens are opaque and short lived (see `expires_in`); there is no refresh token. Each operation lists the scopes it requires.

## Request

### Path parameters

- `creatorId` (string, required) — The creator profile id — the ONLY source of the creator a request acts for.
- `ref` (string, required)

### Headers

- `X-Creator-Id` (string, optional) — Optional echo of the path `creatorId`; any other value is refused with 403 CREATOR_CONTEXT_MISMATCH.

## Response

### 200

OK.

- `link` (MarketingLink, required) — One of the creator's marketing links. `traffic` and `outcomes` cover the 30 days before your request. Each is `null` when EVVA cannot report it, which never means "no traffic": a link nobody used reports zeroes.

## Errors

### 401 Unauthorized Error

Token missing, malformed, expired or revoked: `INVALID_TOKEN` (or `UNAUTHORIZED` when no bearer token was sent). Request a new token and retry.

- `code` (string, required) — A stable machine-readable code (see `KnownErrorCode`; new codes may appear within v1).
- `error` (string, required)
- `requestId` (string, required, nullable) — The same value as the `X-Request-Id` response header — quote it when reporting a problem.
- `details` (any, optional) — Extra detail for the code, specific to the operation, such as field errors, limits or the creator's account-status details.

### 403 Forbidden Error

Not your creator, or not with this token: `GRANT_REVOKED` (no active link to the creator), `NOT_ASSIGNED`, `OAUTH_SCOPE_MISSING` (the creator has not consented to the scope), `INSUFFICIENT_SCOPE` (the token lacks it), `CREATOR_CONTEXT_MISMATCH`, `AGENCY_SUSPENDED`.

- `code` (string, required) — A stable machine-readable code (see `KnownErrorCode`; new codes may appear within v1).
- `error` (string, required)
- `requestId` (string, required, nullable) — The same value as the `X-Request-Id` response header — quote it when reporting a problem.
- `details` (any, optional) — Extra detail for the code, specific to the operation, such as field errors, limits or the creator's account-status details.

### 404 Not Found Error

No such resource, or it belongs to another creator: `NOT_FOUND` or a more specific code.

- `code` (string, required) — A stable machine-readable code (see `KnownErrorCode`; new codes may appear within v1).
- `error` (string, required)
- `requestId` (string, required, nullable) — The same value as the `X-Request-Id` response header — quote it when reporting a problem.
- `details` (any, optional) — Extra detail for the code, specific to the operation, such as field errors, limits or the creator's account-status details.

### 429 Too Many Requests Error

Rate limited: `RATE_LIMIT_EXCEEDED`. Wait `Retry-After` seconds before retrying.

- `code` (enum, required) — A stable machine-readable code (see `KnownErrorCode`; new codes may appear within v1).
  - Allowed values: `RATE_LIMIT_EXCEEDED`, `TOO_MANY_MESSAGES`
- `error` (string, required)
- `requestId` (string, required, nullable) — The same value as the `X-Request-Id` response header — quote it when reporting a problem.
- `details` (RateLimitErrorDetails, optional) — Extra detail for the code, specific to the operation, such as field errors, limits or the creator's account-status details.

### 500 Internal Server Error

Unexpected server error: `INTERNAL_ERROR`. Nothing internal is disclosed; quote the `X-Request-Id` when you report it.

- `code` (string, required) — A stable machine-readable code (see `KnownErrorCode`; new codes may appear within v1).
- `error` (string, required)
- `requestId` (string, required, nullable) — The same value as the `X-Request-Id` response header — quote it when reporting a problem.
- `details` (any, optional) — Extra detail for the code, specific to the operation, such as field errors, limits or the creator's account-status details.

### 503 Service Unavailable Error

Temporarily unavailable: `SERVICE_UNAVAILABLE`, `TEMPORARILY_UNAVAILABLE`, `MEDIA_STORAGE_UNAVAILABLE` or `CREATOR_STANDING_UNAVAILABLE`. Retry after `Retry-After` seconds.

- `code` (string, required) — A stable machine-readable code (see `KnownErrorCode`; new codes may appear within v1).
- `error` (string, required)
- `requestId` (string, required, nullable) — The same value as the `X-Request-Id` response header — quote it when reporting a problem.
- `details` (any, optional) — Extra detail for the code, specific to the operation, such as field errors, limits or the creator's account-status details.

## Types

### MarketingLink

One of the creator's marketing links. `traffic` and `outcomes` cover the 30 days before your request. Each is `null` when EVVA cannot report it, which never means "no traffic": a link nobody used reports zeroes.

- `ref` (string, required) — The link's reference: `{ref}` in the link's own path. The last link's `ref` on a full page is the page's `nextBefore`.
- `principal` (string, required) — The creator the link belongs to, as the `creatorId`.
- `name` (string, required) — The link's name, 1 to 120 characters.
- `destination` (string, required) — Where the link sends visitors.
- `state` (enum, required) — `draft` until the tracked link exists; `active` while it sends visitors on; `paused` while it is stopped and sends nobody on; `archived` for good.
  - Allowed values: `draft`, `active`, `paused`, `archived`
- `declaredChannel` (enum, required) — Where the creator says the link is used. A statement, never changed to match the traffic.
  - Allowed values: `social`, `email`, `messaging`, `search`, `display`, `video`, `affiliate`, `offline`, `other`
- `campaignRef` (string, required, nullable) — The campaign the link belongs to, or `null`.
- `utm` (MarketingLinkUtm, required) — The UTM values of the link. Each is `null` when not set.
- `creativeName` (string, required, nullable) — The name of the creative the link is used with, or `null`.
- `tdsLinkRef` (string, required, nullable) — The reference of the tracked link behind this marketing link, or `null` while none exists.
- `shareableUrl` (string, required, nullable) — The URL to share, or `null` when the link has no tracked link yet or this deployment gives no shareable URL.
- `traffic` (MarketingLinkTraffic, required, nullable) — Visits to the link over the 30 days before the request, or `null` when EVVA cannot report them. `null` never means "no traffic".
- `outcomes` (MarketingLinkOutcomes, required, nullable) — What the link earned over the same period as `traffic`, counted from the orders credited to it, or `null` when EVVA cannot report it.
- `createdAt` (datetime, required) — When the link was created.
- `updatedAt` (datetime, required) — When the link last changed.

### RateLimitErrorDetails

Extra detail for the code, specific to the operation, such as field errors, limits or the creator's account-status details.

- `retryAfterSec` (integer, required)
- `level` (enum, optional) — The DM send limit that refused the message, set only with `TOO_MANY_MESSAGES`. It is never a quota, a count or a key. - `conversation` — one side of one thread. - `sender` — a person's own ceiling; it does not apply to applications. - `creator` — everything sent for the creator, studio included. - `application` — everything your application sends. - `agency` — everything your agency sends. - `platform` — the agency's fair share of the platform: its throughput or its concurrency. See [rate limits](/authentication/rate-limits).
  - Allowed values: `conversation`, `sender`, `creator`, `application`, `agency`, `platform`

### MarketingLinkUtm

The UTM values of the link. Each is `null` when not set.

- `source` (string, required, nullable) — `utm_source`.
- `medium` (string, required, nullable) — `utm_medium`.
- `campaign` (string, required, nullable) — `utm_campaign`.
- `content` (string, required, nullable) — `utm_content`.
- `term` (string, required, nullable) — `utm_term`.

### MarketingLinkTraffic

Visits to the link over the 30 days before the request, or `null` when EVVA cannot report them. `null` never means "no traffic".

- `servedCount` (integer, required) — Visits the link sent on to its destination.
- `refusedCount` (integer, required) — Visits the link refused.
- `windowFrom` (datetime, required) — The start of the counted period, included.
- `windowTo` (datetime, required) — The end of the counted period, excluded.

### MarketingLinkOutcomes

What the link earned over the same period as `traffic`, counted from the orders credited to it, or `null` when EVVA cannot report it.

- `follows` (integer, required, nullable) — Always `null` for now: EVVA does not record which link a follow came from.
- `subscriptions` (integer, required) — Subscriptions that started through the link: a fully paid first period or a free trial begun. A renewal or a trial's conversion does not count again.
- `revenue` (MarketingLinkOutcomesRevenue, required, nullable) — The creator's share of the fully paid orders credited to the link, renewals and conversions included, after the platform's share and net of refunds and chargebacks. `null` unless your application's effective access to the creator covers `read:revenue`.
- `windowFrom` (datetime, required) — The start of the counted period, included. The same as `traffic`.
- `windowTo` (datetime, required) — The end of the counted period, excluded. The same as `traffic`.

### MarketingLinkOutcomesRevenue

The creator's share of the fully paid orders credited to the link, renewals and conversions included, after the platform's share and net of refunds and chargebacks. `null` unless your application's effective access to the creator covers `read:revenue`.

- `minor` (string, required) — Minor units as a decimal string, never a JSON number.
- `currency` (string, required) — The currency of `minor`.

## Examples

**Response**

```json
{
  "link": {
    "ref": "2f7a9c41-6e3b-4d58-9b20-8a1c5e7f3d96",
    "principal": "cm4r7k2xq0001qz8w3n5v6b2d",
    "name": "Winter launch bio link",
    "destination": "https://example.com/mira_studio",
    "state": "active",
    "declaredChannel": "social",
    "campaignRef": null,
    "utm": {
      "source": "bio",
      "medium": "social",
      "campaign": "winter_launch",
      "content": null,
      "term": null
    },
    "creativeName": "Story frame A",
    "tdsLinkRef": "b41d7e92-3c5a-4f18-9e6b-2d8a0c7f5e31",
    "shareableUrl": "https://go.example.com/r/Kq7vN2xR9mT4pL8sW3yZ6bHd",
    "traffic": {
      "servedCount": 1284,
      "refusedCount": 17,
      "windowFrom": "2026-11-02T00:00:00.000Z",
      "windowTo": "2026-12-02T09:15:00.000Z"
    },
    "outcomes": {
      "follows": null,
      "subscriptions": 23,
      "revenue": {
        "minor": "18630",
        "currency": "USD"
      },
      "windowFrom": "2026-11-02T00:00:00.000Z",
      "windowTo": "2026-12-02T09:15:00.000Z"
    },
    "createdAt": "2026-11-25T10:12:44.381Z",
    "updatedAt": "2026-11-25T10:12:45.020Z"
  }
}
```

**SDK Code**

```python Links_getMarketingLink_example
import requests

url = "https://api.evvahub.com/partner/v1/accounts/cm4r7k2xq0001qz8w3n5v6b2d/links/2f7a9c41-6e3b-4d58-9b20-8a1c5e7f3d96"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.json())
```

```go Links_getMarketingLink_example
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.evvahub.com/partner/v1/accounts/cm4r7k2xq0001qz8w3n5v6b2d/links/2f7a9c41-6e3b-4d58-9b20-8a1c5e7f3d96"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("Authorization", "Bearer <token>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```php Links_getMarketingLink_example
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.evvahub.com/partner/v1/accounts/cm4r7k2xq0001qz8w3n5v6b2d/links/2f7a9c41-6e3b-4d58-9b20-8a1c5e7f3d96', [
  'headers' => [
    'Authorization' => 'Bearer <token>',
  ],
]);

echo $response->getBody();
```