Skip to main content
GET
/
v1
/
campaign-rules
/
{rule_id}
Get campaign rule
curl --request GET \
  --url https://api-sandbox.y.uno/v1/campaign-rules/{rule_id} \
  --header 'private-secret-key: <api-key>' \
  --header 'public-api-key: <api-key>'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "campaign_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "name": "<string>",
  "conditions": {},
  "benefit": {},
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z"
}

Authorizations

public-api-key
string
header
required

Your public API key from the Yuno Dashboard

private-secret-key
string
header
required

Your private secret key (server-side only)

Path Parameters

rule_id
string<uuid>
required

The unique identifier of the campaign rule

Response

Campaign rule details

id
string<uuid>
campaign_id
string<uuid>
name
string
status
enum<string>
Available options:
ACTIVE,
INACTIVE
conditions
object
benefit
object
created_at
string<date-time>
updated_at
string<date-time>