Skip to main content
GET
/
v1
/
surface
/
content
Get surface content
curl --request GET \
  --url https://content.api.aampe.com/v1/surface/content \
  --header 'X-API-Key: <api-key>'
[
  {
    "surface_id": "be88dd29-4d92-4a06-9d9d-c42c220635fb",
    "assignment_id": "2b8970be-07b6-48c0-a2c0-e09447dfdcd9",
    "n_alternates": 1,
    "control": {
      "min_gap_days": 1
    },
    "alternates": [
      {
        "alternate_assignment_id": "c95d1dc3-8f4e-4a84-90b0-d5f7d365d7c5"
      }
    ]
  }
]

Authorizations

X-API-Key
string
header
required

Query Parameters

contact_id
string
required

The ID of the user for which you want to retrieve content.

surface_id
string<uuid>[]
required

The UUID v4 IDs of the surfaces for which you want to retrieve content.

Response

Successful Response

surface_id
string<uuid>
required

UUID v4 id for the surface

Example:

"be88dd29-4d92-4a06-9d9d-c42c220635fb"

assignment_id
string<uuid>
required

UUID v4 id for the content assignment

Example:

"2b8970be-07b6-48c0-a2c0-e09447dfdcd9"

n_alternates
integer
required

Total number of alternates

Example:

1

control
SurfaceControl · object
required
alternates
SurfaceAlternate · object[]
required