Introduction

This documentation aims to provide all the information you need to work with our API. The v2 (and above) API follows the Design Principles and Guidelines. If you find anything that doesn't comply, please complain to the dev team immediately 👮

Authenticating requests

To authenticate requests, include a Authorization header with the value "{accessToken}".

All authenticated endpoints are marked with a requires authentication badge in the documentation below.

For more information see Authentication in the P&E docs.

Advertiser

Creator Blocklist

Manages the creator blocklist for an advertiser.

Creators added to the blocklist will not see the advertiser nor be able to convert links for that advertiser.


Gets the entries in the blocklist

GET
https://api.metapic.dev
/v2/advertisers/{advertiser_id}/blocklist
requires authentication

Headers

Authorization
Example:
{accessToken}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

advertiser_id
integer
required

The ID of the advertiser.

Example:
8

Query Parameters

query
string

Filters results to match user ID or username. Must not be greater than 128 characters.

Example:
kqmxdxqpdjuxkymgtqq

Response Fields

Example request:
curl --request GET \
    --get "https://api.metapic.dev/v2/advertisers/8/blocklist?query=kqmxdxqpdjuxkymgtqq" \
    --header "Authorization: {accessToken}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
{
    "data": [
        {
            "id": 81,
            "created_at": "2026-02-03 15:38:57",
            "created_by": {
                "id": 3766,
                "username": "braun.grayce",
                "display_name": "Lucile Collins",
                "email": "[email protected]",
                "client_id": 3985
            },
            "client": {
                "id": 3986,
                "name": "Dr. Jeanette Muller IV",
                "client_id": "pBf7F3nLYC",
                "has_own_payment_system": false,
                "revenue_share": 1
            }
        },
        {
            "id": 82,
            "created_at": "2026-02-03 15:38:57",
            "created_by": {
                "id": 3767,
                "username": "yquitzon",
                "display_name": "Jameson Boyle",
                "email": "[email protected]",
                "client_id": 3987
            },
            "client": {
                "id": 3988,
                "name": "Vincenza Bradtke DDS",
                "client_id": "9ElcwxLJMq",
                "has_own_payment_system": false,
                "revenue_share": 1
            }
        }
    ],
    "links": {
        "first": "/?page=1",
        "last": "/?page=1",
        "prev": null,
        "next": null
    },
    "meta": {
        "current_page": 1,
        "from": 1,
        "last_page": 1,
        "links": [
            {
                "url": null,
                "label": "« Previous",
                "page": null,
                "active": false
            },
            {
                "url": "/?page=1",
                "label": "1",
                "page": 1,
                "active": true
            },
            {
                "url": null,
                "label": "Next »",
                "page": null,
                "active": false
            }
        ],
        "path": "/",
        "per_page": 10,
        "to": 2,
        "total": 2
    }
}

Add entries to the blocklist

POST
https://api.metapic.dev
/v2/advertisers/{advertiser_id}/blocklist
requires authentication

Adds the given entries to the blocklist, ignoring them if they previously existed.

Headers

Authorization
Example:
{accessToken}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

advertiser_id
integer
required

The ID of the advertiser.

Example:
9

Body Parameters

Example request:
curl --request POST \
    "https://api.metapic.dev/v2/advertisers/9/blocklist" \
    --header "Authorization: {accessToken}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"users\": [
        {
            \"id\": 123,
            \"validate_clicks\": true
        },
        {
            \"id\": 456,
            \"validate_clicks\": false
        }
    ],
    \"user_tag_ids\": [
        10
    ],
    \"client_ids\": [
        20
    ]
}"

Remove the target in the advertiser blocklist

DELETE
https://api.metapic.dev
/v2/advertisers/{advertiser_id}/blocklist/{target_id}
requires authentication

Headers

Authorization
Example:
{accessToken}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

advertiser_id
integer
required

The ID of the advertiser.

Example:
8
target_id
integer
required

The ID of the target.

Example:
15
Example request:
curl --request DELETE \
    "https://api.metapic.dev/v2/advertisers/8/blocklist/15" \
    --header "Authorization: {accessToken}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"

Order Collectors


Get settings for sales pixel implementation

GET
https://api.metapic.dev
/v2/advertisers/{advertiser}/order-collectors/sales-pixel
requires authentication

Returns the settings to be added to the sales pixel script.

Headers

Authorization
Example:
{accessToken}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

advertiser
string
required

The advertiser.

Example:
ut

Response Fields

Example request:
curl --request GET \
    --get "https://api.metapic.dev/v2/advertisers/ut/order-collectors/sales-pixel" \
    --header "Authorization: {accessToken}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
Headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 300
x-ratelimit-remaining: 300
access-control-allow-origin: *
{
    "message": "Unauthenticated."
}

Get order collector tracking settings

GET
https://api.metapic.dev
/v2/advertisers/{advertiser}/order-collectors/{collector}
requires authentication

Returns the tracking configuration for the advertiser.

Headers

Authorization
Example:
{accessToken}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

advertiser
string
required

The advertiser.

Example:
culpa
collector
string
required

The identifier of the collector

Must be one of:
  • woocommerce
Example:
woocommerce

Response Fields

Example request:
curl --request GET \
    --get "https://api.metapic.dev/v2/advertisers/culpa/order-collectors/woocommerce" \
    --header "Authorization: {accessToken}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
Headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 300
x-ratelimit-remaining: 300
access-control-allow-origin: *
{
    "message": "Unauthenticated."
}

Activate tracking plugin

POST
https://api.metapic.dev
/v2/activate-tracking-plugin

Activates the tracking plugin with the given activation key.

Returns the parameters to insert into the Javascript tracking snippet.

Headers

Content-Type
Example:
application/json
Accept
Example:
application/json

Body Parameters

Response Fields

Example request:
curl --request POST \
    "https://api.metapic.dev/v2/activate-tracking-plugin" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"metapic_activation_key\": \"vero\"
}"

Email quota

GET
https://api.metapic.dev
/v2/advertisers/{advertiser_id}/email-quota
requires authentication

Returns remaining email quota for the advertiser.

Headers

Authorization
Example:
{accessToken}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

advertiser_id
integer
required

The ID of the advertiser.

Example:
15

Response Fields

Example request:
curl --request GET \
    --get "https://api.metapic.dev/v2/advertisers/15/email-quota" \
    --header "Authorization: {accessToken}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:

GET v2/advertisers/{advertiser_id}/payment-setup

GET
https://api.metapic.dev
/v2/advertisers/{advertiser_id}/payment-setup
requires authentication

Headers

Authorization
Example:
{accessToken}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

advertiser_id
integer
required

The ID of the advertiser.

Example:
14
Example request:
curl --request GET \
    --get "https://api.metapic.dev/v2/advertisers/14/payment-setup" \
    --header "Authorization: {accessToken}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
Headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 300
x-ratelimit-remaining: 300
access-control-allow-origin: *
{
    "message": "Unauthenticated."
}

POST v2/advertisers/{advertiser_id}/payment-setup

POST
https://api.metapic.dev
/v2/advertisers/{advertiser_id}/payment-setup
requires authentication

Headers

Authorization
Example:
{accessToken}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

advertiser_id
integer
required

The ID of the advertiser.

Example:
12

Body Parameters

Example request:
curl --request POST \
    "https://api.metapic.dev/v2/advertisers/12/payment-setup" \
    --header "Authorization: {accessToken}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"payment_setup_id\": \"dolor\"
}"

Create Advertiser Representative

POST
https://api.metapic.dev
/v2/advertiser-representatives
requires authentication

Creates a new Metapic user and self-service advertiser for the current session. Requires an Ory-issued JWT for a session not yet linked to a Metapic user (no metapic_user_id).

Headers

Authorization
Example:
Bearer {JWT}
Content-Type
Example:
application/json
Accept
Example:
application/json

Body Parameters

Example request:
curl --request POST \
    "https://api.metapic.dev/v2/advertiser-representatives" \
    --header "Authorization: Bearer {JWT}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"My Store\",
    \"domains\": [
        [
            \"dev.test-test.com\"
        ]
    ],
    \"categories\": [
        2
    ],
    \"logo_url\": \"https:\\/\\/www.lebsack.com\\/quidem-voluptatem-qui-minima-voluptatem-dolorem-qui-delectus-fuga\",
    \"country\": \" Example: SE\",
    \"currency\": \"Example: EUR\",
    \"language\": \"sv\",
    \"billing\": {
        \"company_name\": \"quia\",
        \"street\": \"ut\",
        \"postal_code\": \"ex\",
        \"city\": \"dolores\",
        \"vat_number\": \"quos\"
    }
}"
Example response:

List stores

GET
https://api.metapic.dev
/v2/stores
requires authentication

Endpoint for querying & sorting all stores.

Headers

Authorization
Example:
{accessToken}
Content-Type
Example:
application/json
Accept
Example:
application/json

Query Parameters

query
string

Query by either of the following: ID, store name. Returns all stores with id equal to query OR name contains query. Must not be greater than 255 characters.

Example:
nike
store_group_id
integer

Query by store's store group. Returns all stores which belong to the given store_group_id.

Example:
15
size
integer

Page size. Defaults to 20. Must not be greater than 100.

Example:
20
sort_by
string

Must follow the correct format: column_name:direction, where column_name must be a valid property for given resource and direction can be one of asc|desc, both of which are required if sort_by is present.

Example:
exercitationem
Example request:
curl --request GET \
    --get "https://api.metapic.dev/v2/stores?query=nike&store_group_id=15&size=20&sort_by=exercitationem" \
    --header "Authorization: {accessToken}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
{
    "data": [
        {
            "id": 2200,
            "name": "Fay, Goldner and Marvin"
        },
        {
            "id": 2201,
            "name": "Wolf-Casper"
        }
    ],
    "links": {
        "first": "/?page=1",
        "last": "/?page=1",
        "prev": null,
        "next": null
    },
    "meta": {
        "current_page": 1,
        "from": 1,
        "last_page": 1,
        "links": [
            {
                "url": null,
                "label": "« Previous",
                "page": null,
                "active": false
            },
            {
                "url": "/?page=1",
                "label": "1",
                "page": 1,
                "active": true
            },
            {
                "url": null,
                "label": "Next »",
                "page": null,
                "active": false
            }
        ],
        "path": "/",
        "per_page": 20,
        "to": 2,
        "total": 2
    }
}

Accept invites for advertiser

PATCH
https://api.metapic.dev
/v2/me/advertiser-invites
requires authentication

Creates Metapic user and accepts all pending invites for advertiser

Headers

Authorization
Example:
Bearer {JWT}
Content-Type
Example:
application/json
Accept
Example:
application/json
Example request:
curl --request PATCH \
    "https://api.metapic.dev/v2/me/advertiser-invites" \
    --header "Authorization: Bearer {JWT}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
[Empty response]

Url Matching Rules

Manages url matching rules for an advertiser. Url Matching rule can either be to allow or to block matching of a URL based on added rules.


List all url matching rules

GET
https://api.metapic.dev
/v2/advertisers/{advertiser_id}/url-matching-rules
requires authentication

Returns all url matching rules defined for the advertiser.

Headers

Authorization
Example:
{accessToken}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

advertiser_id
integer
required

The ID of the advertiser.

Example:
9

Response Fields

Example request:
curl --request GET \
    --get "https://api.metapic.dev/v2/advertisers/9/url-matching-rules" \
    --header "Authorization: {accessToken}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
[
    {
        "id": 298,
        "type": "allow",
        "is_main": false,
        "url": "testcompany.com",
        "updated_at": "2026-02-03T15:38:57.000000Z"
    },
    {
        "id": 299,
        "type": "allow",
        "is_main": false,
        "url": "testcompany.com",
        "updated_at": "2026-02-03T15:38:57.000000Z"
    }
]

Add new url matching rule

POST
https://api.metapic.dev
/v2/advertisers/{advertiser_id}/url-matching-rules
requires authentication

Adds a new rule to the url matching for the advertiser.

Headers

Authorization
Example:
{accessToken}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

advertiser_id
integer
required

The ID of the advertiser.

Example:
15

Body Parameters

Example request:
curl --request POST \
    "https://api.metapic.dev/v2/advertisers/15/url-matching-rules" \
    --header "Authorization: {accessToken}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"type\": \"block\",
    \"url\": \"http:\\/\\/www.steuber.com\\/quo-iure-sit-facere-laboriosam-laboriosam-quidem\",
    \"keyword\": \"jgbaqbkrvtdmyczlppg\",
    \"is_main\": false
}"

Update url matching rule

PUT
PATCH
https://api.metapic.dev
/v2/advertisers/{advertiser_id}/url-matching-rules/{urlMatchingRule_id}
requires authentication

Updates existing url matching rule for the advertiser.

Headers

Authorization
Example:
{accessToken}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

advertiser_id
integer
required

The ID of the advertiser.

Example:
13
urlMatchingRule_id
integer
required

The ID of the urlMatchingRule.

Example:
19

Body Parameters

Example request:
curl --request PUT \
    "https://api.metapic.dev/v2/advertisers/13/url-matching-rules/19" \
    --header "Authorization: {accessToken}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"type\": \"allow\",
    \"url\": \"http:\\/\\/www.hyatt.net\\/enim-minima-nesciunt-commodi-saepe-ut-id-natus\",
    \"keyword\": \"plmqgvdrixluzwuncsfug\",
    \"is_main\": true
}"

Remove url matching rule

DELETE
https://api.metapic.dev
/v2/advertisers/{advertiser_id}/url-matching-rules/{urlMatchingRule_id}
requires authentication

Removes existing url matching rule for the advertiser.

Headers

Authorization
Example:
{accessToken}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

advertiser_id
integer
required

The ID of the advertiser.

Example:
13
urlMatchingRule_id
integer
required

The ID of the urlMatchingRule.

Example:
19
Example request:
curl --request DELETE \
    "https://api.metapic.dev/v2/advertisers/13/url-matching-rules/19" \
    --header "Authorization: {accessToken}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"

Self-Service


Create new self-service store

POST
https://api.metapic.dev
/v2/stores
requires authentication

Headers

Authorization
Example:
{accessToken}
Content-Type
Example:
application/json
Accept
Example:
application/json

Body Parameters

Example request:
curl --request POST \
    "https://api.metapic.dev/v2/stores" \
    --header "Authorization: {accessToken}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"My Store\",
    \"domains\": [
        [
            \"dev.test-test.com\"
        ]
    ],
    \"categories\": [
        2
    ],
    \"logo_url\": \"https:\\/\\/olson.com\\/occaecati-tenetur-est-est-et-eum-et-eos.html\",
    \"country\": \" Example: SE\",
    \"currency\": \"Example: EUR\",
    \"language\": \"sv\",
    \"billing\": {
        \"company_name\": \"nemo\",
        \"street\": \"officia\",
        \"postal_code\": \"debitis\",
        \"city\": \"doloremque\",
        \"vat_number\": \"qui\"
    }
}"
Example response:
{
    "id": 2202,
    "name": "Aufderhar Group"
}

Deactivate advertiser

POST
https://api.metapic.dev
/v2/advertisers/{advertiser_id}/deactivate
requires authentication

Deactivates the advertiser.

Headers

Authorization
Example:
{accessToken}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

advertiser_id
integer
required

The ID of the advertiser.

Example:
4
Example request:
curl --request POST \
    "https://api.metapic.dev/v2/advertisers/4/deactivate" \
    --header "Authorization: {accessToken}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
App\Http\Resources\Store\StoreResource

Advertiser Groups

List advertiser groups

GET
https://api.metapic.dev
/v2/advertiser-groups
requires authentication

Endpoint for querying & sorting all advertiser groups.

Headers

Authorization
Example:
{accessToken}
Content-Type
Example:
application/json
Accept
Example:
application/json

Query Parameters

return_ad_enabled
boolean

Only return advertiser groups which have return ads enabled.

Example:
false
size
integer

Page size. Defaults to 20. Must not be greater than 100.

Example:
20
sort_by
string

Must follow the correct format: column_name:direction, where column_name must be a valid property for given resource and direction can be one of asc|desc, both of which are required if sort_by is present.

Example:
illum
Example request:
curl --request GET \
    --get "https://api.metapic.dev/v2/advertiser-groups?return_ad_enabled=&size=20&sort_by=illum" \
    --header "Authorization: {accessToken}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
{
    "data": [
        {
            "id": 4737,
            "name": "Towne Group",
            "key": "mr_IN",
            "currency": "GBP"
        },
        {
            "id": 4738,
            "name": "Shields and Sons",
            "key": "st_LS",
            "currency": "SEK"
        }
    ],
    "links": {
        "first": "/?page=1",
        "last": "/?page=1",
        "prev": null,
        "next": null
    },
    "meta": {
        "current_page": 1,
        "from": 1,
        "last_page": 1,
        "links": [
            {
                "url": null,
                "label": "« Previous",
                "page": null,
                "active": false
            },
            {
                "url": "/?page=1",
                "label": "1",
                "page": 1,
                "active": true
            },
            {
                "url": null,
                "label": "Next »",
                "page": null,
                "active": false
            }
        ],
        "path": "/",
        "per_page": 20,
        "to": 2,
        "total": 2
    }
}

Affiliate Link

GET
https://api.metapic.dev
/v2/affiliate-links/{id}
requires authentication

Headers

Authorization
Example:
{accessToken}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

id
string
required

The ID of the affiliate link.

Example:
iusto

Response Fields

Example request:
curl --request GET \
    --get "https://api.metapic.dev/v2/affiliate-links/iusto" \
    --header "Authorization: {accessToken}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
POST
https://api.metapic.dev
/v2/affiliate-links
requires authentication

Returns advertisers if there are multiple advertisers to match the url with. Otherwise, returns the affiliate link.

Headers

Authorization
Example:
{accessToken}
Content-Type
Example:
application/json
Accept
Example:
application/json

Body Parameters

Response Fields

Example request:
curl --request POST \
    "https://api.metapic.dev/v2/affiliate-links" \
    --header "Authorization: {accessToken}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"url\": \"https:\\/\\/advertiser.com\",
    \"advertiser_id\": 11,
    \"advertiser_preview\": true,
    \"advertiser_group_id\": 1,
    \"dry\": true
}"
Example response:
POST
https://api.metapic.dev
/v2/users/{user_id}/affiliate-links
requires authentication

Returns advertisers if there are multiple advertisers to match the url with. Otherwise, returns the affiliate link.

Headers

Authorization
Example:
{accessToken}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

user_id
integer
required

The ID of the user.

Example:
4

Body Parameters

Response Fields

Example request:
curl --request POST \
    "https://api.metapic.dev/v2/users/4/affiliate-links" \
    --header "Authorization: {accessToken}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"url\": \"https:\\/\\/advertiser.com\",
    \"advertiser_id\": 17,
    \"advertiser_preview\": true,
    \"advertiser_group_id\": 1,
    \"dry\": false
}"
Example response:

Agency

Accept invites for agency

PATCH
https://api.metapic.dev
/v2/me/agency-invites
requires authentication

Creates Metapic user and accepts all pending invites for agency

Headers

Authorization
Example:
Bearer {JWT}
Content-Type
Example:
application/json
Accept
Example:
application/json
Example request:
curl --request PATCH \
    "https://api.metapic.dev/v2/me/agency-invites" \
    --header "Authorization: Bearer {JWT}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
[Empty response]

Client

List clients

GET
https://api.metapic.dev
/v2/clients
requires authentication

Endpoint for querying & sorting all clients.

Headers

Authorization
Example:
{accessToken}
Content-Type
Example:
application/json
Accept
Example:
application/json

Query Parameters

query
string

Query by id or name. Returns all clients where id is equal to query OR name contains query OR any revenue tier name contains query. Must not be greater than 128 characters.

Example:
internal name
advertiser_group_ids
integer[]

Query by advertiser group. Returns all clients which belong to the given advertiser_group_ids.

Example:
[1]
size
integer

Page size. Defaults to 20. Must not be greater than 500.

Example:
20
sort_by
string

Must follow the correct format: column_name:direction, where column_name must be a valid property for given resource and direction can be one of asc|desc, both of which are required if sort_by is present.

Example:
ut
Example request:
curl --request GET \
    --get "https://api.metapic.dev/v2/clients?query=internal+name&advertiser_group_ids[]=1&size=20&sort_by=ut" \
    --header "Authorization: {accessToken}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
{
    "data": [
        {
            "id": 3989,
            "name": "Dr. Kelley Miller",
            "client_id": "NCfP7ccbrS",
            "has_own_payment_system": false,
            "revenue_share": 1
        },
        {
            "id": 3990,
            "name": "Prof. Jerel Cremin",
            "client_id": "QhDReBCTda",
            "has_own_payment_system": false,
            "revenue_share": 1
        }
    ],
    "links": {
        "first": "/?page=1",
        "last": "/?page=1",
        "prev": null,
        "next": null
    },
    "meta": {
        "current_page": 1,
        "from": 1,
        "last_page": 1,
        "links": [
            {
                "url": null,
                "label": "« Previous",
                "page": null,
                "active": false
            },
            {
                "url": "/?page=1",
                "label": "1",
                "page": 1,
                "active": true
            },
            {
                "url": null,
                "label": "Next »",
                "page": null,
                "active": false
            }
        ],
        "path": "/",
        "per_page": 20,
        "to": 2,
        "total": 2
    }
}

Creator Media

Operations on Media posted by Creators

Lists Creator generated media captured by Metapic.

GET
https://api.metapic.dev
/v2/user-media
requires authentication

Headers

Authorization
Example:
{accessToken}
Content-Type
Example:
application/json
Accept
Example:
application/json

Query Parameters

query
string

Filters media by username.

Example:
tempore
status
string

Filter user media by show store value.

Must be one of:
  • all
  • 0
  • 1
  • 2
Example:
all
type
string

Filters media by type.

Must be one of:
  • all
  • instagram
  • tiktok
  • youtube
Example:
youtube
favorite
string

Filter user media by favorite value.

Must be one of:
  • all
  • 1
  • 0
Example:
1
group
integer

:shrug:.

Example:
15
format
string

Format to export.

Must be one of:
  • csv
  • xlsx
  • json
Example:
csv

Response Fields

Example request:
curl --request GET \
    --get "https://api.metapic.dev/v2/user-media?query=tempore&status=all&type=youtube&favorite=1&group=15&format=csv" \
    --header "Authorization: {accessToken}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
{
    "current_page": 1,
    "data": [
        {
            "id": 1,
            "media_type": "youtube",
            "media_id": "FLR0BB4qDt8",
            "username": "hamida_most",
            "tag_id": null,
            "user_id": null,
            "favorite": 1,
            "show_store": 1,
            "published_at": "2023-05-13",
            "created_at": "2023-07-18T12:02:53.000000Z",
            "updated_at": "2023-07-18T12:09:13.000000Z"
        },
        {
            "id": 2,
            "media_type": "tiktok",
            "username": "juliaringblomm",
            "tag_id": null,
            "user_id": null,
            "favorite": 1,
            "show_store": 0,
            "published_at": "2023-06-17",
            "created_at": "2023-07-18T12:10:49.000000Z",
            "updated_at": "2023-07-18T13:39:28.000000Z",
            "media": {
                "content_type": "video/mp4",
                "href": "https://metapic-tiktok-media.example/juliaringblomm/7245692137566653722"
            }
        },
        {
            "id": 3,
            "media_type": "instagram",
            "username": "juliaringblomm",
            "tag_id": null,
            "user_id": null,
            "favorite": 1,
            "show_store": 0,
            "published_at": "2023-06-17",
            "created_at": "2023-07-18T12:10:49.000000Z",
            "updated_at": "2023-07-18T13:39:28.000000Z",
            "media": {
                "content_type": "video/mp4",
                "href": "https://metapic-instragram-media.example/juliaringblomm/7245692137566653722"
            }
        },
        {
            "id": 4,
            "media_type": "instagram",
            "username": "juliaringblomm",
            "tag_id": null,
            "user_id": null,
            "favorite": 1,
            "show_store": 0,
            "published_at": "2023-06-17",
            "created_at": "2023-07-18T12:10:49.000000Z",
            "updated_at": "2023-07-18T13:39:28.000000Z",
            "media": {
                "content_type": "image/jpeg",
                "href": "https://metapic-instragram-media.example/juliaringblomm/7245692137566653722"
            }
        }
    ],
    "first_page_url": "http://metapic-api.my/user-media?page=1",
    "from": 1,
    "last_page": 3,
    "last_page_url": "http://metapic-api.my/user-media?page=3",
    "links": [
        {
            "url": null,
            "label": "« Previous",
            "active": false
        },
        {
            "url": "http://metapic-api.my/user-media?page=1",
            "label": "1",
            "active": true
        },
        {
            "url": "http://metapic-api.my/user-media?page=2",
            "label": "2",
            "active": false
        },
        {
            "url": "http://metapic-api.my/user-media?page=3",
            "label": "3",
            "active": false
        },
        {
            "url": "http://metapic-api.my/user-media?page=2",
            "label": "Next »",
            "active": false
        }
    ],
    "next_page_url": "http://metapic-api.my/user-media?page=2",
    "path": "http://metapic-api.my/user-media",
    "per_page": 5,
    "prev_page_url": null,
    "to": 5,
    "total": 12
}

Endpoints

GET v2/health

GET
https://api.metapic.dev
/v2/health
requires authentication

Headers

Authorization
Example:
{accessToken}
Content-Type
Example:
application/json
Accept
Example:
application/json
Example request:
curl --request GET \
    --get "https://api.metapic.dev/v2/health" \
    --header "Authorization: {accessToken}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
Headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 300
x-ratelimit-remaining: 300
access-control-allow-origin: *
{
    "status": "up"
}

Get Store Categories

GET
https://api.metapic.dev
/v2/store-categories
requires authentication

Headers

Authorization
Example:
{accessToken}
Content-Type
Example:
application/json
Accept
Example:
application/json
Example request:
curl --request GET \
    --get "https://api.metapic.dev/v2/store-categories" \
    --header "Authorization: {accessToken}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
[
    {
        "id": 53,
        "name": "Food"
    },
    {
        "id": 54,
        "name": "Books"
    }
]

Get all invoices for a payment period as a zip.

GET
POST
https://api.metapic.dev
/v2/payments/getPaymentInvoices
requires authentication

Headers

Authorization
Example:
{accessToken}
Content-Type
Example:
application/json
Accept
Example:
application/json

Body Parameters

Example request:
curl --request GET \
    --get "https://api.metapic.dev/v2/payments/getPaymentInvoices" \
    --header "Authorization: {accessToken}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"payment_period\": \"2026-02\"
}"
Example response:
Headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 300
x-ratelimit-remaining: 300
access-control-allow-origin: *
{
    "message": "Unauthenticated."
}

List advertisers grouped by categories

GET
https://api.metapic.dev
/v2/users/{user_id}/stores-by-categories
requires authentication

Headers

Authorization
Example:
{accessToken}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

user_id
integer
required

The ID of the user.

Example:
18
Example request:
curl --request GET \
    --get "https://api.metapic.dev/v2/users/18/stores-by-categories" \
    --header "Authorization: {accessToken}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
Headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 300
x-ratelimit-remaining: 300
access-control-allow-origin: *
{
    "message": "Unauthenticated."
}

List advertiser by toplist

GET
https://api.metapic.dev
/v2/users/{user_id}/stores-by-toplist
requires authentication

Headers

Authorization
Example:
{accessToken}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

user_id
integer
required

The ID of the user.

Example:
14
Example request:
curl --request GET \
    --get "https://api.metapic.dev/v2/users/14/stores-by-toplist" \
    --header "Authorization: {accessToken}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
Headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 300
x-ratelimit-remaining: 300
access-control-allow-origin: *
{
    "message": "Unauthenticated."
}

Get Payments parts by user, grouped by months and stores

POST
https://api.metapic.dev
/v2/payments/upload-ax-id-matching
requires authentication

Headers

Authorization
Example:
{accessToken}
Content-Type
Example:
application/json
Accept
Example:
application/json

Body Parameters

Example request:
curl --request POST \
    "https://api.metapic.dev/v2/payments/upload-ax-id-matching" \
    --header "Authorization: {accessToken}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"file\": \"yhlosj\"
}"

Mark Payments as paid

POST
https://api.metapic.dev
/v2/payments/mark-invoices-as-paid
requires authentication

Headers

Authorization
Example:
{accessToken}
Content-Type
Example:
application/json
Accept
Example:
application/json

Body Parameters

Example request:
curl --request POST \
    "https://api.metapic.dev/v2/payments/mark-invoices-as-paid" \
    --header "Authorization: {accessToken}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"file\": \"xk\"
}"

Creator Invoice Generation

POST
https://api.metapic.dev
/v2/payments/generate-creator-invoice/{paymentId}
requires authentication

Endpoint for generating a creator invoice from external component

Headers

Authorization
Example:
{accessToken}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

paymentId
string
required
Example:
et
Example request:
curl --request POST \
    "https://api.metapic.dev/v2/payments/generate-creator-invoice/et" \
    --header "Authorization: {accessToken}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"

List PaymentSystemConfig

GET
https://api.metapic.dev
/v2/payments/systems-config
requires authentication

Endpoint for querying the current payment systems configuration

Headers

Authorization
Example:
{accessToken}
Content-Type
Example:
application/json
Accept
Example:
application/json

Query Parameters

date
string

The payment date. Example: 2021-01-11. Must be a valid date.

Example:
2021-01-11
client_id
integer

Filter by client ID. The id of an existing record in the clients table.

Example:
2
user_id
integer

Filter by user ID. The id of an existing record in the users table.

Example:
15
Example request:
curl --request GET \
    --get "https://api.metapic.dev/v2/payments/systems-config?date=2021-01-11&client_id=2&user_id=15" \
    --header "Authorization: {accessToken}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
Headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 300
x-ratelimit-remaining: 300
access-control-allow-origin: *
{
    "message": "Unauthenticated."
}

Update PaymentSystemConfig

POST
https://api.metapic.dev
/v2/payments/systems-config
requires authentication

Endpoint for updating the current payment systems configuration

Headers

Authorization
Example:
{accessToken}
Content-Type
Example:
application/json
Accept
Example:
application/json

Body Parameters

Example request:
curl --request POST \
    "https://api.metapic.dev/v2/payments/systems-config" \
    --header "Authorization: {accessToken}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"date\": \"2026-02-03T16:38:57\",
    \"client_id\": 5,
    \"user_id\": 5,
    \"system\": \"2\",
    \"ignore_lock\": false
}"

Entrypoint

App's entrypoint

GET
https://api.metapic.dev
/v2/entrypoint
requires authentication

Headers

Authorization
Example:
{accessToken}
Content-Type
Example:
application/json
Accept
Example:
application/json

Body Parameters

Response Fields

Example request:
curl --request GET \
    --get "https://api.metapic.dev/v2/entrypoint" \
    --header "Authorization: {accessToken}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"app\": \"agency\",
    \"store_id\": 16
}"
Example response:
Headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 300
x-ratelimit-remaining: 300
access-control-allow-origin: *
{
    "message": "Unauthenticated."
}

Notification

Proxy any request to notification service

GET
POST
PUT
PATCH
DELETE
OPTIONS
https://api.metapic.dev
/v2/notifications-proxy/{path?}
requires authentication

Headers

Authorization
Example:
{accessToken}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

path
string
Example:
Xn_
Example request:
curl --request GET \
    --get "https://api.metapic.dev/v2/notifications-proxy/Xn_" \
    --header "Authorization: {accessToken}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
Headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 300
x-ratelimit-remaining: 300
access-control-allow-origin: *
{
    "message": "Unauthenticated."
}

Offer

Create campaign

POST
https://api.metapic.dev
/v2/stores/{store_id}/offers
requires authentication

Creates new campaign for a store.

Headers

Authorization
Example:
{accessToken}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

store_id
integer
required

The store ID.

Example:
15

Body Parameters

Response Fields

Example request:
curl --request POST \
    "https://api.metapic.dev/v2/stores/15/offers" \
    --header "Authorization: {accessToken}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"store_group_id\": 4,
    \"type\": \"user_accept\",
    \"name\": \"Summer campaign for VIP creators\",
    \"campaign_title\": \"Summer campaign\",
    \"campaign_text\": \"This is a summer campaign!\",
    \"has_product_seeding\": false,
    \"has_onetime_payment\": false,
    \"per_user_limit\": true,
    \"one_time_payment\": 117844.24,
    \"budget_limit\": 2,
    \"max_clicks\": 16,
    \"valid_from\": \"2026-02-03T16:38:53\",
    \"valid_until\": \"2035-12-24\",
    \"todo\": [
        \"gqllgtllvczrzxlzaskryutou\"
    ],
    \"show_for_advertiser\": false,
    \"priority_after\": 9,
    \"shared_budget_id\": 1,
    \"shared_budget\": {
        \"title\": \"Summer budget\",
        \"amount\": 10000
    },
    \"targets\": {
        \"user_ids\": [
            18
        ],
        \"user_tag_ids\": [
            8
        ],
        \"store_group_ids\": [
            4
        ],
        \"emails\": [
            \"[email protected]\"
        ],
        \"social_media_identifiers\": [
            \"woocfxzdbgecumlpvh\"
        ],
        \"client_ids\": [
            17
        ],
        \"revenue_tier_ids\": [
            11
        ]
    },
    \"traffic_sources_costs\": [
        {
            \"source\": 1,
            \"cpc\": 230,
            \"cpa\": 0.2,
            \"invoice_cpc\": 250,
            \"invoice_cpa\": 0.25,
            \"user_revenue\": 0
        }
    ]
}"
Example response:
{
    "data": {
        "id": 768,
        "campaign_title": "Edgar Cummerata",
        "campaign_text": "Et deserunt corrupti earum architecto labore soluta. Rerum necessitatibus dignissimos et exercitationem a ipsa sint. Sunt amet nobis quia aut eum aut quidem. Quos debitis ut reiciendis omnis.",
        "has_product_seeding": false,
        "has_onetime_payment": false,
        "status": "active",
        "image_url": "https://media.metapic.com/insecure/rs:fill:800:500/g:sm/dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDBjYzIyP3RleHQ9cXVhZXJhdA==",
        "image": {
            "key": "dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDBjYzIyP3RleHQ9cXVhZXJhdA==",
            "url": "https://media.metapic.com/insecure/rs:fill:800:500/g:sm/dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDBjYzIyP3RleHQ9cXVhZXJhdA==",
            "base_url": "https://media.metapic.com",
            "base64": "dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDBjYzIyP3RleHQ9cXVhZXJhdA=="
        },
        "store_id": 2164,
        "store_name": "Huel-Lemke",
        "store_logo_url": null,
        "store_logo": null,
        "currency": "SEK",
        "token": "lmqphxm1lg18zp4g",
        "type": "standard",
        "warnings": {
            "skipped_targets": {
                "user_ids": [
                    12,
                    15
                ]
            }
        }
    },
    "warnings": {
        "skipped_targets": {
            "user_ids": [
                12,
                15
            ]
        }
    }
}

Display campaign

GET
https://api.metapic.dev
/v2/offers/{offer_id}
requires authentication

Returns information about a specific campaign.

Headers

Authorization
Example:
{accessToken}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

offer_id
integer
required

The offer ID

Example:
15556

Response Fields

Example request:
curl --request GET \
    --get "https://api.metapic.dev/v2/offers/15556" \
    --header "Authorization: {accessToken}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
{
    "id": 769,
    "campaign_title": "Onie Thompson",
    "campaign_text": "Atque id est reiciendis dicta praesentium. Harum quod error atque delectus qui cupiditate. Autem nam sed explicabo recusandae aut illo ipsa. Earum aut nostrum dolorum incidunt ea et dolor.",
    "has_product_seeding": false,
    "has_onetime_payment": false,
    "status": "active",
    "image_url": "https://media.metapic.com/insecure/rs:fill:800:500/g:sm/dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDAzMzY2P3RleHQ9cmVpY2llbmRpcw==",
    "image": {
        "key": "dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDAzMzY2P3RleHQ9cmVpY2llbmRpcw==",
        "url": "https://media.metapic.com/insecure/rs:fill:800:500/g:sm/dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDAzMzY2P3RleHQ9cmVpY2llbmRpcw==",
        "base_url": "https://media.metapic.com",
        "base64": "dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDAzMzY2P3RleHQ9cmVpY2llbmRpcw=="
    },
    "store_id": 2165,
    "store_name": "Hodkiewicz, Schaefer and Windler",
    "store_logo_url": null,
    "store_logo": null,
    "currency": "USD",
    "token": "rpsumildrd21ehfs",
    "traffic_sources_costs": [
        {
            "id": 222,
            "source": 1,
            "cpc": null,
            "cpa": null,
            "currency": "USD"
        }
    ],
    "type": "standard"
}

Update campaign

PUT
PATCH
https://api.metapic.dev
/v2/offers/{id}
requires authentication

Updates existing campaign.

Headers

Authorization
Example:
{accessToken}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

id
integer
required

The ID of the offer.

Example:
6
offer_id
integer
required

The offer ID

Example:
15556

Body Parameters

Response Fields

Example request:
curl --request PUT \
    "https://api.metapic.dev/v2/offers/6" \
    --header "Authorization: {accessToken}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"store_group_id\": 1,
    \"type\": \"store_accept\",
    \"name\": \"Summer campaign for VIP creators\",
    \"campaign_title\": \"Summer campaign\",
    \"campaign_text\": \"This is a summer campaign!\",
    \"has_product_seeding\": true,
    \"has_onetime_payment\": false,
    \"per_user_limit\": false,
    \"one_time_payment\": 3705.019063122,
    \"budget_limit\": 4,
    \"max_clicks\": 13,
    \"valid_from\": \"2026-02-03T16:38:53\",
    \"valid_until\": \"1993-08-30\",
    \"todo\": [
        \"oniagnwooopmzabjpikxp\"
    ],
    \"show_for_advertiser\": true,
    \"priority_after\": 16,
    \"traffic_sources_costs\": [
        {
            \"source\": 1,
            \"cpc\": 230,
            \"cpa\": 0.2,
            \"invoice_cpc\": 250,
            \"invoice_cpa\": 0.25,
            \"user_revenue\": 1
        }
    ],
    \"targets\": {
        \"0\": [],
        \"user_ids\": [
            17
        ],
        \"user_tag_ids\": [
            17
        ],
        \"store_group_ids\": [
            18
        ],
        \"emails\": [
            \"[email protected]\"
        ],
        \"social_media_identifiers\": [
            \"orliaecxlmnm\"
        ],
        \"client_ids\": [
            6
        ],
        \"revenue_tier_ids\": [
            4
        ]
    },
    \"shared_budget_id\": 1,
    \"shared_budget\": {
        \"title\": \"Summer budget\",
        \"amount\": 10000
    }
}"
Example response:
{
    "data": {
        "id": 770,
        "campaign_title": "Alex Breitenberg",
        "campaign_text": "Corporis dicta aut exercitationem sunt asperiores architecto quam. Vero nulla qui ipsum nam. Ipsum at nihil nesciunt. Nobis mollitia qui veniam beatae.",
        "has_product_seeding": false,
        "has_onetime_payment": false,
        "status": "active",
        "image_url": "https://media.metapic.com/insecure/rs:fill:800:500/g:sm/dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDAxMTAwP3RleHQ9ZW9z",
        "image": {
            "key": "dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDAxMTAwP3RleHQ9ZW9z",
            "url": "https://media.metapic.com/insecure/rs:fill:800:500/g:sm/dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDAxMTAwP3RleHQ9ZW9z",
            "base_url": "https://media.metapic.com",
            "base64": "dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDAxMTAwP3RleHQ9ZW9z"
        },
        "store_id": 2166,
        "store_name": "Wehner Ltd",
        "store_logo_url": null,
        "store_logo": null,
        "currency": "SEK",
        "token": "ru1gciqhdsdvtwpg",
        "type": "standard",
        "warnings": {
            "skipped_targets": {
                "user_ids": [
                    12,
                    15
                ]
            }
        }
    },
    "warnings": {
        "skipped_targets": {
            "user_ids": [
                12,
                15
            ]
        }
    }
}

Delete campaign

DELETE
https://api.metapic.dev
/v2/offers/{id}
requires authentication

Soft deletes a campaign.

Headers

Authorization
Example:
{accessToken}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

id
integer
required

The ID of the offer.

Example:
11
offer_id
integer
required

The offer ID

Example:
15556
Example request:
curl --request DELETE \
    "https://api.metapic.dev/v2/offers/11" \
    --header "Authorization: {accessToken}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"

List campaigns

GET
https://api.metapic.dev
/v2/offers
requires authentication

Endpoint for querying & sorting all campaigns.

Headers

Authorization
Example:
{accessToken}
Content-Type
Example:
application/json
Accept
Example:
application/json

Query Parameters

query
string

Query by either of the following: ID, internal name, title. Returns all offers with id equal to query OR name contains query OR campaign_title contains query. Must not be greater than 64 characters.

Example:
black friday
statuses
string[]
Must be one of:
  • deleted
  • ended
  • scheduled
  • paused
  • active
Example:
["scheduled"]
store_ids
integer[]

Query by offer's store. Returns all offers which belong to the given store_ids.

Example:
[1]
store_group_ids
integer[]

Query by offer's store group. Returns all offers which belong to the given store_group_ids.

Example:
[1]
created_by
integer
required

Query by offer's author ID. Returns all offers created by the user making the request

Example:
7
or_id
integer

Query by offer's ID. Performs an 'OR' search, compared to 'AND' search for other filters, so an offer with given ID is always included in the results, if matched.

Example:
1234
target_user_id
integer
Example:
8
size
integer

Page size. Defaults to 20. Must not be greater than 100.

Example:
20
sort_by
string

Must follow the correct format: column_name:direction, where column_name must be a valid property for given resource and direction can be one of asc|desc, both of which are required if sort_by is present.

Example:
voluptatem
custom_sort_by
string
Must be one of:
  • ends_soon
  • active_first
Example:
ends_soon
include
object
format
string
Must be one of:
  • csv
  • xlsx
Example:
xlsx
show_for_advertiser
boolean

Admin-only filter offers by visibility on the advertiser.

Example:
false
advertiser_id
string

Filter offers by advertiser. Required when filtering as non-admin.

Example:
123

Response Fields

Example request:
curl --request GET \
    --get "https://api.metapic.dev/v2/offers?query=black+friday&statuses[]=scheduled&store_ids[]=1&store_group_ids[]=1&created_by=7&or_id=1234&target_user_id=8&size=20&sort_by=voluptatem&custom_sort_by=ends_soon&format=xlsx&show_for_advertiser=&advertiser_id=123" \
    --header "Authorization: {accessToken}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
{
    "data": [
        {
            "id": 771,
            "campaign_title": "Josue Rutherford",
            "campaign_text": "Earum dolorem qui hic neque totam. Dolorem dolore voluptas at esse. Natus et aut non vel quod. Amet qui et id et iusto ea.",
            "has_product_seeding": false,
            "has_onetime_payment": false,
            "status": "active",
            "image_url": "https://media.metapic.com/insecure/rs:fill:800:500/g:sm/dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDBlZTk5P3RleHQ9bWluaW1h",
            "image": {
                "key": "dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDBlZTk5P3RleHQ9bWluaW1h",
                "url": "https://media.metapic.com/insecure/rs:fill:800:500/g:sm/dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDBlZTk5P3RleHQ9bWluaW1h",
                "base_url": "https://media.metapic.com",
                "base64": "dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDBlZTk5P3RleHQ9bWluaW1h"
            },
            "store_id": 2167,
            "store_name": "Rogahn, Brekke and Kilback",
            "store_logo_url": null,
            "store_logo": null,
            "currency": "PLN",
            "token": "w6fe4fnyo2yklx0g",
            "type": "standard"
        },
        {
            "id": 772,
            "campaign_title": "Beverly Denesik",
            "campaign_text": "Accusamus quas provident tenetur qui asperiores recusandae qui illo. Sapiente quis voluptatem suscipit quia. Voluptas est rerum non illum. Totam molestias ea qui id velit.",
            "has_product_seeding": false,
            "has_onetime_payment": false,
            "status": "active",
            "image_url": "https://media.metapic.com/insecure/rs:fill:800:500/g:sm/dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDBkZDc3P3RleHQ9dm9sdXB0YXM=",
            "image": {
                "key": "dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDBkZDc3P3RleHQ9dm9sdXB0YXM=",
                "url": "https://media.metapic.com/insecure/rs:fill:800:500/g:sm/dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDBkZDc3P3RleHQ9dm9sdXB0YXM=",
                "base_url": "https://media.metapic.com",
                "base64": "dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDBkZDc3P3RleHQ9dm9sdXB0YXM="
            },
            "store_id": 2168,
            "store_name": "Jacobson, Herman and Hand",
            "store_logo_url": null,
            "store_logo": null,
            "currency": "PLN",
            "token": "y3dcdwauz0vyh241",
            "type": "standard"
        }
    ],
    "links": {
        "first": "/?page=1",
        "last": "/?page=1",
        "prev": null,
        "next": null
    },
    "meta": {
        "current_page": 1,
        "from": 1,
        "last_page": 1,
        "links": [
            {
                "url": null,
                "label": "« Previous",
                "page": null,
                "active": false
            },
            {
                "url": "/?page=1",
                "label": "1",
                "page": 1,
                "active": true
            },
            {
                "url": null,
                "label": "Next »",
                "page": null,
                "active": false
            }
        ],
        "path": "/",
        "per_page": 20,
        "to": 2,
        "total": 2
    }
}

Upload campaign image

POST
https://api.metapic.dev
/v2/offers/{offer_id}/uploads
requires authentication

Uploads an image to a campaign.

Headers

Authorization
Example:
{accessToken}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

offer_id
integer
required

The offer ID

Example:
15556

Body Parameters

Response Fields

Example request:
curl --request POST \
    "https://api.metapic.dev/v2/offers/15556/uploads" \
    --header "Authorization: {accessToken}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"default\": \"laboriosam\"
}"
Example response:
{
    "id": 773,
    "campaign_title": "Marcellus Huel",
    "campaign_text": "Magnam tempore dolores beatae. Dolor ut sed itaque laboriosam eum ea et. Aut explicabo qui debitis dolores odio maiores quia.",
    "has_product_seeding": false,
    "has_onetime_payment": false,
    "status": "active",
    "image_url": "https://media.metapic.com/insecure/rs:fill:800:500/g:sm/dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDBjYzQ0P3RleHQ9cmVydW0=",
    "image": {
        "key": "dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDBjYzQ0P3RleHQ9cmVydW0=",
        "url": "https://media.metapic.com/insecure/rs:fill:800:500/g:sm/dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDBjYzQ0P3RleHQ9cmVydW0=",
        "base_url": "https://media.metapic.com",
        "base64": "dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDBjYzQ0P3RleHQ9cmVydW0="
    },
    "store_id": 2169,
    "store_name": "Jaskolski-Mante",
    "store_logo_url": null,
    "store_logo": null,
    "currency": "EUR",
    "token": "zzxshq2x4iq4ucl6",
    "type": "standard"
}

Pause campaign

POST
https://api.metapic.dev
/v2/offers/{offer_id}/pause
requires authentication

Headers

Authorization
Example:
{accessToken}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

offer_id
integer
required

The offer ID

Example:
15556

Response Fields

Example request:
curl --request POST \
    "https://api.metapic.dev/v2/offers/15556/pause" \
    --header "Authorization: {accessToken}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
{
    "id": 774,
    "campaign_title": "Mr. Ian Rowe",
    "campaign_text": "Ut quia voluptatem quo ullam quia officia dicta. Sunt eligendi quasi asperiores ea et qui. Eum id consequuntur aut fugiat.",
    "has_product_seeding": false,
    "has_onetime_payment": false,
    "status": "active",
    "image_url": "https://media.metapic.com/insecure/rs:fill:800:500/g:sm/dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDBiYjMzP3RleHQ9YW5pbWk=",
    "image": {
        "key": "dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDBiYjMzP3RleHQ9YW5pbWk=",
        "url": "https://media.metapic.com/insecure/rs:fill:800:500/g:sm/dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDBiYjMzP3RleHQ9YW5pbWk=",
        "base_url": "https://media.metapic.com",
        "base64": "dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDBiYjMzP3RleHQ9YW5pbWk="
    },
    "store_id": 2170,
    "store_name": "Toy Inc",
    "store_logo_url": null,
    "store_logo": null,
    "currency": "EUR",
    "token": "552c61t5o15awb3g",
    "type": "standard"
}

Unpause campaign

POST
https://api.metapic.dev
/v2/offers/{offer_id}/unpause
requires authentication

Headers

Authorization
Example:
{accessToken}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

offer_id
integer
required

The offer ID

Example:
15556

Response Fields

Example request:
curl --request POST \
    "https://api.metapic.dev/v2/offers/15556/unpause" \
    --header "Authorization: {accessToken}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
{
    "id": 775,
    "campaign_title": "Dr. Eldon Hoeger",
    "campaign_text": "Quia sint repudiandae aut qui maxime vero. Sequi velit nulla eos placeat odio hic. Qui aut aliquam sit officiis itaque ut nobis ratione.",
    "has_product_seeding": false,
    "has_onetime_payment": false,
    "status": "active",
    "image_url": "https://media.metapic.com/insecure/rs:fill:800:500/g:sm/dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDA3NzMzP3RleHQ9c2VxdWk=",
    "image": {
        "key": "dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDA3NzMzP3RleHQ9c2VxdWk=",
        "url": "https://media.metapic.com/insecure/rs:fill:800:500/g:sm/dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDA3NzMzP3RleHQ9c2VxdWk=",
        "base_url": "https://media.metapic.com",
        "base64": "dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDA3NzMzP3RleHQ9c2VxdWk="
    },
    "store_id": 2171,
    "store_name": "Walter LLC",
    "store_logo_url": null,
    "store_logo": null,
    "currency": "PLN",
    "token": "kv8rxpvol3aqq85l",
    "type": "standard"
}

Display campaign stats

GET
https://api.metapic.dev
/v2/offers/{offer_id}/stats
requires authentication

Returns statistics about a specific campaign.

Headers

Authorization
Example:
{accessToken}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

offer_id
integer
required

The offer ID

Example:
15556

Query Parameters

start_date
string
required

The start date for the stats period (YYYY-MM-DD)

Example:
2023-01-01
end_date
string
required

The end date for the stats period (YYYY-MM-DD)

Example:
2023-01-31

Body Parameters

Example request:
curl --request GET \
    --get "https://api.metapic.dev/v2/offers/15556/stats?start_date=2023-01-01&end_date=2023-01-31" \
    --header "Authorization: {accessToken}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"start_date\": \"2019-02-22\",
    \"end_date\": \"2083-10-17\"
}"
Example response:
Headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 300
x-ratelimit-remaining: 300
access-control-allow-origin: *
{
    "message": "Unauthenticated."
}

GET v2/users/{user_id}/offers

GET
https://api.metapic.dev
/v2/users/{user_id}/offers
requires authentication

Headers

Authorization
Example:
{accessToken}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

user_id
integer
required

The ID of the user.

Example:
3

Body Parameters

Example request:
curl --request GET \
    --get "https://api.metapic.dev/v2/users/3/offers" \
    --header "Authorization: {accessToken}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"status\": \"second_prio\",
    \"name\": \"hywoiralyrwvaplytc\"
}"
Example response:
Headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 300
x-ratelimit-remaining: 300
access-control-allow-origin: *
{
    "message": "Unauthenticated."
}

Display campaign

GET
https://api.metapic.dev
/v2/offer-by-token/{offer_token}
requires authentication

Returns information about a specific campaign.

Headers

Authorization
Example:
{accessToken}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

offer_token
string
required
Example:
officia
offer_id
integer
required

The offer ID

Example:
15556

Response Fields

Example request:
curl --request GET \
    --get "https://api.metapic.dev/v2/offer-by-token/officia" \
    --header "Authorization: {accessToken}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
{
    "id": 788,
    "campaign_title": "Mr. Irwin Sporer IV",
    "campaign_text": "Aut nulla rerum placeat. Recusandae aliquam vel consequuntur aperiam facere qui saepe. Eveniet iure quis corrupti occaecati. Aut quibusdam quis quam dolores enim qui.",
    "has_product_seeding": false,
    "has_onetime_payment": false,
    "status": "active",
    "image_url": "https://media.metapic.com/insecure/rs:fill:800:500/g:sm/dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDA5OTg4P3RleHQ9c2Vk",
    "image": {
        "key": "dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDA5OTg4P3RleHQ9c2Vk",
        "url": "https://media.metapic.com/insecure/rs:fill:800:500/g:sm/dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDA5OTg4P3RleHQ9c2Vk",
        "base_url": "https://media.metapic.com",
        "base64": "dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDA5OTg4P3RleHQ9c2Vk"
    },
    "store_id": 2208,
    "store_name": "Brekke and Sons",
    "store_logo_url": null,
    "store_logo": null,
    "currency": "EUR",
    "token": "egd0wgm8yqnovhe7",
    "traffic_sources_costs": [
        {
            "id": 223,
            "source": 2,
            "cpc": null,
            "cpa": null,
            "currency": "EUR"
        }
    ],
    "type": "standard"
}

Offer Target


Get targets for offer

GET
https://api.metapic.dev
/v2/offers/{offer_id}/targets
requires authentication

Headers

Authorization
Example:
{accessToken}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

offer_id
integer
required

The offer ID

Example:
15556

Response Fields

Example request:
curl --request GET \
    --get "https://api.metapic.dev/v2/offers/15556/targets" \
    --header "Authorization: {accessToken}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
Headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 300
x-ratelimit-remaining: 300
access-control-allow-origin: *
{
    "message": "Unauthenticated."
}

Add new targets to offer

POST
https://api.metapic.dev
/v2/offers/{offer_id}/targets
requires authentication

Headers

Authorization
Example:
{accessToken}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

offer_id
integer
required

The offer ID

Example:
15556

Body Parameters

Response Fields

Example request:
curl --request POST \
    "https://api.metapic.dev/v2/offers/15556/targets" \
    --header "Authorization: {accessToken}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"user_ids\": [
        11
    ],
    \"user_tag_ids\": [
        12
    ],
    \"store_group_ids\": [
        1
    ],
    \"emails\": [
        \"[email protected]\"
    ],
    \"social_media_identifiers\": [
        \"xvjxqryfxpiiqappxsjoeuimw\"
    ],
    \"client_ids\": [
        15
    ],
    \"revenue_tier_ids\": [
        15
    ]
}"

Offer Participant

Checks if user has been added to the offer.

GET
https://api.metapic.dev
/v2/offers/{offer_id}/users/{id}
requires authentication

Headers

Authorization
Example:
{accessToken}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

offer_id
integer
required

The ID of the offer.

Example:
10
id
integer
required

The ID of the user.

Example:
2
Example request:
curl --request GET \
    --get "https://api.metapic.dev/v2/offers/10/users/2" \
    --header "Authorization: {accessToken}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
Headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 300
x-ratelimit-remaining: 300
access-control-allow-origin: *
{
    "message": "Unauthenticated."
}

List participants in a campaign

GET
https://api.metapic.dev
/v2/offers/{offer_id}/participants
requires authentication

Headers

Authorization
Example:
{accessToken}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

offer_id
integer
required

The ID of the offer.

Example:
14

Body Parameters

Response Fields

Example request:
curl --request GET \
    --get "https://api.metapic.dev/v2/offers/14/participants" \
    --header "Authorization: {accessToken}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"query\": \"pljxguzaa\",
    \"status\": \"store_denied\",
    \"include\": [
        \"offer_comments_count\"
    ]
}"
Example response:
{
    "data": [
        {
            "id": null,
            "offer_id": 777,
            "user_id": null,
            "display_name": "abigale14",
            "clicks": 2497,
            "status": "applied",
            "pre_registered_identifier": "abigale14",
            "todo": null,
            "payment_amount": null
        },
        {
            "id": null,
            "offer_id": 779,
            "user_id": 3734,
            "display_name": null,
            "clicks": 629,
            "status": "second_prio",
            "todo": null,
            "payment_amount": null
        }
    ],
    "links": {
        "first": "/?page=1",
        "last": "/?page=1",
        "prev": null,
        "next": null
    },
    "meta": {
        "current_page": 1,
        "from": 1,
        "last_page": 1,
        "links": [
            {
                "url": null,
                "label": "« Previous",
                "page": null,
                "active": false
            },
            {
                "url": "/?page=1",
                "label": "1",
                "page": 1,
                "active": true
            },
            {
                "url": null,
                "label": "Next »",
                "page": null,
                "active": false
            }
        ],
        "path": "/",
        "per_page": 10,
        "to": 2,
        "total": 2
    }
}

Get participant details

GET
https://api.metapic.dev
/v2/offers/{offer_id}/participants/{id}
requires authentication

Headers

Authorization
Example:
{accessToken}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

offer_id
integer
required

The ID of the offer.

Example:
8
id
integer
required

The ID of the participant.

Example:
4

Response Fields

Example request:
curl --request GET \
    --get "https://api.metapic.dev/v2/offers/8/participants/4" \
    --header "Authorization: {accessToken}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
{
    "id": null,
    "offer_id": 780,
    "user_id": 3737,
    "display_name": "rschinner",
    "clicks": 3823997,
    "status": "accepted",
    "todo": null,
    "payment_amount": null,
    "social_media": [],
    "tags": [
        {
            "id": 2145,
            "name": "Theresa Nicolas IV",
            "slug": "fugit-sed-beatae",
            "access_level": 1,
            "store_id": 2177
        }
    ]
}

Retrieve participants statistics for an offer

GET
https://api.metapic.dev
/v2/offers/{offer_id}/participants-stats
requires authentication

Headers

Authorization
Example:
{accessToken}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

offer_id
integer
required

The ID of the offer.

Example:
18

Body Parameters

Response Fields

Example request:
curl --request GET \
    --get "https://api.metapic.dev/v2/offers/18/participants-stats" \
    --header "Authorization: {accessToken}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"query\": \"ka\",
    \"active\": true,
    \"start_date\": \"2010-05-28\",
    \"end_date\": \"2090-01-27\",
    \"sort_by\": \"estimated_earning_to_cost_ratio:asc\"
}"
Example response:
{
    "data": [
        {
            "id": null,
            "user_id": null,
            "display_name": "sanford.laury",
            "clicks": 0,
            "status": "open",
            "links_created": null,
            "estimated_gp": null,
            "estimated_earning_to_cost_ratio": null
        },
        {
            "id": null,
            "user_id": 3739,
            "display_name": null,
            "clicks": 0,
            "status": "applied",
            "links_created": null,
            "estimated_gp": null,
            "estimated_earning_to_cost_ratio": null
        }
    ],
    "links": {
        "first": "/?page=1",
        "last": "/?page=1",
        "prev": null,
        "next": null
    },
    "meta": {
        "current_page": 1,
        "from": 1,
        "last_page": 1,
        "links": [
            {
                "url": null,
                "label": "« Previous",
                "page": null,
                "active": false
            },
            {
                "url": "/?page=1",
                "label": "1",
                "page": 1,
                "active": true
            },
            {
                "url": null,
                "label": "Next »",
                "page": null,
                "active": false
            }
        ],
        "path": "/",
        "per_page": 10,
        "to": 2,
        "total": 2
    }
}

Retrieve participants count by active/inactive

GET
https://api.metapic.dev
/v2/offers/{offer_id}/participants-count-by-click-activity
requires authentication

Headers

Authorization
Example:
{accessToken}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

offer_id
integer
required

The ID of the offer.

Example:
1

Body Parameters

Example request:
curl --request GET \
    --get "https://api.metapic.dev/v2/offers/1/participants-count-by-click-activity" \
    --header "Authorization: {accessToken}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"start_date\": \"2006-08-04\",
    \"end_date\": \"2080-08-15\"
}"
Example response:
Headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 300
x-ratelimit-remaining: 300
access-control-allow-origin: *
{
    "message": "Unauthenticated."
}

Update participant status

PATCH
https://api.metapic.dev
/v2/offers/{offer_id}/participants/{participant_id}/update-status
requires authentication

Headers

Authorization
Example:
{accessToken}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

offer_id
integer
required

The ID of the offer.

Example:
18
participant_id
integer
required

The ID of the participant.

Example:
15

Body Parameters

Response Fields

Example request:
curl --request PATCH \
    "https://api.metapic.dev/v2/offers/18/participants/15/update-status" \
    --header "Authorization: {accessToken}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"status\": \"second_prio\"
}"
Example response:
{
    "id": null,
    "offer_id": 783,
    "user_id": null,
    "display_name": "[email protected]",
    "clicks": 48495,
    "status": "have_received",
    "pre_registered_email": "[email protected]",
    "todo": null,
    "payment_amount": null
}

Update participant todo

PATCH
https://api.metapic.dev
/v2/offers/{offer_id}/participants/{participant_id}/todo
requires authentication

Headers

Authorization
Example:
{accessToken}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

offer_id
integer
required

The ID of the offer.

Example:
11
participant_id
integer
required

The ID of the participant.

Example:
5

Body Parameters

Response Fields

Example request:
curl --request PATCH \
    "https://api.metapic.dev/v2/offers/11/participants/5/todo" \
    --header "Authorization: {accessToken}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"todo\": [
        {
            \"key\": \"wsgypmjmwto\",
            \"value\": false
        }
    ]
}"
Example response:
{
    "id": null,
    "offer_id": 784,
    "user_id": 3742,
    "display_name": null,
    "clicks": 90,
    "status": "open",
    "todo": null,
    "payment_amount": null
}

Update participant payment amount

PUT
https://api.metapic.dev
/v2/offers/{offer_id}/participants/{participant_id}/payment-amount
requires authentication

Headers

Authorization
Example:
{accessToken}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

offer_id
integer
required

The ID of the offer.

Example:
12
participant_id
integer
required

The ID of the participant.

Example:
2

Body Parameters

Response Fields

Example request:
curl --request PUT \
    "https://api.metapic.dev/v2/offers/12/participants/2/payment-amount" \
    --header "Authorization: {accessToken}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"payment_amount\": {
        \"amount\": \"1.2\",
        \"currency\": \"EUR\"
    }
}"
Example response:
{
    "id": null,
    "offer_id": 785,
    "user_id": 3744,
    "display_name": null,
    "clicks": 8566937,
    "status": "store_denied",
    "todo": null,
    "payment_amount": null
}

Set/override click limit

PATCH
https://api.metapic.dev
/v2/offers/{offer_id}/participants/{participant_id}/overrides/clicks
requires authentication

Headers

Authorization
Example:
{accessToken}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

offer_id
integer
required

The ID of the offer.

Example:
6
participant_id
integer
required

The ID of the participant.

Example:
5

Body Parameters

Response Fields

Example request:
curl --request PATCH \
    "https://api.metapic.dev/v2/offers/6/participants/5/overrides/clicks" \
    --header "Authorization: {accessToken}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"click_limit\": 8
}"
Example response:
{
    "id": null,
    "offer_id": 786,
    "user_id": null,
    "display_name": "hshields",
    "clicks": 26,
    "status": "have_posted",
    "pre_registered_identifier": "hshields",
    "todo": null,
    "payment_amount": null
}

Override campaign's costs

PATCH
https://api.metapic.dev
/v2/offers/{offer_id}/participants/{participant_id}/overrides/costs
requires authentication

Headers

Authorization
Example:
{accessToken}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

offer_id
integer
required

The ID of the offer.

Example:
7
participant_id
integer
required

The ID of the participant.

Example:
10

Body Parameters

Response Fields

Example request:
curl --request PATCH \
    "https://api.metapic.dev/v2/offers/7/participants/10/overrides/costs" \
    --header "Authorization: {accessToken}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"traffic_sources_costs\": [
        {
            \"source\": 1,
            \"cpc\": {
                \"amount\": \"1.2\",
                \"currency\": \"EUR\"
            },
            \"cpa\": 0.2
        }
    ]
}"
Example response:
{
    "id": null,
    "offer_id": 787,
    "user_id": null,
    "display_name": "freichert",
    "clicks": 9549,
    "status": "have_posted",
    "pre_registered_identifier": "freichert",
    "todo": null,
    "payment_amount": null
}

Checks if user has been added to the offer.

GET
https://api.metapic.dev
/v2/offer-by-token/{offer_token}/users/{user_id}
requires authentication

Headers

Authorization
Example:
{accessToken}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

offer_token
string
required
Example:
qui
user_id
integer
required

The ID of the user.

Example:
3
Example request:
curl --request GET \
    --get "https://api.metapic.dev/v2/offer-by-token/qui/users/3" \
    --header "Authorization: {accessToken}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
Headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
set-cookie: metapic_session=eyJpdiI6Iis1dllVcld1Q3FlenhYdXVudFMzUEE9PSIsInZhbHVlIjoia0VkMHNYNHJkeG1xMUs1YWMyU1g2WlFOcUErY2hJOVhOdEFZa3JScndad3FzOGprMlVRTnQ5cngvWmZyNjNPR3RhNnZwdG9vaFN1c1ozMUJpV0JwTDE5VFVKSlhmU0xmeXFZOEJSeG9LRjczRE1MRThMNkNXWUpCanZHVHJNOGsiLCJtYWMiOiJmYzliOGY2MWIwM2JlYjMyMzY2M2E2ZjVkZWI4ZDY0NDk5NmZlMmJjODg5YjVjODFiYjRiOGQ1ZTdjOTY3NmYyIiwidGFnIjoiIn0%3D; expires=Tue, 03 Feb 2026 17:38:58 GMT; Max-Age=7200; path=/; secure; httponly
{
    "message": "Unauthenticated."
}

Mark user as having joined the campaign

POST
https://api.metapic.dev
/v2/offer-by-token/{offer_token}/users/{user_id}/join
requires authentication

This can only be performed by the user themselves.

Headers

Authorization
Example:
{accessToken}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

offer_token
string
required
Example:
deserunt
user_id
integer
required

The ID of the user.

Example:
19
Example request:
curl --request POST \
    "https://api.metapic.dev/v2/offer-by-token/deserunt/users/19/join" \
    --header "Authorization: {accessToken}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"

Comment


Add OfferUser comment

POST
https://api.metapic.dev
/v2/offer-users/{offer_user_id}/comments
requires authentication

Headers

Authorization
Example:
{accessToken}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

offer_user_id
string
required

The ID of the offerUser.

Example:
1

Body Parameters

Example request:
curl --request POST \
    "https://api.metapic.dev/v2/offer-users/1/comments" \
    --header "Authorization: {accessToken}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"comment\": \"w\"
}"

Update OfferUser comment

PUT
PATCH
https://api.metapic.dev
/v2/offer-users/{offer_user_id}/comments/{id}
requires authentication

Headers

Authorization
Example:
{accessToken}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

offer_user_id
string
required

The ID of the offerUser.

Example:
1
id
integer
required

The ID of the comment.

Example:
20
offer_comment_id
string
required

The ID of the comment.

Example:
1

Body Parameters

Example request:
curl --request PUT \
    "https://api.metapic.dev/v2/offer-users/1/comments/20" \
    --header "Authorization: {accessToken}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"comment\": \"rqxafgricviqcgufgoalfzvtj\"
}"

Delete OfferUser comment

DELETE
https://api.metapic.dev
/v2/offer-users/{offer_user_id}/comments/{id}
requires authentication

Headers

Authorization
Example:
{accessToken}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

offer_user_id
string
required

The ID of the offerUser.

Example:
1
id
integer
required

The ID of the comment.

Example:
1
offerCommentId
string
required

The ID of the comment.

Example:
1
Example request:
curl --request DELETE \
    "https://api.metapic.dev/v2/offer-users/1/comments/1" \
    --header "Authorization: {accessToken}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"

Activity


Get the list of activities on OfferUser card

GET
https://api.metapic.dev
/v2/offer-users/{offer_user}/activities
requires authentication

Headers

Authorization
Example:
{accessToken}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

offer_user
string
required
Example:
accusantium

Body Parameters

Response Fields

Example request:
curl --request GET \
    --get "https://api.metapic.dev/v2/offer-users/accusantium/activities" \
    --header "Authorization: {accessToken}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"include\": [
        \"has_unread_notification\"
    ]
}"
Example response:
Headers
cache-control: no-cache, private
content-type: application/json
x-ratelimit-limit: 300
x-ratelimit-remaining: 300
access-control-allow-origin: *
{
    "message": "Unauthenticated."
}

Ory

Identity Created

POST
https://api.metapic.dev
/v2/webhooks/ory/identities/created

Creates a Hubspot deal for advertiser representative when triggered by an Ory registration.after webhook.

Headers

mtpc-api-key
Example:
{mtpc-api-key}
Content-Type
Example:
application/json
Accept
Example:
application/json

Body Parameters

Example request:
curl --request POST \
    "https://api.metapic.dev/v2/webhooks/ory/identities/created" \
    --header "mtpc-api-key: {mtpc-api-key}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"identity\": {
        \"id\": \"ory_identity_id_123\",
        \"traits\": {
            \"email\": \"[email protected]\"
        }
    },
    \"app_url\": \"https:\\/\\/advertiser.metapic.com\"
}"
Example response:
[Empty response]

Identity updated

POST
https://api.metapic.dev
/v2/webhooks/ory/identities/updated

Updates a user when triggered by an Ory settings.after webhook.

Headers

mtpc-api-key
Example:
{mtpc-api-key}
Content-Type
Example:
application/json
Accept
Example:
application/json

Body Parameters

Example request:
curl --request POST \
    "https://api.metapic.dev/v2/webhooks/ory/identities/updated" \
    --header "mtpc-api-key: {mtpc-api-key}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"identity\": {
        \"id\": \"ory_identity_id_123\",
        \"traits\": {
            \"email\": \"[email protected]\"
        }
    }
}"
Example response:
[Empty response]

Return Ads

List Return Ads

GET
https://api.metapic.dev
/v2/return-ads
requires authentication

Paginated list of Return Ads

Headers

Authorization
Example:
{accessToken}
Content-Type
Example:
application/json
Accept
Example:
application/json

Query Parameters

size
integer

Page size. Defaults to 20. Must not be greater than 100.

Example:
20
query
string

Query by either of the following: ID or name. Returns all return ads with id equal to query OR name contains query. Must not be greater than 64 characters.

Example:
internal name
advertiser_group_ids
integer[]

Query by return ad's advertiser group. Returns all return ads which belong to the given advertiser_group_ids.

Example:
[1]
advertiser_ids
integer[]

Query by return ad's advertiser. Returns all return ads which belong to the given advertiser_ids.

Example:
[1]
statuses
string[]
Must be one of:
  • deleted
  • ended
  • scheduled
  • paused
  • active
Example:
["ended"]
created_by
integer
Must be one of:
or_id
integer

Query by return ad's ID. Performs an 'OR' search, compared to 'AND' search for other filters, so an return ad with given ID is always included in the results, if matched.

Example:
1234
sort_by
string

Query sorted by (name, created_at, starts_at, ends_at, current_clicks, current_views, order_count, order_value, earnings or click_through_rate). Must follow the correct format: column_name:direction, where column_name must be a valid property for given resource and direction can be one of asc|desc, both of which are required if sort_by is present.

Must be one of:
  • name:asc
  • name:desc
  • created_at:asc
  • created_at:desc
  • starts_at:asc
  • starts_at:desc
  • ends_at:asc
  • ends_at:desc
  • current_clicks:asc
  • current_clicks:desc
  • current_views:asc
  • current_views:desc
  • order_count:asc
  • order_count:desc
  • order_value:asc
  • order_value:desc
  • earnings:asc
  • earnings:desc
  • click_through_rate:asc
  • click_through_rate:desc
  • conversion_rate:asc
  • conversion_rate:desc
Example:
current_clicks:asc

Response Fields

Example request:
curl --request GET \
    --get "https://api.metapic.dev/v2/return-ads?size=20&query=internal+name&advertiser_group_ids[]=1&advertiser_ids[]=1&statuses[]=ended&created_by=&or_id=1234&sort_by=current_clicks%3Aasc" \
    --header "Authorization: {accessToken}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
{
    "data": [
        {
            "id": 276,
            "name": "Gudrun Mertz",
            "advertiser_group_id": 4701,
            "affiliate_link": {
                "id": 849,
                "url": "http://cummerata.info/optio-sint-fugit-animi-aspernatur.html",
                "original_url": "http://www.hartmann.com/",
                "mtpc_url": "https://c.mtpc.se/849",
                "user_id": 3748,
                "country": "MO",
                "provider": "maroon",
                "advertiser": {
                    "id": 2189,
                    "name": "Nienow, Klein and Barton"
                }
            },
            "author_id": 3749,
            "display_for_all_advertisers": false,
            "status": "active",
            "styles": null,
            "image": {
                "key": "dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDBjYzg4P3RleHQ9cXVvcw==",
                "url": "https://media.metapic.com/insecure/rs:fit:2000:2000/g:sm/dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDBjYzg4P3RleHQ9cXVvcw==",
                "base_url": "https://media.metapic.com",
                "base64": "dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDBjYzg4P3RleHQ9cXVvcw=="
            },
            "starts_at": "2026-01-03 16:38:57",
            "ends_at": "2026-03-03 16:38:57",
            "stats": []
        },
        {
            "id": 277,
            "name": "Dr. Dillon Haag III",
            "advertiser_group_id": 4704,
            "affiliate_link": {
                "id": 850,
                "url": "http://kiehn.net/dolor-pariatur-est-quia-qui",
                "original_url": "http://rath.biz/maiores-explicabo-iure-nesciunt-corrupti",
                "mtpc_url": "https://c.mtpc.se/850",
                "user_id": 3750,
                "country": "WS",
                "provider": "silver",
                "advertiser": {
                    "id": 2190,
                    "name": "Maggio, Lind and Kuhlman"
                }
            },
            "author_id": 3751,
            "display_for_all_advertisers": false,
            "status": "active",
            "styles": null,
            "image": {
                "key": "dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDBkZDMzP3RleHQ9aXVyZQ==",
                "url": "https://media.metapic.com/insecure/rs:fit:2000:2000/g:sm/dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDBkZDMzP3RleHQ9aXVyZQ==",
                "base_url": "https://media.metapic.com",
                "base64": "dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDBkZDMzP3RleHQ9aXVyZQ=="
            },
            "starts_at": "2026-01-03 16:38:57",
            "ends_at": "2026-03-03 16:38:57",
            "stats": []
        }
    ],
    "links": {
        "first": "/?page=1",
        "last": "/?page=1",
        "prev": null,
        "next": null
    },
    "meta": {
        "current_page": 1,
        "from": 1,
        "last_page": 1,
        "links": [
            {
                "url": null,
                "label": "« Previous",
                "page": null,
                "active": false
            },
            {
                "url": "/?page=1",
                "label": "1",
                "page": 1,
                "active": true
            },
            {
                "url": null,
                "label": "Next »",
                "page": null,
                "active": false
            }
        ],
        "path": "/",
        "per_page": 20,
        "to": 2,
        "total": 2
    }
}

Create Return Ad

POST
https://api.metapic.dev
/v2/return-ads
requires authentication

Headers

Authorization
Example:
{accessToken}
Content-Type
Example:
application/json
Accept
Example:
application/json

Body Parameters

Response Fields

Example request:
curl --request POST \
    "https://api.metapic.dev/v2/return-ads" \
    --header "Authorization: {accessToken}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"ohfbov\",
    \"advertiser_group_id\": 15,
    \"advertiser_id\": 9,
    \"return_link\": \"https:\\/\\/advertiser.com\",
    \"display_for_all_advertisers\": false,
    \"advertiser_ids\": [
        10
    ],
    \"advertiser_category_ids\": [
        10
    ],
    \"styles\": {
        \"color\": \"#ffffff\"
    },
    \"image_key\": \"dG1wL2ltYWdlLmpwZw==\",
    \"starts_at\": \"2026-02-03T16:38:57\",
    \"ends_at\": \"2105-04-10\",
    \"click_limit\": 2,
    \"view_limit\": 4
}"
Example response:
{
    "id": 278,
    "name": "General King",
    "advertiser_group_id": 4707,
    "affiliate_link": {
        "id": 851,
        "url": "http://dicki.com/voluptatem-ipsum-nobis-eligendi-nihil-et-sed",
        "original_url": "http://fadel.com/eos-eaque-corporis-et-qui-incidunt-sed",
        "mtpc_url": "https://c.mtpc.se/851",
        "user_id": 3752,
        "country": "TG",
        "provider": "maroon",
        "advertiser": {
            "id": 2191,
            "name": "Bradtke-Hammes"
        }
    },
    "author_id": 3753,
    "display_for_all_advertisers": false,
    "status": "active",
    "styles": null,
    "image": {
        "key": "dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDA2NmVlP3RleHQ9ZXN0",
        "url": "https://media.metapic.com/insecure/rs:fit:2000:2000/g:sm/dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDA2NmVlP3RleHQ9ZXN0",
        "base_url": "https://media.metapic.com",
        "base64": "dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDA2NmVlP3RleHQ9ZXN0"
    },
    "starts_at": "2026-01-03 16:38:57",
    "ends_at": "2026-03-03 16:38:57",
    "stats": []
}

Get Return Ad

GET
https://api.metapic.dev
/v2/return-ads/{id}
requires authentication

Headers

Authorization
Example:
{accessToken}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

id
integer
required

The ID of the return ad.

Example:
10

Response Fields

Example request:
curl --request GET \
    --get "https://api.metapic.dev/v2/return-ads/10" \
    --header "Authorization: {accessToken}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
{
    "id": 279,
    "name": "Dr. Kristoffer Kutch V",
    "advertiser_group_id": 4710,
    "affiliate_link": {
        "id": 852,
        "url": "https://www.pollich.biz/pariatur-qui-vitae-omnis",
        "original_url": "https://hegmann.org/dolorem-doloribus-ipsam-veniam-animi-ab.html",
        "mtpc_url": "https://c.mtpc.se/852",
        "user_id": 3754,
        "country": "BQ",
        "provider": "black",
        "advertiser": {
            "id": 2192,
            "name": "Kozey-Volkman"
        }
    },
    "author_id": 3755,
    "display_for_all_advertisers": false,
    "status": "active",
    "styles": null,
    "image": {
        "key": "dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDAxMTExP3RleHQ9aW52ZW50b3Jl",
        "url": "https://media.metapic.com/insecure/rs:fit:2000:2000/g:sm/dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDAxMTExP3RleHQ9aW52ZW50b3Jl",
        "base_url": "https://media.metapic.com",
        "base64": "dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDAxMTExP3RleHQ9aW52ZW50b3Jl"
    },
    "starts_at": "2026-01-03 16:38:57",
    "ends_at": "2026-03-03 16:38:57",
    "stats": []
}

Update Return Ad

PUT
PATCH
https://api.metapic.dev
/v2/return-ads/{id}
requires authentication

Headers

Authorization
Example:
{accessToken}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

id
integer
required

The ID of the return ad.

Example:
12

Body Parameters

Response Fields

Example request:
curl --request PUT \
    "https://api.metapic.dev/v2/return-ads/12" \
    --header "Authorization: {accessToken}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"xpazrzrlognqhpg\",
    \"return_link\": \"https:\\/\\/advertiser.com\",
    \"display_for_all_advertisers\": false,
    \"advertiser_ids\": [
        15
    ],
    \"advertiser_category_ids\": [
        2
    ],
    \"styles\": {
        \"color\": \"#ffffff\"
    },
    \"image_key\": \"dG1wL2ltYWdlLmpwZw==\",
    \"starts_at\": \"2026-02-03T16:38:57\",
    \"ends_at\": \"2073-11-18\",
    \"click_limit\": 1,
    \"view_limit\": 4
}"
Example response:
{
    "id": 280,
    "name": "Brandyn Heathcote",
    "advertiser_group_id": 4713,
    "affiliate_link": {
        "id": 853,
        "url": "http://kohler.com/accusamus-est-et-officia-recusandae-ea-libero-et.html",
        "original_url": "https://www.fritsch.com/alias-necessitatibus-eum-est-sit-minima",
        "mtpc_url": "https://c.mtpc.se/853",
        "user_id": 3756,
        "country": "NA",
        "provider": "lime",
        "advertiser": {
            "id": 2193,
            "name": "Kertzmann, Greenholt and Treutel"
        }
    },
    "author_id": 3757,
    "display_for_all_advertisers": false,
    "status": "active",
    "styles": null,
    "image": {
        "key": "dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDA2NmVlP3RleHQ9cXVpZGVt",
        "url": "https://media.metapic.com/insecure/rs:fit:2000:2000/g:sm/dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDA2NmVlP3RleHQ9cXVpZGVt",
        "base_url": "https://media.metapic.com",
        "base64": "dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDA2NmVlP3RleHQ9cXVpZGVt"
    },
    "starts_at": "2026-01-03 16:38:57",
    "ends_at": "2026-03-03 16:38:57",
    "stats": []
}

Delete Return Ad

DELETE
https://api.metapic.dev
/v2/return-ads/{id}
requires authentication

Headers

Authorization
Example:
{accessToken}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

id
integer
required

The ID of the return ad.

Example:
13
Example request:
curl --request DELETE \
    "https://api.metapic.dev/v2/return-ads/13" \
    --header "Authorization: {accessToken}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"

Pause Return Ad

POST
https://api.metapic.dev
/v2/return-ads/{returnAd_id}/pause
requires authentication

Deactivates Return Ad

Headers

Authorization
Example:
{accessToken}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

returnAd_id
integer
required

The ID of the returnAd.

Example:
14

Response Fields

Example request:
curl --request POST \
    "https://api.metapic.dev/v2/return-ads/14/pause" \
    --header "Authorization: {accessToken}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
{
    "id": 281,
    "name": "Avery Klocko",
    "advertiser_group_id": 4716,
    "affiliate_link": {
        "id": 854,
        "url": "http://runolfsson.com/ut-et-alias-eum-est-dolorum",
        "original_url": "http://www.stark.net/",
        "mtpc_url": "https://c.mtpc.se/854",
        "user_id": 3758,
        "country": "IO",
        "provider": "lime",
        "advertiser": {
            "id": 2194,
            "name": "Fritsch Inc"
        }
    },
    "author_id": 3759,
    "display_for_all_advertisers": false,
    "status": "active",
    "styles": null,
    "image": {
        "key": "dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDBmZjc3P3RleHQ9bnVtcXVhbQ==",
        "url": "https://media.metapic.com/insecure/rs:fit:2000:2000/g:sm/dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDBmZjc3P3RleHQ9bnVtcXVhbQ==",
        "base_url": "https://media.metapic.com",
        "base64": "dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDBmZjc3P3RleHQ9bnVtcXVhbQ=="
    },
    "starts_at": "2026-01-03 16:38:57",
    "ends_at": "2026-03-03 16:38:57",
    "stats": []
}

Unpause Return Ad

POST
https://api.metapic.dev
/v2/return-ads/{returnAd_id}/unpause
requires authentication

Headers

Authorization
Example:
{accessToken}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

returnAd_id
integer
required

The ID of the returnAd.

Example:
12

Response Fields

Example request:
curl --request POST \
    "https://api.metapic.dev/v2/return-ads/12/unpause" \
    --header "Authorization: {accessToken}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
{
    "id": 282,
    "name": "Prof. Jaren Mann IV",
    "advertiser_group_id": 4719,
    "affiliate_link": {
        "id": 855,
        "url": "http://smith.org/et-vitae-incidunt-sapiente-et",
        "original_url": "http://weber.com/laborum-esse-eum-voluptas-adipisci.html",
        "mtpc_url": "https://c.mtpc.se/855",
        "user_id": 3760,
        "country": "HT",
        "provider": "white",
        "advertiser": {
            "id": 2195,
            "name": "Buckridge Group"
        }
    },
    "author_id": 3761,
    "display_for_all_advertisers": false,
    "status": "active",
    "styles": null,
    "image": {
        "key": "dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDBiYjY2P3RleHQ9aXBzYQ==",
        "url": "https://media.metapic.com/insecure/rs:fit:2000:2000/g:sm/dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDBiYjY2P3RleHQ9aXBzYQ==",
        "base_url": "https://media.metapic.com",
        "base64": "dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDBiYjY2P3RleHQ9aXBzYQ=="
    },
    "starts_at": "2026-01-03 16:38:57",
    "ends_at": "2026-03-03 16:38:57",
    "stats": []
}

Get Return Ads for Advertiser

GET
https://api.metapic.dev
/v2/advertisers/{store_id}/return-ads
requires authentication

List of Return Ads displayed for Advertiser by ID

Headers

Authorization
Example:
{accessToken}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

store_id
integer
required

The ID of the store.

Example:
17

Response Fields

Example request:
curl --request GET \
    --get "https://api.metapic.dev/v2/advertisers/17/return-ads" \
    --header "Authorization: {accessToken}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
[
    {
        "id": 283,
        "name": "Alfonso Nienow",
        "advertiser_group_id": 4722,
        "affiliate_link": {
            "id": 856,
            "url": "http://labadie.com/reprehenderit-voluptatum-explicabo-et-ea-esse-ratione.html",
            "original_url": "http://www.medhurst.com/distinctio-omnis-corporis-minima-incidunt-optio-sequi-placeat-laboriosam.html",
            "mtpc_url": "https://c.mtpc.se/856",
            "user_id": 3762,
            "country": "TD",
            "provider": "silver",
            "advertiser": {
                "id": 2196,
                "name": "Runolfsdottir Ltd"
            }
        },
        "author_id": 3763,
        "display_for_all_advertisers": false,
        "status": "active",
        "styles": null,
        "image": {
            "key": "dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDA5OWRkP3RleHQ9YXV0",
            "url": "https://media.metapic.com/insecure/rs:fit:2000:2000/g:sm/dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDA5OWRkP3RleHQ9YXV0",
            "base_url": "https://media.metapic.com",
            "base64": "dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDA5OWRkP3RleHQ9YXV0"
        },
        "starts_at": "2026-01-03 16:38:57",
        "ends_at": "2026-03-03 16:38:57",
        "stats": []
    },
    {
        "id": 284,
        "name": "Ms. Alda Marquardt PhD",
        "advertiser_group_id": 4725,
        "affiliate_link": {
            "id": 857,
            "url": "http://www.schamberger.com/",
            "original_url": "http://conn.org/",
            "mtpc_url": "https://c.mtpc.se/857",
            "user_id": 3764,
            "country": "BL",
            "provider": "silver",
            "advertiser": {
                "id": 2197,
                "name": "Hirthe Ltd"
            }
        },
        "author_id": 3765,
        "display_for_all_advertisers": false,
        "status": "active",
        "styles": null,
        "image": {
            "key": "dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDBlZWRkP3RleHQ9YXQ=",
            "url": "https://media.metapic.com/insecure/rs:fit:2000:2000/g:sm/dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDBlZWRkP3RleHQ9YXQ=",
            "base_url": "https://media.metapic.com",
            "base64": "dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDBlZWRkP3RleHQ9YXQ="
        },
        "starts_at": "2026-01-03 16:38:57",
        "ends_at": "2026-03-03 16:38:57",
        "stats": []
    }
]

Shared Budget

List Shared Budgets

GET
https://api.metapic.dev
/v2/stores/{store_id}/shared-budgets
requires authentication

List Shared Budgets for Store

Headers

Authorization
Example:
{accessToken}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

store_id
integer
required

The ID of the store.

Example:
17

Response Fields

Example request:
curl --request GET \
    --get "https://api.metapic.dev/v2/stores/17/shared-budgets" \
    --header "Authorization: {accessToken}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
[
    {
        "id": 44,
        "title": "Winona Schimmel",
        "amount": 3,
        "amount_v2": {
            "amount": "0.03",
            "currency": "PLN"
        },
        "consumed_budget": 0,
        "consumed_budget_v2": {
            "amount": "0",
            "currency": "PLN"
        },
        "currency": "PLN"
    },
    {
        "id": 45,
        "title": "Jaylon Murazik",
        "amount": 3,
        "amount_v2": {
            "amount": "0.03",
            "currency": "SEK"
        },
        "consumed_budget": 0,
        "consumed_budget_v2": {
            "amount": "0",
            "currency": "SEK"
        },
        "currency": "SEK"
    }
]

Display Budget

GET
https://api.metapic.dev
/v2/stores/{store_id}/shared-budgets/{id}
requires authentication

Returns information about a specific budget.

Headers

Authorization
Example:
{accessToken}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

store_id
integer
required

The ID of the store.

Example:
4
id
integer
required

The ID of the shared budget.

Example:
4

Response Fields

Example request:
curl --request GET \
    --get "https://api.metapic.dev/v2/stores/4/shared-budgets/4" \
    --header "Authorization: {accessToken}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
{
    "id": 46,
    "title": "Xavier DuBuque",
    "amount": 3,
    "amount_v2": {
        "amount": "0.03",
        "currency": "USD"
    },
    "consumed_budget": 0,
    "consumed_budget_v2": {
        "amount": "0",
        "currency": "USD"
    },
    "currency": "USD"
}

Update Shared Budget

PUT
PATCH
https://api.metapic.dev
/v2/stores/{store_id}/shared-budgets/{id}
requires authentication

Updates existing budget.

Headers

Authorization
Example:
{accessToken}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

store_id
integer
required

The ID of the store.

Example:
2
id
integer
required

The ID of the shared budget.

Example:
13

Body Parameters

Response Fields

Example request:
curl --request PUT \
    "https://api.metapic.dev/v2/stores/2/shared-budgets/13" \
    --header "Authorization: {accessToken}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"title\": \"Summer budget\",
    \"amount\": 10000
}"
Example response:
{
    "id": 47,
    "title": "Myles Nienow V",
    "amount": 3,
    "amount_v2": {
        "amount": "0.03",
        "currency": "EUR"
    },
    "consumed_budget": 0,
    "consumed_budget_v2": {
        "amount": "0",
        "currency": "EUR"
    },
    "currency": "EUR"
}

Delete Shared Budget

DELETE
https://api.metapic.dev
/v2/stores/{store_id}/shared-budgets/{id}
requires authentication

Headers

Authorization
Example:
{accessToken}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

store_id
integer
required

The ID of the store.

Example:
1
id
integer
required

The ID of the shared budget.

Example:
15
Example request:
curl --request DELETE \
    "https://api.metapic.dev/v2/stores/1/shared-budgets/15" \
    --header "Authorization: {accessToken}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"

Store

PUT v2/stores/{advertiser}/payment

PUT
POST
https://api.metapic.dev
/v2/stores/{advertiser}/payment
requires authentication

Headers

Authorization
Example:
{accessToken}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

advertiser
integer
required
Example:
7

Body Parameters

Example request:
curl --request PUT \
    "https://api.metapic.dev/v2/stores/7/payment" \
    --header "Authorization: {accessToken}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"payment_setup_id\": \"saepe\"
}"

Uploads

Upload image

POST
https://api.metapic.dev
/v2/image-uploads
requires authentication

Uploads an image to tmp folder.

Headers

Authorization
Example:
{accessToken}
Content-Type
Example:
application/json
Accept
Example:
application/json

Body Parameters

Response Fields

Example request:
curl --request POST \
    "https://api.metapic.dev/v2/image-uploads" \
    --header "Authorization: {accessToken}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"image\": \"impedit\"
}"

User

List users

GET
https://api.metapic.dev
/v2/users
requires authentication

Endpoint for querying & sorting all users.

Headers

Authorization
Example:
{accessToken}
Content-Type
Example:
application/json
Accept
Example:
application/json

Query Parameters

query
string

Query by either of the following: ID, username, email. Returns all users with id equal to query OR username contains query OR email contains query. Must not be greater than 64 characters.

Example:
testcreator123
client_id
integer

Query by user's client. Returns all users which belong to the given client_id.

Example:
2
store_group_id
integer

Query by user's store group. Returns all users which belong to the given store_group_id.

Example:
15
size
integer

Page size. Defaults to 20. Must not be greater than 100.

Example:
20
sort_by
string

Must follow the correct format: column_name:direction, where column_name must be a valid property for given resource and direction can be one of asc|desc, both of which are required if sort_by is present.

Example:
aut
Example request:
curl --request GET \
    --get "https://api.metapic.dev/v2/users?query=testcreator123&client_id=2&store_group_id=15&size=20&sort_by=aut" \
    --header "Authorization: {accessToken}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
{
    "data": [
        {
            "id": 3768,
            "username": "fdooley",
            "display_name": "Eladio Effertz",
            "email": "[email protected]",
            "client_id": 3991
        },
        {
            "id": 3769,
            "username": "zelda.mosciski",
            "display_name": "Arvilla Cassin",
            "email": "[email protected]",
            "client_id": 3992
        }
    ],
    "links": {
        "first": "/?page=1",
        "last": "/?page=1",
        "prev": null,
        "next": null
    },
    "meta": {
        "current_page": 1,
        "from": 1,
        "last_page": 1,
        "links": [
            {
                "url": null,
                "label": "« Previous",
                "page": null,
                "active": false
            },
            {
                "url": "/?page=1",
                "label": "1",
                "page": 1,
                "active": true
            },
            {
                "url": null,
                "label": "Next »",
                "page": null,
                "active": false
            }
        ],
        "path": "/",
        "per_page": 20,
        "to": 2,
        "total": 2
    }
}

Create Creator User

POST
https://api.metapic.dev
/v2/users
requires authentication

Requires an Ory-issued JWT for a session not yet linked to a Metapic user (no user_id).

Headers

Authorization
Example:
Bearer {JWT}
Content-Type
Example:
application/json
Accept
Example:
application/json

Body Parameters

Example request:
curl --request POST \
    "https://api.metapic.dev/v2/users" \
    --header "Authorization: Bearer {JWT}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"social_media\": [
        {
            \"type\": \"instagram\",
            \"identifier\": \"https:\\/\\/instagram.com\\/example\"
        },
        {
            \"type\": \"tiktok\",
            \"identifier\": \"https:\\/\\/tiktok.com\\/@example\"
        }
    ],
    \"utm\": {
        \"source\": \"instagram\",
        \"medium\": \"social\",
        \"campaign\": \"launch2025\",
        \"term\": \"influencer\",
        \"content\": \"story_ad\"
    },
    \"client_id\": \"client_12345\",
    \"preferred_locale\": \"en-GB\"
}"
Example response:
{
    "id": 3770,
    "username": "wwolf",
    "display_name": "Ashleigh Ferry",
    "email": "[email protected]",
    "client_id": 3993
}

Update User Identity

PUT
https://api.metapic.dev
/v2/users/{user_id}/identity
requires authentication

It updates user's email and phone and syncs it with Ory identity.

Headers

Authorization
Example:
Bearer {JWT}
Content-Type
Example:
application/json
Accept
Example:
application/json

URL Parameters

user_id
integer
required

The ID of the user.

Example:
2

Body Parameters

Example request:
curl --request PUT \
    "https://api.metapic.dev/v2/users/2/identity" \
    --header "Authorization: Bearer {JWT}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"email\": \"[email protected]\",
    \"phone\": \"+1234567890\"
}"

Match users by IDs and emails

POST
https://api.metapic.dev
/v2/match-users
requires authentication

Headers

Authorization
Example:
{accessToken}
Content-Type
Example:
application/json
Accept
Example:
application/json

Query Parameters

advertiser_group_id
integer

Query by user's advertiser group. Returns all users which belong to the given advertiser_group_id.

Example:
15
user_emails_or_ids
object
required

a mix array of user emails and ids. Must not have more than 1000 items.

Example:
[12345,"[email protected]"]

Response Fields

Example request:
curl --request POST \
    "https://api.metapic.dev/v2/match-users?advertiser_group_id=15&user_emails_or_ids[]=12345&user_emails_or_ids[]=email%40metapic.com" \
    --header "Authorization: {accessToken}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"

User Tag

List user tags

GET
https://api.metapic.dev
/v2/user-tags
requires authentication

Endpoint for querying & sorting all user tags.

Headers

Authorization
Example:
{accessToken}
Content-Type
Example:
application/json
Accept
Example:
application/json

Query Parameters

name
string

Query by user tag's name. Returns all user tags whose name contains the given name. Must not be greater than 255 characters.

Example:
favourites
store_id
integer

Query by user tag's store. Returns all user tags which belong to the given store_id.

Example:
15
access_levels
object

Query by user tag's access levels. Returns all user tags which have the given access_levels:

  • ACCESS_LEVEL_ADMIN = 0
  • ACCESS_LEVEL_ALL = 1
  • ACCESS_LEVEL_STORE = 2
.
Must be one of:
  • 0
  • 1
  • 2
Example:
[0,1]
size
integer

Page size. Defaults to 20. Must not be greater than 100.

Example:
20
sort_by
string

Must follow the correct format: column_name:direction, where column_name must be a valid property for given resource and direction can be one of asc|desc, both of which are required if sort_by is present.

Example:
eveniet
Example request:
curl --request GET \
    --get "https://api.metapic.dev/v2/user-tags?name=favourites&store_id=15&access_levels[]=0&access_levels[]=1&size=20&sort_by=eveniet" \
    --header "Authorization: {accessToken}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
{
    "data": [
        {
            "id": 2146,
            "name": "Kurt Toy DVM",
            "slug": "ducimus-nihil",
            "access_level": 1,
            "store_id": 2203
        },
        {
            "id": 2147,
            "name": "Josue Schoen III",
            "slug": "ducimus-aut",
            "access_level": 1,
            "store_id": 2204
        }
    ],
    "links": {
        "first": "/?page=1",
        "last": "/?page=1",
        "prev": null,
        "next": null
    },
    "meta": {
        "current_page": 1,
        "from": 1,
        "last_page": 1,
        "links": [
            {
                "url": null,
                "label": "« Previous",
                "page": null,
                "active": false
            },
            {
                "url": "/?page=1",
                "label": "1",
                "page": 1,
                "active": true
            },
            {
                "url": null,
                "label": "Next »",
                "page": null,
                "active": false
            }
        ],
        "path": "/",
        "per_page": 20,
        "to": 2,
        "total": 2
    }
}