Create a Loop Link

Create a new Loop Link to begin submitting events and feedback.

Create a Loop Link

post
Authorizations
Body
expire_dtstring · date-timeOptional

Date/time the Loop Link is set to expire in ISO 8601 format.

All dates are in UTC.

This is an optional field - omit if not needed.

E.g. 2023-05-08T00:29:45.859Z

namestring · min: 1 · max: 120Optional

Name of the Loop Link. This is for your own use as a way to differentiate your Loop Links.

E.g. Hotel ABC

Example: Hotel ABCPattern: ^[a-zA-Z0-9 _-]+$
Responses
201

Successful Response

application/json
post
/v1/loop/links
POST /v1/loop/links HTTP/1.1
Host: api.predicthq.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 109

{
  "expire_dt": "2025-10-30T18:33:35.655Z",
  "metadata": {
    "ANY_ADDITIONAL_PROPERTY": "anything"
  },
  "name": "Hotel ABC"
}
{
  "link_id": "text",
  "expire_dt": "2025-10-30T18:33:35.655Z",
  "metadata": {
    "ANY_ADDITIONAL_PROPERTY": "anything"
  },
  "name": "text",
  "status": "text",
  "create_dt": "2025-10-30T18:33:35.655Z",
  "update_dt": "2025-10-30T18:33:35.655Z",
  "links": {
    "event": "https://example.com",
    "event_feedback": "https://example.com"
  }
}

Examples

curl -X POST "https://api.predicthq.com/v1/loop/links" \
     -H "Accept: application/json" \
     -H "Authorization: Bearer $ACCESS_TOKEN" \
     --data @<(cat <<EOF
    {
        "name": "Hotel A",
        "expire_dt": "2021-11-01T11:12:34",
        "metadata": {
            "hotel_id": "123456789"
        }
    }
    EOF
    )

OpenAPI Spec

The OpenAPI spec for Loop API can be found here.

Guides

Below are some guides relevant to this API:

Last updated

Was this helpful?