Skip to main content
POST
/
api
/
v2
/
network
/
offers
/
{offer_id}
/
goals
Create goal
curl --request POST \
  --url 'https://{domain}/api/v2/network/offers/{offer_id}/goals?api-key=' \
  --header 'Content-Type: application/json' \
  --data '
{
  "title": "string",
  "type": 1,
  "status": 1,
  "tracking_method": 1,
  "revenue": 1,
  "payout": 1,
  "conversion_status": 1,
  "multiple_conversions": 0,
  "is_private": 0,
  "alias": "string",
  "hold_period": "string"
}
'
{
  "status": "success",
  "code": 200,
  "name": "OK",
  "message": "<string>",
  "info": {
    "goal": {}
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.scaleo.io/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

api-key
string
query
required

API key passed as query parameter. User must have api_status enabled.

Path Parameters

offer_id
integer
required

Offer ID.

Body

application/json
title
string
required
Maximum string length: 128
type
integer
required

Goal type ID.

status
integer
required

1=active, 3=inactive.

tracking_method
integer
required

1=postback, 2=pixel.

revenue
number
required
payout
number
required
conversion_status
integer

2=approved, 3=pending.

multiple_conversions
enum<integer>
Available options:
0,
1
is_private
enum<integer>
Available options:
0,
1
alias
string

Goal alias (alphanumeric and underscores only).

Maximum string length: 64
hold_period
string

Response

Goal created.

status
string
Example:

"success"

code
integer
Example:

200

name
string
Example:

"OK"

message
string
info
object