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:
19

Query Parameters

query
string

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

Example:
yrcia
Example request:
curl --request GET \
    --get "https://api.metapic.dev/v2/advertisers/19/blocklist?query=yrcia" \
    --header "Authorization: {accessToken}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
{
    "data": [
        {
            "id": 73,
            "created_at": "2025-04-25 08:52:19",
            "created_by": {
                "id": 3194,
                "username": "dherman",
                "email": "[email protected]",
                "client_id": 3300
            },
            "user_tag": {
                "id": 136,
                "name": "Ms. Cali Hane IV",
                "slug": "cupiditate-dolores-molestias",
                "access_level": 1,
                "store_id": null
            }
        },
        {
            "id": 74,
            "created_at": "2025-04-25 08:52:19",
            "created_by": {
                "id": 3195,
                "username": "auer.robyn",
                "email": "[email protected]",
                "client_id": 3301
            },
            "user_tag": {
                "id": 137,
                "name": "Elza Towne MD",
                "slug": "architecto-quibusdam-non",
                "access_level": 1,
                "store_id": 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",
                "active": false
            },
            {
                "url": "/?page=1",
                "label": "1",
                "active": true
            },
            {
                "url": null,
                "label": "Next »",
                "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:
10

Body Parameters

Example request:
curl --request POST \
    "https://api.metapic.dev/v2/advertisers/10/blocklist" \
    --header "Authorization: {accessToken}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"user_ids\": [
        23
    ],
    \"user_tag_ids\": [
        10
    ]
}"

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:
11
target_id
integer
required

The ID of the target.

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

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:
created_at:desc
Example request:
curl --request GET \
    --get "https://api.metapic.dev/v2/advertiser-groups?return_ad_enabled=&size=20&sort_by=created_at%3Adesc" \
    --header "Authorization: {accessToken}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
{
    "data": [
        {
            "id": 3956,
            "name": "Paucek-Swaniawski",
            "key": "ku_SY",
            "currency": "SEK"
        },
        {
            "id": 3957,
            "name": "Fritsch-Feeney",
            "key": "xh_ZA",
            "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",
                "active": false
            },
            {
                "url": "/?page=1",
                "label": "1",
                "active": true
            },
            {
                "url": null,
                "label": "Next »",
                "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:
officiis

Response Fields

Example request:
curl --request GET \
    --get "https://api.metapic.dev/v2/affiliate-links/officiis" \
    --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\": 14,
    \"advertiser_preview\": true,
    \"advertiser_group_id\": 1,
    \"dry\": true
}"
Example 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:
created_at:desc
Example request:
curl --request GET \
    --get "https://api.metapic.dev/v2/clients?query=internal+name&advertiser_group_ids[]=1&size=20&sort_by=created_at%3Adesc" \
    --header "Authorization: {accessToken}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
{
    "data": [
        {
            "id": 3302,
            "name": "Henderson Walker IV",
            "client_id": "UeFKqgPwWo",
            "has_own_payment_system": false,
            "revenue_share": 1
        },
        {
            "id": 3303,
            "name": "Lilla Ankunding",
            "client_id": "403XDc87jP",
            "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",
                "active": false
            },
            {
                "url": "/?page=1",
                "label": "1",
                "active": true
            },
            {
                "url": null,
                "label": "Next »",
                "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:
maxime
status
string

Filter user media by show store value.

Must be one of:
  • all
  • 0
  • 1
  • 2
Example:
2
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:
all
group
integer

:shrug:.

Example:
16
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=maxime&status=2&type=youtube&favorite=all&group=16&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 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": 54,
        "name": "Fashion"
    },
    {
        "id": 55,
        "name": "Beauty"
    }
]

Get all invoices for a payment period as a zip.

GET
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\": \"2025-04\"
}"
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:
14
Example request:
curl --request GET \
    --get "https://api.metapic.dev/v2/users/14/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:
12
Example request:
curl --request GET \
    --get "https://api.metapic.dev/v2/users/12/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\": \"ftqsunbfkjyd\"
}"

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\": \"yzrleibfmnknccgzlg\"
}"

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\": 10
}"
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\": 11,
    \"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\": 201514623.32905263,
    \"budget_limit\": 19,
    \"max_clicks\": 18,
    \"valid_from\": \"2025-04-25T10:52:18\",
    \"valid_until\": \"2020-02-11\",
    \"todo\": [
        \"ohdnxnvnxaor\"
    ],
    \"show_for_advertiser\": true,
    \"priority_after\": 5,
    \"shared_budget_id\": 1,
    \"shared_budget\": {
        \"title\": \"Summer budget\",
        \"amount\": 10000
    },
    \"targets\": {
        \"user_ids\": [
            8
        ],
        \"user_tag_ids\": [
            15
        ],
        \"store_group_ids\": [
            5
        ],
        \"emails\": [
            \"[email protected]\"
        ],
        \"social_media_identifiers\": [
            \"mod\"
        ],
        \"client_ids\": [
            8
        ],
        \"revenue_tier_ids\": [
            14
        ]
    },
    \"traffic_sources_costs\": [
        {
            \"source\": 1,
            \"cpc\": 230,
            \"cpa\": 0.2,
            \"invoice_cpc\": 250,
            \"invoice_cpa\": 0.25,
            \"user_revenue\": 0
        }
    ]
}"
Example response:
{
    "data": {
        "id": 642,
        "campaign_title": "Kirstin Dietrich III",
        "campaign_text": "Repellendus dolor fugit animi et. Explicabo nostrum tempore labore earum veritatis deleniti. Et eum rerum occaecati ut et et cumque.",
        "has_product_seeding": false,
        "has_onetime_payment": false,
        "status": "active",
        "image_url": "https://media.metapic.com/insecure/rs:fill:800:500/g:sm/dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDA2NjQ0P3RleHQ9cXVvcw==",
        "image": {
            "key": "dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDA2NjQ0P3RleHQ9cXVvcw==",
            "url": "https://media.metapic.com/insecure/rs:fill:800:500/g:sm/dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDA2NjQ0P3RleHQ9cXVvcw==",
            "base_url": "https://media.metapic.com",
            "base64": "dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDA2NjQ0P3RleHQ9cXVvcw=="
        },
        "store_id": 1857,
        "token": "strvsflmeconud9o",
        "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": 643,
    "campaign_title": "Prof. Fausto Krajcik",
    "campaign_text": "Dignissimos numquam quidem a rem. Aut ab omnis qui ut est perferendis voluptatibus. Nam expedita odit repudiandae consectetur totam unde.",
    "has_product_seeding": false,
    "has_onetime_payment": false,
    "status": "active",
    "image_url": "https://media.metapic.com/insecure/rs:fill:800:500/g:sm/dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDA0NGFhP3RleHQ9c2l0",
    "image": {
        "key": "dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDA0NGFhP3RleHQ9c2l0",
        "url": "https://media.metapic.com/insecure/rs:fill:800:500/g:sm/dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDA0NGFhP3RleHQ9c2l0",
        "base_url": "https://media.metapic.com",
        "base64": "dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDA0NGFhP3RleHQ9c2l0"
    },
    "store_id": 1858,
    "store_name": "Pacocha-Deckow",
    "store_logo_url": null,
    "store_logo": null,
    "currency": "PLN",
    "token": "0vphe12z7pfhg7wy",
    "traffic_sources_costs": [
        {
            "id": 207,
            "source": 2,
            "source_name": "TikTok",
            "cpc": null,
            "cpa": null,
            "currency": "PLN"
        }
    ],
    "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:
2
offer_id
integer
required

The offer ID

Example:
15556

Body Parameters

Response Fields

Example request:
curl --request PUT \
    "https://api.metapic.dev/v2/offers/2" \
    --header "Authorization: {accessToken}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"store_group_id\": 11,
    \"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\": 2.785102,
    \"budget_limit\": 16,
    \"max_clicks\": 1,
    \"valid_from\": \"2025-04-25T10:52:18\",
    \"valid_until\": \"2061-12-31\",
    \"todo\": [
        \"nwniyeyti\"
    ],
    \"show_for_advertiser\": true,
    \"priority_after\": 10,
    \"traffic_sources_costs\": [
        {
            \"source\": 1,
            \"cpc\": 230,
            \"cpa\": 0.2,
            \"invoice_cpc\": 250,
            \"invoice_cpa\": 0.25,
            \"user_revenue\": 0
        }
    ],
    \"targets\": {
        \"0\": [],
        \"user_ids\": [
            9
        ],
        \"user_tag_ids\": [
            16
        ],
        \"store_group_ids\": [
            2
        ],
        \"emails\": [
            \"[email protected]\"
        ],
        \"social_media_identifiers\": [
            \"iugnjycjigchzzfrgyrhpv\"
        ],
        \"client_ids\": [
            1
        ],
        \"revenue_tier_ids\": [
            5
        ]
    },
    \"shared_budget_id\": 1,
    \"shared_budget\": {
        \"title\": \"Summer budget\",
        \"amount\": 10000
    }
}"
Example response:
{
    "data": {
        "id": 644,
        "campaign_title": "Deion Breitenberg",
        "campaign_text": "Placeat autem in veniam est sed minima. Amet voluptate numquam praesentium magni. Quibusdam itaque quis est.",
        "has_product_seeding": false,
        "has_onetime_payment": false,
        "status": "active",
        "image_url": "https://media.metapic.com/insecure/rs:fill:800:500/g:sm/dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDBlZWZmP3RleHQ9ZG9sb3JpYnVz",
        "image": {
            "key": "dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDBlZWZmP3RleHQ9ZG9sb3JpYnVz",
            "url": "https://media.metapic.com/insecure/rs:fill:800:500/g:sm/dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDBlZWZmP3RleHQ9ZG9sb3JpYnVz",
            "base_url": "https://media.metapic.com",
            "base64": "dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDBlZWZmP3RleHQ9ZG9sb3JpYnVz"
        },
        "store_id": 1859,
        "token": "76rxdyoiqgrsl4nt",
        "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:
13
offer_id
integer
required

The offer ID

Example:
15556
Example request:
curl --request DELETE \
    "https://api.metapic.dev/v2/offers/13" \
    --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:
["active"]
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:
16
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:
11
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:
created_at:desc
custom_sort_by
string
Must be one of:
  • ends_soon
Example:
ends_soon
include
string[]

Include optional relationships in the response.

Must be one of:
  • trafficSourcesCosts
  • store
  • targets
  • sharedBudget
Example:
["sharedBudget"]
format
string
Must be one of:
  • csv
  • xlsx
Example:
xlsx

Response Fields

Example request:
curl --request GET \
    --get "https://api.metapic.dev/v2/offers?query=black+friday&statuses[]=active&store_ids[]=1&store_group_ids[]=1&created_by=16&or_id=1234&target_user_id=11&size=20&sort_by=created_at%3Adesc&custom_sort_by=ends_soon&include[]=sharedBudget&format=xlsx" \
    --header "Authorization: {accessToken}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
{
    "data": [
        {
            "id": 645,
            "campaign_title": "Pat Johns",
            "campaign_text": "Quod dolorem est molestias expedita. Dolor quo similique aut incidunt. Dolore non exercitationem laborum aspernatur animi.",
            "has_product_seeding": false,
            "has_onetime_payment": false,
            "status": "active",
            "image_url": "https://media.metapic.com/insecure/rs:fill:800:500/g:sm/dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDBhYTMzP3RleHQ9ZGVsZWN0dXM=",
            "image": {
                "key": "dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDBhYTMzP3RleHQ9ZGVsZWN0dXM=",
                "url": "https://media.metapic.com/insecure/rs:fill:800:500/g:sm/dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDBhYTMzP3RleHQ9ZGVsZWN0dXM=",
                "base_url": "https://media.metapic.com",
                "base64": "dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDBhYTMzP3RleHQ9ZGVsZWN0dXM="
            },
            "store_id": 1860,
            "token": "4wk2yrbhlzu1vuzg",
            "type": "standard"
        },
        {
            "id": 646,
            "campaign_title": "Asha Wuckert",
            "campaign_text": "Est non atque ipsum nihil earum amet inventore. Aliquam inventore veritatis quia maiores alias odio.",
            "has_product_seeding": false,
            "has_onetime_payment": false,
            "status": "active",
            "image_url": "https://media.metapic.com/insecure/rs:fill:800:500/g:sm/dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDBlZWJiP3RleHQ9dXQ=",
            "image": {
                "key": "dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDBlZWJiP3RleHQ9dXQ=",
                "url": "https://media.metapic.com/insecure/rs:fill:800:500/g:sm/dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDBlZWJiP3RleHQ9dXQ=",
                "base_url": "https://media.metapic.com",
                "base64": "dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDBlZWJiP3RleHQ9dXQ="
            },
            "store_id": 1861,
            "token": "qc3tx6os6gjnwaca",
            "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",
                "active": false
            },
            {
                "url": "/?page=1",
                "label": "1",
                "active": true
            },
            {
                "url": null,
                "label": "Next »",
                "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\": \"voluptas\"
}"
Example response:
{
    "id": 647,
    "campaign_title": "Mr. Anibal Wyman",
    "campaign_text": "Quibusdam ducimus ratione quibusdam. Nulla ut quaerat ex. Voluptate voluptas aut est unde quaerat. Odio possimus cupiditate quis et. Suscipit voluptates ab enim at officiis.",
    "has_product_seeding": false,
    "has_onetime_payment": false,
    "status": "active",
    "image_url": "https://media.metapic.com/insecure/rs:fill:800:500/g:sm/dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDBmZjY2P3RleHQ9YXJjaGl0ZWN0bw==",
    "image": {
        "key": "dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDBmZjY2P3RleHQ9YXJjaGl0ZWN0bw==",
        "url": "https://media.metapic.com/insecure/rs:fill:800:500/g:sm/dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDBmZjY2P3RleHQ9YXJjaGl0ZWN0bw==",
        "base_url": "https://media.metapic.com",
        "base64": "dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDBmZjY2P3RleHQ9YXJjaGl0ZWN0bw=="
    },
    "store_id": 1862,
    "token": "oc731jyjjk1v6ujy",
    "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": 648,
    "campaign_title": "Prof. Wyman Schneider",
    "campaign_text": "Minus reiciendis officiis est. Aut hic et sed et error. Minima inventore cumque reiciendis nisi nulla. Ut vero corrupti in nemo quibusdam consequatur.",
    "has_product_seeding": false,
    "has_onetime_payment": false,
    "status": "active",
    "image_url": "https://media.metapic.com/insecure/rs:fill:800:500/g:sm/dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDAxMWZmP3RleHQ9bW9sbGl0aWE=",
    "image": {
        "key": "dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDAxMWZmP3RleHQ9bW9sbGl0aWE=",
        "url": "https://media.metapic.com/insecure/rs:fill:800:500/g:sm/dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDAxMWZmP3RleHQ9bW9sbGl0aWE=",
        "base_url": "https://media.metapic.com",
        "base64": "dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDAxMWZmP3RleHQ9bW9sbGl0aWE="
    },
    "store_id": 1863,
    "token": "m25pykxtutf5rnlx",
    "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": 649,
    "campaign_title": "Judy Marquardt Sr.",
    "campaign_text": "Qui et voluptatem qui sed sit et molestiae praesentium. Debitis vel ut itaque ut. Occaecati placeat tempore dolorum quo.",
    "has_product_seeding": false,
    "has_onetime_payment": false,
    "status": "active",
    "image_url": "https://media.metapic.com/insecure/rs:fill:800:500/g:sm/dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDA3NzU1P3RleHQ9cXVp",
    "image": {
        "key": "dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDA3NzU1P3RleHQ9cXVp",
        "url": "https://media.metapic.com/insecure/rs:fill:800:500/g:sm/dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDA3NzU1P3RleHQ9cXVp",
        "base_url": "https://media.metapic.com",
        "base64": "dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDA3NzU1P3RleHQ9cXVp"
    },
    "store_id": 1864,
    "token": "xdh5skmi8w9t1tan",
    "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\": \"2004-03-19\",
    \"end_date\": \"2099-04-19\"
}"
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:
17

Body Parameters

Example request:
curl --request GET \
    --get "https://api.metapic.dev/v2/users/17/offers" \
    --header "Authorization: {accessToken}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"status\": \"product_sent\",
    \"name\": \"zgezogofysotkpubhvpc\"
}"
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:
eaque
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/eaque" \
    --header "Authorization: {accessToken}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
{
    "id": 661,
    "campaign_title": "Grayson Casper",
    "campaign_text": "Et veritatis saepe sed quia. Qui consequuntur eos quae. Suscipit delectus explicabo consequuntur sunt impedit quod consectetur. Voluptatem voluptatum officiis ea recusandae.",
    "has_product_seeding": false,
    "has_onetime_payment": false,
    "status": "active",
    "image_url": "https://media.metapic.com/insecure/rs:fill:800:500/g:sm/dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDBlZTc3P3RleHQ9dm9sdXB0YXRlbQ==",
    "image": {
        "key": "dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDBlZTc3P3RleHQ9dm9sdXB0YXRlbQ==",
        "url": "https://media.metapic.com/insecure/rs:fill:800:500/g:sm/dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDBlZTc3P3RleHQ9dm9sdXB0YXRlbQ==",
        "base_url": "https://media.metapic.com",
        "base64": "dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDBlZTc3P3RleHQ9dm9sdXB0YXRlbQ=="
    },
    "store_id": 1899,
    "store_name": "Hessel, Carroll and Hickle",
    "store_logo_url": null,
    "store_logo": null,
    "currency": "PLN",
    "token": "goaav4mkloa5kdd8",
    "traffic_sources_costs": [
        {
            "id": 208,
            "source": 1,
            "source_name": "Instagram",
            "cpc": null,
            "cpa": null,
            "currency": "PLN"
        }
    ],
    "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\": [
        3
    ],
    \"user_tag_ids\": [
        17
    ],
    \"store_group_ids\": [
        4
    ],
    \"emails\": [
        \"[email protected]\"
    ],
    \"social_media_identifiers\": [
        \"gfurier\"
    ],
    \"client_ids\": [
        3
    ],
    \"revenue_tier_ids\": [
        7
    ]
}"

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:
16
id
integer
required

The ID of the user.

Example:
3
Example request:
curl --request GET \
    --get "https://api.metapic.dev/v2/offers/16/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
                                                                                                                    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:
2

Body Parameters

Response Fields

Example request:
curl --request GET \
    --get "https://api.metapic.dev/v2/offers/2/participants" \
    --header "Authorization: {accessToken}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"query\": \"ffqikwiolhxhtfamjl\",
    \"status\": \"have_posted\"
}"
Example response:
{
    "data": [
        {
            "id": null,
            "offer_id": 651,
            "user_id": null,
            "display_name": "nvandervort",
            "clicks": 3658023,
            "status": "denied",
            "pre_registered_identifier": "nvandervort",
            "todo": null,
            "payment_amount": null
        },
        {
            "id": null,
            "offer_id": 653,
            "user_id": 3161,
            "display_name": null,
            "clicks": 7721,
            "status": "accepted",
            "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",
                "active": false
            },
            {
                "url": "/?page=1",
                "label": "1",
                "active": true
            },
            {
                "url": null,
                "label": "Next »",
                "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:
12
id
integer
required

The ID of the participant.

Example:
8

Response Fields

Example request:
curl --request GET \
    --get "https://api.metapic.dev/v2/offers/12/participants/8" \
    --header "Authorization: {accessToken}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
{
    "id": null,
    "offer_id": 654,
    "user_id": 3164,
    "display_name": "blaze29",
    "clicks": 256053,
    "status": "applied",
    "todo": null,
    "payment_amount": null,
    "social_media": [],
    "tags": [
        {
            "id": 135,
            "name": "Prof. Rhea Smith",
            "slug": "excepturi-culpa-quis",
            "access_level": 1,
            "store_id": 1870
        }
    ]
}

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:
15

Body Parameters

Response Fields

Example request:
curl --request GET \
    --get "https://api.metapic.dev/v2/offers/15/participants-stats" \
    --header "Authorization: {accessToken}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"query\": \"bgsctrwtbwgwighp\",
    \"active\": true,
    \"start_date\": \"2011-12-10\",
    \"end_date\": \"2102-10-30\",
    \"sort_by\": \"estimated_gp:asc\"
}"
Example response:
{
    "data": [
        {
            "id": null,
            "user_id": 3165,
            "display_name": null,
            "clicks": 0,
            "status": "denied",
            "links_created": null,
            "estimated_gp": null,
            "estimated_earning_to_cost_ratio": null
        },
        {
            "id": null,
            "user_id": 3167,
            "display_name": null,
            "clicks": 0,
            "status": "second_prio",
            "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",
                "active": false
            },
            {
                "url": "/?page=1",
                "label": "1",
                "active": true
            },
            {
                "url": null,
                "label": "Next »",
                "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:
2

Body Parameters

Example request:
curl --request GET \
    --get "https://api.metapic.dev/v2/offers/2/participants-count-by-click-activity" \
    --header "Authorization: {accessToken}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"start_date\": \"2016-11-08\",
    \"end_date\": \"2093-09-10\"
}"
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:
5
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/5/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": 657,
    "user_id": 3169,
    "display_name": null,
    "clicks": 9910962,
    "status": "product_sent",
    "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:
8
participant_id
integer
required

The ID of the participant.

Example:
12

Body Parameters

Response Fields

Example request:
curl --request PATCH \
    "https://api.metapic.dev/v2/offers/8/participants/12/todo" \
    --header "Authorization: {accessToken}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"todo\": [
        {
            \"key\": \"irvmojsvao\",
            \"value\": true
        }
    ]
}"
Example response:
{
    "id": null,
    "offer_id": 658,
    "user_id": null,
    "display_name": "[email protected]",
    "clicks": 50,
    "status": "second_prio",
    "pre_registered_email": "[email protected]",
    "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:
15
participant_id
integer
required

The ID of the participant.

Example:
4

Body Parameters

Response Fields

Example request:
curl --request PATCH \
    "https://api.metapic.dev/v2/offers/15/participants/4/overrides/clicks" \
    --header "Authorization: {accessToken}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"click_limit\": 5
}"
Example response:
{
    "id": null,
    "offer_id": 659,
    "user_id": 3172,
    "display_name": null,
    "clicks": 996272950,
    "status": "second_prio",
    "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:
10
participant_id
integer
required

The ID of the participant.

Example:
3

Body Parameters

Response Fields

Example request:
curl --request PATCH \
    "https://api.metapic.dev/v2/offers/10/participants/3/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": 660,
    "user_id": 3174,
    "display_name": null,
    "clicks": 3824281,
    "status": "have_received",
    "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:
maxime
user_id
integer
required

The ID of the user.

Example:
17
Example request:
curl --request GET \
    --get "https://api.metapic.dev/v2/offer-by-token/maxime/users/17" \
    --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=eyJpdiI6Ik9lK1o1YjJTejg5TC91R2poNEFReWc9PSIsInZhbHVlIjoiTEJXNFZKTmRCNVNYOGtOUWQ5N1VLcEE0K3ZXZkNRN3JaU2YwK1dISmxQNkZ4NFB1cG5TVW82OENtU0hUVTB2eE5TcndjZUlweTNnVlRuVlBDQkN0cE9iMWVrRklBdmNxS3hyZWxyL3dTUmVVVlJ5R2xkVGFJNWpuVG1sL0RFOGoiLCJtYWMiOiIyYjk3MjQ4M2RhNmYzODg2NWU5M2Q3Yzc5NzYzMjFlZWQ2OGI4YTE4ZDk2YjE5MjAyMmQ2YzFhODhhYTczMzExIiwidGFnIjoiIn0%3D; expires=Fri, 25 Apr 2025 10:52:19 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:
dignissimos
user_id
integer
required

The ID of the user.

Example:
9
Example request:
curl --request POST \
    "https://api.metapic.dev/v2/offer-by-token/dignissimos/users/9/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\": \"jaltwjonolgzcgu\"
}"

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:
3
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/3" \
    --header "Authorization: {accessToken}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"comment\": \"mkdeulmdzuvs\"
}"

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:
13
offerCommentId
string
required

The ID of the comment.

Example:
1
Example request:
curl --request DELETE \
    "https://api.metapic.dev/v2/offer-users/1/comments/13" \
    --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:
et

Response Fields

Example request:
curl --request GET \
    --get "https://api.metapic.dev/v2/offer-users/et/activities" \
    --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."
}

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:
["scheduled"]
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[]=scheduled&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": "Ashlynn Swift",
            "advertiser_group_id": 3923,
            "affiliate_link": {
                "id": 813,
                "url": "http://beahan.com/est-voluptates-possimus-in-voluptatem-error",
                "original_url": "http://www.waters.info/quas-id-sed-quia",
                "mtpc_url": "https://c.mtpc.se/813",
                "user_id": 3176,
                "country": "VE",
                "provider": "olive",
                "advertiser": {
                    "id": 1881,
                    "name": "Walsh-Schinner"
                }
            },
            "author_id": 3177,
            "display_for_all_advertisers": false,
            "status": "active",
            "styles": null,
            "image": {
                "key": "dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDBkZDU1P3RleHQ9cXVhc2k=",
                "url": "https://media.metapic.com/insecure/rs:fit:2000:2000/g:sm/dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDBkZDU1P3RleHQ9cXVhc2k=",
                "base_url": "https://media.metapic.com",
                "base64": "dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDBkZDU1P3RleHQ9cXVhc2k="
            },
            "starts_at": "2025-03-25 10:52:19",
            "ends_at": "2025-05-25 10:52:19",
            "stats": []
        },
        {
            "id": 277,
            "name": "Sam Aufderhar",
            "advertiser_group_id": 3926,
            "affiliate_link": {
                "id": 814,
                "url": "https://wintheiser.net/esse-necessitatibus-quidem-et-ducimus-blanditiis-aut.html",
                "original_url": "http://aufderhar.com/eum-odio-similique-ut-iusto",
                "mtpc_url": "https://c.mtpc.se/814",
                "user_id": 3178,
                "country": "MQ",
                "provider": "purple",
                "advertiser": {
                    "id": 1882,
                    "name": "McClure, O'Kon and Herman"
                }
            },
            "author_id": 3179,
            "display_for_all_advertisers": false,
            "status": "active",
            "styles": null,
            "image": {
                "key": "dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDBjYzExP3RleHQ9ZnVnaXQ=",
                "url": "https://media.metapic.com/insecure/rs:fit:2000:2000/g:sm/dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDBjYzExP3RleHQ9ZnVnaXQ=",
                "base_url": "https://media.metapic.com",
                "base64": "dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDBjYzExP3RleHQ9ZnVnaXQ="
            },
            "starts_at": "2025-03-25 10:52:19",
            "ends_at": "2025-05-25 10:52:19",
            "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",
                "active": false
            },
            {
                "url": "/?page=1",
                "label": "1",
                "active": true
            },
            {
                "url": null,
                "label": "Next »",
                "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\": \"l\",
    \"advertiser_group_id\": 1,
    \"advertiser_id\": 9,
    \"return_link\": \"https:\\/\\/advertiser.com\",
    \"display_for_all_advertisers\": true,
    \"advertiser_ids\": [
        1
    ],
    \"advertiser_category_ids\": [
        20
    ],
    \"styles\": {
        \"color\": \"#ffffff\"
    },
    \"image_key\": \"dG1wL2ltYWdlLmpwZw==\",
    \"starts_at\": \"2025-04-25T10:52:19\",
    \"ends_at\": \"2033-12-13\",
    \"click_limit\": 2,
    \"view_limit\": 20
}"
Example response:
{
    "id": 278,
    "name": "Jalyn Boehm",
    "advertiser_group_id": 3929,
    "affiliate_link": {
        "id": 815,
        "url": "http://reichert.com/",
        "original_url": "http://www.mccullough.com/culpa-culpa-ab-dolores-saepe-exercitationem-quo",
        "mtpc_url": "https://c.mtpc.se/815",
        "user_id": 3180,
        "country": "GD",
        "provider": "olive",
        "advertiser": {
            "id": 1883,
            "name": "Bergstrom PLC"
        }
    },
    "author_id": 3181,
    "display_for_all_advertisers": false,
    "status": "active",
    "styles": null,
    "image": {
        "key": "dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDBjY2FhP3RleHQ9cmVjdXNhbmRhZQ==",
        "url": "https://media.metapic.com/insecure/rs:fit:2000:2000/g:sm/dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDBjY2FhP3RleHQ9cmVjdXNhbmRhZQ==",
        "base_url": "https://media.metapic.com",
        "base64": "dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDBjY2FhP3RleHQ9cmVjdXNhbmRhZQ=="
    },
    "starts_at": "2025-03-25 10:52:19",
    "ends_at": "2025-05-25 10:52:19",
    "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:
3

Response Fields

Example request:
curl --request GET \
    --get "https://api.metapic.dev/v2/return-ads/3" \
    --header "Authorization: {accessToken}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
{
    "id": 279,
    "name": "Faustino Feest V",
    "advertiser_group_id": 3932,
    "affiliate_link": {
        "id": 816,
        "url": "https://www.mertz.com/perferendis-eveniet-est-fuga-officiis-rem",
        "original_url": "http://www.dooley.org/officia-eum-aspernatur-necessitatibus-in",
        "mtpc_url": "https://c.mtpc.se/816",
        "user_id": 3182,
        "country": "GY",
        "provider": "yellow",
        "advertiser": {
            "id": 1884,
            "name": "Treutel, Stroman and D'Amore"
        }
    },
    "author_id": 3183,
    "display_for_all_advertisers": false,
    "status": "active",
    "styles": null,
    "image": {
        "key": "dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDBmZjAwP3RleHQ9aW1wZWRpdA==",
        "url": "https://media.metapic.com/insecure/rs:fit:2000:2000/g:sm/dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDBmZjAwP3RleHQ9aW1wZWRpdA==",
        "base_url": "https://media.metapic.com",
        "base64": "dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDBmZjAwP3RleHQ9aW1wZWRpdA=="
    },
    "starts_at": "2025-03-25 10:52:19",
    "ends_at": "2025-05-25 10:52:19",
    "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\": \"ebagnnhiswbpxndocvqjm\",
    \"return_link\": \"https:\\/\\/advertiser.com\",
    \"display_for_all_advertisers\": true,
    \"advertiser_ids\": [
        5
    ],
    \"advertiser_category_ids\": [
        19
    ],
    \"styles\": {
        \"color\": \"#ffffff\"
    },
    \"image_key\": \"dG1wL2ltYWdlLmpwZw==\",
    \"starts_at\": \"2025-04-25T10:52:19\",
    \"ends_at\": \"2060-09-25\",
    \"click_limit\": 17,
    \"view_limit\": 12
}"
Example response:
{
    "id": 280,
    "name": "Aisha Quitzon",
    "advertiser_group_id": 3935,
    "affiliate_link": {
        "id": 817,
        "url": "http://www.towne.com/",
        "original_url": "http://harber.com/ratione-error-aut-quia-quia.html",
        "mtpc_url": "https://c.mtpc.se/817",
        "user_id": 3184,
        "country": "CF",
        "provider": "maroon",
        "advertiser": {
            "id": 1885,
            "name": "Smith, White and Kuhic"
        }
    },
    "author_id": 3185,
    "display_for_all_advertisers": false,
    "status": "active",
    "styles": null,
    "image": {
        "key": "dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDAyMmRkP3RleHQ9YXV0",
        "url": "https://media.metapic.com/insecure/rs:fit:2000:2000/g:sm/dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDAyMmRkP3RleHQ9YXV0",
        "base_url": "https://media.metapic.com",
        "base64": "dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDAyMmRkP3RleHQ9YXV0"
    },
    "starts_at": "2025-03-25 10:52:19",
    "ends_at": "2025-05-25 10:52:19",
    "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:
19
Example request:
curl --request DELETE \
    "https://api.metapic.dev/v2/return-ads/19" \
    --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:
13

Response Fields

Example request:
curl --request POST \
    "https://api.metapic.dev/v2/return-ads/13/pause" \
    --header "Authorization: {accessToken}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
{
    "id": 281,
    "name": "Isabell Weimann",
    "advertiser_group_id": 3938,
    "affiliate_link": {
        "id": 818,
        "url": "http://www.ortiz.info/iure-quibusdam-dolore-dolor-ut",
        "original_url": "http://www.wilkinson.com/nesciunt-autem-vitae-ut-neque.html",
        "mtpc_url": "https://c.mtpc.se/818",
        "user_id": 3186,
        "country": "MP",
        "provider": "blue",
        "advertiser": {
            "id": 1886,
            "name": "Rippin LLC"
        }
    },
    "author_id": 3187,
    "display_for_all_advertisers": false,
    "status": "active",
    "styles": null,
    "image": {
        "key": "dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDA2NmVlP3RleHQ9ZGlnbmlzc2ltb3M=",
        "url": "https://media.metapic.com/insecure/rs:fit:2000:2000/g:sm/dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDA2NmVlP3RleHQ9ZGlnbmlzc2ltb3M=",
        "base_url": "https://media.metapic.com",
        "base64": "dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDA2NmVlP3RleHQ9ZGlnbmlzc2ltb3M="
    },
    "starts_at": "2025-03-25 10:52:19",
    "ends_at": "2025-05-25 10:52:19",
    "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:
14

Response Fields

Example request:
curl --request POST \
    "https://api.metapic.dev/v2/return-ads/14/unpause" \
    --header "Authorization: {accessToken}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
{
    "id": 282,
    "name": "Dr. Jaeden Howe",
    "advertiser_group_id": 3941,
    "affiliate_link": {
        "id": 819,
        "url": "http://mccullough.com/perferendis-odit-asperiores-totam.html",
        "original_url": "https://murphy.info/et-eum-doloribus-odit-voluptatem.html",
        "mtpc_url": "https://c.mtpc.se/819",
        "user_id": 3188,
        "country": "CU",
        "provider": "maroon",
        "advertiser": {
            "id": 1887,
            "name": "Romaguera, Larson and Gibson"
        }
    },
    "author_id": 3189,
    "display_for_all_advertisers": false,
    "status": "active",
    "styles": null,
    "image": {
        "key": "dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDAzM2ZmP3RleHQ9aXVyZQ==",
        "url": "https://media.metapic.com/insecure/rs:fit:2000:2000/g:sm/dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDAzM2ZmP3RleHQ9aXVyZQ==",
        "base_url": "https://media.metapic.com",
        "base64": "dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDAzM2ZmP3RleHQ9aXVyZQ=="
    },
    "starts_at": "2025-03-25 10:52:19",
    "ends_at": "2025-05-25 10:52:19",
    "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:
18

Response Fields

Example request:
curl --request GET \
    --get "https://api.metapic.dev/v2/advertisers/18/return-ads" \
    --header "Authorization: {accessToken}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
[
    {
        "id": 283,
        "name": "Dr. Maverick Erdman PhD",
        "advertiser_group_id": 3944,
        "affiliate_link": {
            "id": 820,
            "url": "http://www.williamson.com/explicabo-aperiam-tempora-asperiores-in-autem",
            "original_url": "http://www.jacobson.com/ut-amet-nam-ad-quaerat",
            "mtpc_url": "https://c.mtpc.se/820",
            "user_id": 3190,
            "country": "LY",
            "provider": "lime",
            "advertiser": {
                "id": 1888,
                "name": "Champlin, Ankunding and Krajcik"
            }
        },
        "author_id": 3191,
        "display_for_all_advertisers": false,
        "status": "active",
        "styles": null,
        "image": {
            "key": "dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDBjYzg4P3RleHQ9ZW5pbQ==",
            "url": "https://media.metapic.com/insecure/rs:fit:2000:2000/g:sm/dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDBjYzg4P3RleHQ9ZW5pbQ==",
            "base_url": "https://media.metapic.com",
            "base64": "dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDBjYzg4P3RleHQ9ZW5pbQ=="
        },
        "starts_at": "2025-03-25 10:52:19",
        "ends_at": "2025-05-25 10:52:19",
        "stats": []
    },
    {
        "id": 284,
        "name": "Geo Stracke",
        "advertiser_group_id": 3947,
        "affiliate_link": {
            "id": 821,
            "url": "http://predovic.com/in-ad-ipsum-illo-quia-delectus-et-possimus",
            "original_url": "http://www.shields.com/nesciunt-saepe-ut-facere-non-illo-et.html",
            "mtpc_url": "https://c.mtpc.se/821",
            "user_id": 3192,
            "country": "NR",
            "provider": "green",
            "advertiser": {
                "id": 1889,
                "name": "Gottlieb-Luettgen"
            }
        },
        "author_id": 3193,
        "display_for_all_advertisers": false,
        "status": "active",
        "styles": null,
        "image": {
            "key": "dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDAyMjg4P3RleHQ9Y29ycnVwdGk=",
            "url": "https://media.metapic.com/insecure/rs:fit:2000:2000/g:sm/dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDAyMjg4P3RleHQ9Y29ycnVwdGk=",
            "base_url": "https://media.metapic.com",
            "base64": "dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDAyMjg4P3RleHQ9Y29ycnVwdGk="
        },
        "starts_at": "2025-03-25 10:52:19",
        "ends_at": "2025-05-25 10:52:19",
        "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:
7

Response Fields

Example request:
curl --request GET \
    --get "https://api.metapic.dev/v2/stores/7/shared-budgets" \
    --header "Authorization: {accessToken}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
[
    {
        "id": 41,
        "title": "Mitchel Hill",
        "amount": 7,
        "consumed_budget": 0,
        "currency": "EUR"
    },
    {
        "id": 42,
        "title": "Prof. Ozella Erdman",
        "amount": 1,
        "consumed_budget": 0,
        "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:
10
id
integer
required

The ID of the shared budget.

Example:
14

Response Fields

Example request:
curl --request GET \
    --get "https://api.metapic.dev/v2/stores/10/shared-budgets/14" \
    --header "Authorization: {accessToken}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
{
    "id": 43,
    "title": "Rogelio Stamm III",
    "amount": 4,
    "consumed_budget": 0,
    "currency": "PLN"
}

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:
1
id
integer
required

The ID of the shared budget.

Example:
16

Body Parameters

Response Fields

Example request:
curl --request PUT \
    "https://api.metapic.dev/v2/stores/1/shared-budgets/16" \
    --header "Authorization: {accessToken}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"title\": \"Summer budget\",
    \"amount\": 10000
}"
Example response:
{
    "id": 44,
    "title": "Demarcus Ziemann",
    "amount": 6,
    "consumed_budget": 0,
    "currency": "SEK"
}

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:
5
id
integer
required

The ID of the shared budget.

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

Store

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:
created_at:desc
Example request:
curl --request GET \
    --get "https://api.metapic.dev/v2/stores?query=nike&store_group_id=15&size=20&sort_by=created_at%3Adesc" \
    --header "Authorization: {accessToken}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
{
    "data": [
        {
            "id": 1892,
            "name": "Halvorson PLC"
        },
        {
            "id": 1893,
            "name": "Murazik-Conroy"
        }
    ],
    "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",
                "active": false
            },
            {
                "url": "/?page=1",
                "label": "1",
                "active": true
            },
            {
                "url": null,
                "label": "Next »",
                "active": false
            }
        ],
        "path": "/",
        "per_page": 20,
        "to": 2,
        "total": 2
    }
}

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\": [
        3
    ],
    \"logo_url\": \"http:\\/\\/damore.com\\/asperiores-eaque-ducimus-dicta-sit.html\",
    \"country\": \" Example: SE\",
    \"currency\": \"Example: EUR\",
    \"language\": \"sv\",
    \"billing\": {
        \"company_name\": \"ut\",
        \"street\": \"et\",
        \"postal_code\": \"amet\",
        \"city\": \"deserunt\",
        \"vat_number\": \"consequuntur\"
    }
}"
Example response:
{
    "id": 1894,
    "name": "Muller-Daugherty"
}

PUT v2/stores/{store_id}/payment

PUT
https://api.metapic.dev
/v2/stores/{store_id}/payment
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:
13
Example request:
curl --request PUT \
    "https://api.metapic.dev/v2/stores/13/payment" \
    --header "Authorization: {accessToken}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"

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\": \"aliquam\"
}"

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:
created_at:desc
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=created_at%3Adesc" \
    --header "Authorization: {accessToken}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
{
    "data": [
        {
            "id": 3196,
            "username": "remington35",
            "email": "[email protected]",
            "client_id": 3304
        },
        {
            "id": 3197,
            "username": "wisozk.selena",
            "email": "[email protected]",
            "client_id": 3305
        }
    ],
    "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",
                "active": false
            },
            {
                "url": "/?page=1",
                "label": "1",
                "active": true
            },
            {
                "url": null,
                "label": "Next »",
                "active": false
            }
        ],
        "path": "/",
        "per_page": 20,
        "to": 2,
        "total": 2
    }
}

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:
created_at:desc
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=created_at%3Adesc" \
    --header "Authorization: {accessToken}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
{
    "data": [
        {
            "id": 138,
            "name": "Riley Greenfelder",
            "slug": "quia-et",
            "access_level": 1,
            "store_id": 1895
        },
        {
            "id": 139,
            "name": "Karlee Crist",
            "slug": "aliquid-veritatis",
            "access_level": 1,
            "store_id": 1896
        }
    ],
    "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",
                "active": false
            },
            {
                "url": "/?page=1",
                "label": "1",
                "active": true
            },
            {
                "url": null,
                "label": "Next »",
                "active": false
            }
        ],
        "path": "/",
        "per_page": 20,
        "to": 2,
        "total": 2
    }
}