Skip to main content
GET
/
content
/
{id}
cURL
curl --request GET \
  --url https://api.patterns.company/v1/content/{id} \
  --header 'Authorization: Bearer <token>'
[
  {
    "id": "<string>",
    "pattern": "<string>",
    "user": "<string>",
    "prospect": "<string>",
    "template": "<string>",
    "status": "waiting",
    "language": "<string>",
    "analytics": [
      {
        "id": "<string>",
        "selector": "<string>",
        "type": "view"
      }
    ],
    "content": [
      {
        "selector": "<string>",
        "type": "text",
        "payload": "<string>"
      }
    ],
    "createdAt": "2023-11-07T05:31:56Z",
    "updatedAt": "2023-11-07T05:31:56Z"
  }
]

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string<ObjectId>
required

ID of content to look up

Response

Content response

id
string<ObjectId>

ID of the content

pattern
string

Pattern you neet to pass into the page with a snippet

user
string

User who created the content

prospect
string

Prospect for whom the content is created

template
string

Template used for the content

status
enum<string>

Status of the content

Available options:
waiting,
generating,
completed
language
string

Language of the content

analytics
object[]

Analytics of the content

content
object[]

Content of the content

createdAt
string<date-time>

Date and time when the content was created

updatedAt
string<date-time>

Date and time when the content was last updated