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

Query Parameters

query
string

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

Example:
pgzerchgehpqqsqqkrhx
Example request:
curl --request GET \
    --get "https://api.metapic.dev/v2/advertisers/12/blocklist?query=pgzerchgehpqqsqqkrhx" \
    --header "Authorization: {accessToken}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
{
    "data": [
        {
            "id": 73,
            "created_at": "2025-04-01 11:27:59",
            "created_by": {
                "id": 3042,
                "username": "rborer",
                "email": "[email protected]",
                "client_id": 3147
            },
            "user_tag": {
                "id": 133,
                "name": "Rey Prosacco",
                "slug": "voluptas-autem-quos",
                "access_level": 1,
                "store_id": null
            }
        },
        {
            "id": 74,
            "created_at": "2025-04-01 11:27:59",
            "created_by": {
                "id": 3043,
                "username": "roberts.brooke",
                "email": "[email protected]",
                "client_id": 3148
            },
            "user_tag": {
                "id": 134,
                "name": "Prof. Maynard Mueller Jr.",
                "slug": "similique-quia",
                "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:
11

Body Parameters

Example request:
curl --request POST \
    "https://api.metapic.dev/v2/advertisers/11/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:
7
target_id
integer
required

The ID of the target.

Example:
10
Example request:
curl --request DELETE \
    "https://api.metapic.dev/v2/advertisers/7/blocklist/10" \
    --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": 3786,
            "name": "Schaefer Inc",
            "key": "fo_FO",
            "currency": "PLN"
        },
        {
            "id": 3787,
            "name": "Frami-Schultz",
            "key": "zh_MO",
            "currency": "USD"
        }
    ],
    "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:
tempore

Response Fields

Example request:
curl --request GET \
    --get "https://api.metapic.dev/v2/affiliate-links/tempore" \
    --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\": 2,
    \"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": 3149,
            "name": "Drew Jaskolski IV",
            "client_id": "EZgS0MUdSK",
            "has_own_payment_system": false,
            "revenue_share": 1
        },
        {
            "id": 3150,
            "name": "Myrtice Donnelly",
            "client_id": "DOKh0ravXA",
            "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:
blanditiis
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:
instagram
favorite
string

Filter user media by favorite value.

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

:shrug:.

Example:
17
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=blanditiis&status=2&type=instagram&favorite=1&group=17&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": 49,
        "name": "Beauty"
    },
    {
        "id": 50,
        "name": "Food"
    }
]

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

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

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\": 2
}"
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\": 15,
    \"type\": \"user_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\": 7365645.81589113,
    \"budget_limit\": 10,
    \"max_clicks\": 12,
    \"valid_from\": \"2025-04-01T13:27:58\",
    \"valid_until\": \"2002-07-08\",
    \"todo\": [
        \"thpsizjpixxd\"
    ],
    \"show_for_advertiser\": false,
    \"priority_after\": 4,
    \"shared_budget_id\": 1,
    \"shared_budget\": {
        \"title\": \"Summer budget\",
        \"amount\": 10000
    },
    \"targets\": {
        \"user_ids\": [
            5
        ],
        \"user_tag_ids\": [
            4
        ],
        \"store_group_ids\": [
            5
        ],
        \"emails\": [
            \"[email protected]\"
        ],
        \"social_media_identifiers\": [
            \"ldznqgwnm\"
        ],
        \"client_ids\": [
            11
        ],
        \"revenue_tier_ids\": [
            13
        ]
    },
    \"traffic_sources_costs\": [
        {
            \"source\": 1,
            \"cpc\": 230,
            \"cpa\": 0.2,
            \"invoice_cpc\": 250,
            \"invoice_cpa\": 0.25,
            \"user_revenue\": 1
        }
    ]
}"
Example response:
{
    "data": {
        "id": 602,
        "campaign_title": "Marquis Stamm",
        "campaign_text": "Doloremque et ut nihil. Dolore facere dolor itaque veniam vitae. Ipsam fugit ab eos. Et numquam perspiciatis veniam eum quae.",
        "has_product_seeding": false,
        "has_onetime_payment": false,
        "status": "active",
        "image_url": "https://media.metapic.com/insecure/rs:fill:800:500/g:sm/dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDBmZjExP3RleHQ9YXV0",
        "image": {
            "key": "dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDBmZjExP3RleHQ9YXV0",
            "url": "https://media.metapic.com/insecure/rs:fill:800:500/g:sm/dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDBmZjExP3RleHQ9YXV0",
            "base_url": "https://media.metapic.com",
            "base64": "dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDBmZjExP3RleHQ9YXV0"
        },
        "store_id": 1766,
        "token": "lzwt5dnv9w0p3uuq",
        "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": 603,
    "campaign_title": "Miss Roselyn Prohaska",
    "campaign_text": "Qui dolor recusandae totam odio facere voluptatibus ullam. Maiores quos aut repellat et.",
    "has_product_seeding": false,
    "has_onetime_payment": false,
    "status": "active",
    "image_url": "https://media.metapic.com/insecure/rs:fill:800:500/g:sm/dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDBlZTg4P3RleHQ9ZXg=",
    "image": {
        "key": "dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDBlZTg4P3RleHQ9ZXg=",
        "url": "https://media.metapic.com/insecure/rs:fill:800:500/g:sm/dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDBlZTg4P3RleHQ9ZXg=",
        "base_url": "https://media.metapic.com",
        "base64": "dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDBlZTg4P3RleHQ9ZXg="
    },
    "store_id": 1767,
    "store_name": "Okuneva-Gorczany",
    "store_logo_url": null,
    "store_logo": null,
    "currency": "USD",
    "token": "g9ujj57id4gpv5yx",
    "traffic_sources_costs": [
        {
            "id": 201,
            "source": 0,
            "source_name": "General",
            "cpc": 1,
            "cpc_v2": {
                "amount": "0.01",
                "currency": "USD"
            },
            "cpa": 0.04,
            "currency": "USD"
        }
    ],
    "type": "standard"
}

Update campaign

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

Updates existing campaign.

Headers

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

URL Parameters

id
integer
required

The ID of the offer.

Example:
12
offer_id
integer
required

The offer ID

Example:
15556

Body Parameters

Response Fields

Example request:
curl --request PUT \
    "https://api.metapic.dev/v2/offers/12" \
    --header "Authorization: {accessToken}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"store_group_id\": 12,
    \"type\": \"standard\",
    \"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\": false,
    \"one_time_payment\": 247.899,
    \"budget_limit\": 8,
    \"max_clicks\": 12,
    \"valid_from\": \"2025-04-01T13:27:58\",
    \"valid_until\": \"2015-01-15\",
    \"todo\": [
        \"ndypxikbrdlblxm\"
    ],
    \"show_for_advertiser\": true,
    \"priority_after\": 14,
    \"traffic_sources_costs\": [
        {
            \"source\": 1,
            \"cpc\": 230,
            \"cpa\": 0.2,
            \"invoice_cpc\": 250,
            \"invoice_cpa\": 0.25,
            \"user_revenue\": 1
        }
    ],
    \"targets\": {
        \"0\": [],
        \"user_ids\": [
            17
        ],
        \"user_tag_ids\": [
            15
        ],
        \"store_group_ids\": [
            5
        ],
        \"emails\": [
            \"[email protected]\"
        ],
        \"social_media_identifiers\": [
            \"aiolce\"
        ],
        \"client_ids\": [
            4
        ],
        \"revenue_tier_ids\": [
            14
        ]
    },
    \"shared_budget_id\": 1,
    \"shared_budget\": {
        \"title\": \"Summer budget\",
        \"amount\": 10000
    }
}"
Example response:
{
    "data": {
        "id": 604,
        "campaign_title": "Prof. Linda Hayes",
        "campaign_text": "Nemo porro laborum dolores. Ab quis voluptas magnam laborum reiciendis neque. Quidem sit aperiam dicta at ipsam aperiam. Dolores voluptates est error et omnis vitae labore.",
        "has_product_seeding": false,
        "has_onetime_payment": false,
        "status": "active",
        "image_url": "https://media.metapic.com/insecure/rs:fill:800:500/g:sm/dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDAyMjQ0P3RleHQ9YWQ=",
        "image": {
            "key": "dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDAyMjQ0P3RleHQ9YWQ=",
            "url": "https://media.metapic.com/insecure/rs:fill:800:500/g:sm/dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDAyMjQ0P3RleHQ9YWQ=",
            "base_url": "https://media.metapic.com",
            "base64": "dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDAyMjQ0P3RleHQ9YWQ="
        },
        "store_id": 1768,
        "token": "f8uo6802kagaivx7",
        "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:
7
offer_id
integer
required

The offer ID

Example:
15556
Example request:
curl --request DELETE \
    "https://api.metapic.dev/v2/offers/7" \
    --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:
["paused"]
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:
11
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:
12
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:
["targets"]
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[]=paused&store_ids[]=1&store_group_ids[]=1&created_by=11&or_id=1234&target_user_id=12&size=20&sort_by=created_at%3Adesc&custom_sort_by=ends_soon&include[]=targets&format=xlsx" \
    --header "Authorization: {accessToken}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
{
    "data": [
        {
            "id": 605,
            "campaign_title": "Coleman Wisozk",
            "campaign_text": "Unde veniam qui illum eaque veniam. Aperiam aspernatur temporibus perspiciatis maxime consectetur. Sed cumque consequatur voluptatem ut unde sunt.",
            "has_product_seeding": false,
            "has_onetime_payment": false,
            "status": "active",
            "image_url": "https://media.metapic.com/insecure/rs:fill:800:500/g:sm/dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDAzM2JiP3RleHQ9ZWl1cw==",
            "image": {
                "key": "dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDAzM2JiP3RleHQ9ZWl1cw==",
                "url": "https://media.metapic.com/insecure/rs:fill:800:500/g:sm/dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDAzM2JiP3RleHQ9ZWl1cw==",
                "base_url": "https://media.metapic.com",
                "base64": "dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDAzM2JiP3RleHQ9ZWl1cw=="
            },
            "store_id": 1769,
            "token": "gtrdeqax2kdgk9h3",
            "type": "standard"
        },
        {
            "id": 606,
            "campaign_title": "Adelbert Runte",
            "campaign_text": "Sed dolorem dolore illum harum a quos molestiae accusamus. Eius eveniet officia praesentium est veniam cum numquam. Temporibus sed iusto est consectetur voluptas vel rerum fugiat.",
            "has_product_seeding": false,
            "has_onetime_payment": false,
            "status": "active",
            "image_url": "https://media.metapic.com/insecure/rs:fill:800:500/g:sm/dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDAyMjAwP3RleHQ9b21uaXM=",
            "image": {
                "key": "dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDAyMjAwP3RleHQ9b21uaXM=",
                "url": "https://media.metapic.com/insecure/rs:fill:800:500/g:sm/dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDAyMjAwP3RleHQ9b21uaXM=",
                "base_url": "https://media.metapic.com",
                "base64": "dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDAyMjAwP3RleHQ9b21uaXM="
            },
            "store_id": 1770,
            "token": "nekeciup0bp2jsp0",
            "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\": \"eos\"
}"
Example response:
{
    "id": 607,
    "campaign_title": "Melyssa McKenzie IV",
    "campaign_text": "Et deserunt nostrum est qui labore fugit ut. Et aut qui praesentium animi. Magni praesentium et reiciendis quo minima qui non nihil. Sunt rerum illo reprehenderit ut.",
    "has_product_seeding": false,
    "has_onetime_payment": false,
    "status": "active",
    "image_url": "https://media.metapic.com/insecure/rs:fill:800:500/g:sm/dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDBlZWZmP3RleHQ9b2ZmaWNpYQ==",
    "image": {
        "key": "dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDBlZWZmP3RleHQ9b2ZmaWNpYQ==",
        "url": "https://media.metapic.com/insecure/rs:fill:800:500/g:sm/dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDBlZWZmP3RleHQ9b2ZmaWNpYQ==",
        "base_url": "https://media.metapic.com",
        "base64": "dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDBlZWZmP3RleHQ9b2ZmaWNpYQ=="
    },
    "store_id": 1771,
    "token": "o8rdpzqjgz57usyx",
    "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": 608,
    "campaign_title": "Giovani O'Connell",
    "campaign_text": "Cumque ratione placeat aut aut excepturi tempore et. Modi veritatis dolorem non molestias. Quisquam ad ullam optio aspernatur sed. Iusto aut est at aut sequi voluptates minima.",
    "has_product_seeding": false,
    "has_onetime_payment": false,
    "status": "active",
    "image_url": "https://media.metapic.com/insecure/rs:fill:800:500/g:sm/dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDAyMmFhP3RleHQ9ZW9z",
    "image": {
        "key": "dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDAyMmFhP3RleHQ9ZW9z",
        "url": "https://media.metapic.com/insecure/rs:fill:800:500/g:sm/dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDAyMmFhP3RleHQ9ZW9z",
        "base_url": "https://media.metapic.com",
        "base64": "dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDAyMmFhP3RleHQ9ZW9z"
    },
    "store_id": 1772,
    "token": "ioxxolm0fsv4rpn7",
    "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": 609,
    "campaign_title": "Mason Runte",
    "campaign_text": "Omnis ipsum doloremque repellat quia esse velit velit. Non maiores molestias eligendi eum. Qui hic vitae ab aut suscipit placeat maiores quam.",
    "has_product_seeding": false,
    "has_onetime_payment": false,
    "status": "active",
    "image_url": "https://media.metapic.com/insecure/rs:fill:800:500/g:sm/dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDBkZGVlP3RleHQ9cXVpYQ==",
    "image": {
        "key": "dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDBkZGVlP3RleHQ9cXVpYQ==",
        "url": "https://media.metapic.com/insecure/rs:fill:800:500/g:sm/dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDBkZGVlP3RleHQ9cXVpYQ==",
        "base_url": "https://media.metapic.com",
        "base64": "dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDBkZGVlP3RleHQ9cXVpYQ=="
    },
    "store_id": 1773,
    "token": "kly2dnz1dal6n7y6",
    "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\": \"2002-12-05\",
    \"end_date\": \"2077-07-09\"
}"
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:
14

Body Parameters

Example request:
curl --request GET \
    --get "https://api.metapic.dev/v2/users/14/offers" \
    --header "Authorization: {accessToken}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"status\": \"have_received\",
    \"name\": \"zjavqmeikqodvbg\"
}"
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:
quia
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/quia" \
    --header "Authorization: {accessToken}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
{
    "id": 621,
    "campaign_title": "Ms. Libby Lemke V",
    "campaign_text": "Non est cum non neque aut. Eaque eius tempora aliquam. Facilis aut cum debitis veritatis alias. Sed sapiente alias recusandae similique maxime voluptate. Sint error dolore saepe in.",
    "has_product_seeding": false,
    "has_onetime_payment": false,
    "status": "active",
    "image_url": "https://media.metapic.com/insecure/rs:fill:800:500/g:sm/dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDA0NDAwP3RleHQ9dm9sdXB0YXRlbQ==",
    "image": {
        "key": "dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDA0NDAwP3RleHQ9dm9sdXB0YXRlbQ==",
        "url": "https://media.metapic.com/insecure/rs:fill:800:500/g:sm/dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDA0NDAwP3RleHQ9dm9sdXB0YXRlbQ==",
        "base_url": "https://media.metapic.com",
        "base64": "dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDA0NDAwP3RleHQ9dm9sdXB0YXRlbQ=="
    },
    "store_id": 1808,
    "store_name": "Friesen and Sons",
    "store_logo_url": null,
    "store_logo": null,
    "currency": "USD",
    "token": "3a9vgptmnz6zl5q3",
    "traffic_sources_costs": [
        {
            "id": 202,
            "source": 0,
            "source_name": "General",
            "cpc": 1,
            "cpc_v2": {
                "amount": "0.01",
                "currency": "USD"
            },
            "cpa": 0.04,
            "currency": "USD"
        }
    ],
    "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\": [
        19
    ],
    \"user_tag_ids\": [
        10
    ],
    \"store_group_ids\": [
        10
    ],
    \"emails\": [
        \"[email protected]\"
    ],
    \"social_media_identifiers\": [
        \"zfgovbqfgbxmnhnx\"
    ],
    \"client_ids\": [
        19
    ],
    \"revenue_tier_ids\": [
        5
    ]
}"

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

The ID of the user.

Example:
10
Example request:
curl --request GET \
    --get "https://api.metapic.dev/v2/offers/13/users/10" \
    --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:
17

Body Parameters

Response Fields

Example request:
curl --request GET \
    --get "https://api.metapic.dev/v2/offers/17/participants" \
    --header "Authorization: {accessToken}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"query\": \"utzla\",
    \"status\": \"store_denied\"
}"
Example response:
{
    "data": [
        {
            "id": null,
            "offer_id": 611,
            "user_id": null,
            "display_name": "[email protected]",
            "clicks": 19438001,
            "status": "second_prio",
            "pre_registered_email": "[email protected]",
            "todo": null,
            "payment_amount": null
        },
        {
            "id": null,
            "offer_id": 613,
            "user_id": 3014,
            "display_name": null,
            "clicks": 24780,
            "status": "second_prio",
            "todo": null,
            "payment_amount": null
        }
    ],
    "links": {
        "first": "/?page=1",
        "last": "/?page=1",
        "prev": null,
        "next": null
    },
    "meta": {
        "current_page": 1,
        "from": 1,
        "last_page": 1,
        "links": [
            {
                "url": null,
                "label": "« Previous",
                "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:
5
id
integer
required

The ID of the participant.

Example:
6

Response Fields

Example request:
curl --request GET \
    --get "https://api.metapic.dev/v2/offers/5/participants/6" \
    --header "Authorization: {accessToken}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
{
    "id": null,
    "offer_id": 614,
    "user_id": 3017,
    "display_name": "[email protected]",
    "clicks": 175,
    "status": "applied",
    "todo": null,
    "payment_amount": null,
    "social_media": [],
    "tags": [
        {
            "id": 132,
            "name": "Miss Maud Denesik",
            "slug": "vero-est-modi",
            "access_level": 1,
            "store_id": 1779
        }
    ]
}

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

Body Parameters

Response Fields

Example request:
curl --request GET \
    --get "https://api.metapic.dev/v2/offers/16/participants-stats" \
    --header "Authorization: {accessToken}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"query\": \"lvptfevzorsz\",
    \"active\": true,
    \"start_date\": \"2003-07-01\",
    \"end_date\": \"2069-07-30\",
    \"sort_by\": \"links_created:asc\"
}"
Example response:
{
    "data": [
        {
            "id": null,
            "user_id": null,
            "display_name": "[email protected]",
            "clicks": 7041903,
            "status": "open",
            "links_created": null,
            "estimated_gp": null,
            "estimated_earning_to_cost_ratio": null
        },
        {
            "id": null,
            "user_id": null,
            "display_name": "leffler.maybelle",
            "clicks": 61120,
            "status": "product_sent",
            "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:
13

Body Parameters

Example request:
curl --request GET \
    --get "https://api.metapic.dev/v2/offers/13/participants-count-by-click-activity" \
    --header "Authorization: {accessToken}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"start_date\": \"2011-07-07\",
    \"end_date\": \"2121-10-05\"
}"
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:
3
participant_id
integer
required

The ID of the participant.

Example:
2

Body Parameters

Response Fields

Example request:
curl --request PATCH \
    "https://api.metapic.dev/v2/offers/3/participants/2/update-status" \
    --header "Authorization: {accessToken}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"status\": \"applied\"
}"
Example response:
{
    "id": null,
    "offer_id": 617,
    "user_id": null,
    "display_name": "[email protected]",
    "clicks": 9741,
    "status": "denied",
    "pre_registered_email": "[email protected]",
    "todo": null,
    "payment_amount": null
}

Update participant todo

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

Headers

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

URL Parameters

offer_id
integer
required

The ID of the offer.

Example:
2
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/2/participants/3/todo" \
    --header "Authorization: {accessToken}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"todo\": [
        {
            \"key\": \"xcwxlvfebfhssmboxdtdxlv\",
            \"value\": false
        }
    ]
}"
Example response:
{
    "id": null,
    "offer_id": 618,
    "user_id": null,
    "display_name": "kunde.damon",
    "clicks": 36596013,
    "status": "store_denied",
    "pre_registered_identifier": "kunde.damon",
    "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:
7
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/7/participants/15/overrides/clicks" \
    --header "Authorization: {accessToken}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"click_limit\": 8
}"
Example response:
{
    "id": null,
    "offer_id": 619,
    "user_id": null,
    "display_name": "shaun77",
    "clicks": 2,
    "status": "store_denied",
    "pre_registered_identifier": "shaun77",
    "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:
19
participant_id
integer
required

The ID of the participant.

Example:
8

Body Parameters

Response Fields

Example request:
curl --request PATCH \
    "https://api.metapic.dev/v2/offers/19/participants/8/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": 620,
    "user_id": null,
    "display_name": "leslie.stiedemann",
    "clicks": 9721716,
    "status": "have_posted",
    "pre_registered_identifier": "leslie.stiedemann",
    "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:
voluptas
user_id
integer
required

The ID of the user.

Example:
1
Example request:
curl --request GET \
    --get "https://api.metapic.dev/v2/offer-by-token/voluptas/users/1" \
    --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=eyJpdiI6ImxrQ0lFd0wrQk5NenlVTnMrNS9URFE9PSIsInZhbHVlIjoiUjdKQjRxcDRZMFV0eWVOMTZaTVhRUDJiYnp0RHpOYU5ob2kySnV2aU5zZDJZSTZBMXIxRGdZOUc1bUcweUUrVUtyWFd1S3M2d0t2cXBUeTFmZ1VRcVJpQUJ6TzhBYmVGSDFvZWJud3hzQjRzVWRDRHZGZFdTL0JuSC9HS3FKWXkiLCJtYWMiOiJkZWJiOWI1YmFkYWNmMWZlZWUwZDc1Y2VkMDY3MTQyYjFhNjJjMmFmM2NlOWQ1MTUxZGNkNjRlMWE0YWQxNjJiIiwidGFnIjoiIn0%3D; expires=Tue, 01 Apr 2025 13:27:59 GMT; Max-Age=7200; path=/; 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:
neque
user_id
integer
required

The ID of the user.

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

Comment


Add OfferUser comment

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

Headers

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

URL Parameters

offer_user_id
string
required

The ID of the offerUser.

Example:
1

Body Parameters

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

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

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

The ID of the comment.

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

Response Fields

Example request:
curl --request GET \
    --get "https://api.metapic.dev/v2/offer-users/sunt/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:
["deleted"]
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[]=deleted&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": "Nathanael Conroy",
            "advertiser_group_id": 3753,
            "affiliate_link": {
                "id": 785,
                "url": "http://www.mayer.info/veniam-in-aut-qui-ut-dolor-at-officia-dolorem",
                "original_url": "http://satterfield.biz/quo-nostrum-deleniti-suscipit-libero-id-eaque-cum.html",
                "mtpc_url": "https://c.mtpc.se/785",
                "user_id": 3024,
                "country": "BG",
                "provider": "aqua",
                "advertiser": {
                    "id": 1790,
                    "name": "Veum Group"
                }
            },
            "author_id": 3025,
            "display_for_all_advertisers": false,
            "status": "active",
            "styles": null,
            "image": {
                "key": "dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDBjY2VlP3RleHQ9YWI=",
                "url": "https://media.metapic.com/insecure/rs:fit:2000:2000/g:sm/dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDBjY2VlP3RleHQ9YWI=",
                "base_url": "https://media.metapic.com",
                "base64": "dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDBjY2VlP3RleHQ9YWI="
            },
            "starts_at": "2025-03-01 13:27:58",
            "ends_at": "2025-05-01 13:27:58",
            "stats": []
        },
        {
            "id": 277,
            "name": "Maxine Nikolaus",
            "advertiser_group_id": 3756,
            "affiliate_link": {
                "id": 786,
                "url": "http://www.kreiger.biz/consequuntur-ad-modi-consequuntur-sed",
                "original_url": "http://www.wuckert.org/et-dolorem-maxime-similique-consequatur-autem",
                "mtpc_url": "https://c.mtpc.se/786",
                "user_id": 3026,
                "country": "FJ",
                "provider": "black",
                "advertiser": {
                    "id": 1791,
                    "name": "Borer Group"
                }
            },
            "author_id": 3027,
            "display_for_all_advertisers": false,
            "status": "active",
            "styles": null,
            "image": {
                "key": "dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDBjYzY2P3RleHQ9Y29uc2VjdGV0dXI=",
                "url": "https://media.metapic.com/insecure/rs:fit:2000:2000/g:sm/dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDBjYzY2P3RleHQ9Y29uc2VjdGV0dXI=",
                "base_url": "https://media.metapic.com",
                "base64": "dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDBjYzY2P3RleHQ9Y29uc2VjdGV0dXI="
            },
            "starts_at": "2025-03-01 13:27:58",
            "ends_at": "2025-05-01 13:27:58",
            "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\": \"scpaurloujpor\",
    \"advertiser_group_id\": 13,
    \"advertiser_id\": 10,
    \"return_link\": \"https:\\/\\/advertiser.com\",
    \"display_for_all_advertisers\": true,
    \"advertiser_ids\": [
        16
    ],
    \"advertiser_category_ids\": [
        15
    ],
    \"styles\": {
        \"color\": \"#ffffff\"
    },
    \"image_key\": \"dG1wL2ltYWdlLmpwZw==\",
    \"starts_at\": \"2025-04-01T13:27:58\",
    \"ends_at\": \"2122-04-10\",
    \"click_limit\": 6,
    \"view_limit\": 5
}"
Example response:
{
    "id": 278,
    "name": "Marisol Hayes III",
    "advertiser_group_id": 3759,
    "affiliate_link": {
        "id": 787,
        "url": "https://zulauf.com/ut-perferendis-temporibus-doloremque-atque.html",
        "original_url": "http://skiles.com/",
        "mtpc_url": "https://c.mtpc.se/787",
        "user_id": 3028,
        "country": "FO",
        "provider": "fuchsia",
        "advertiser": {
            "id": 1792,
            "name": "Gusikowski Group"
        }
    },
    "author_id": 3029,
    "display_for_all_advertisers": false,
    "status": "active",
    "styles": null,
    "image": {
        "key": "dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDA2NmJiP3RleHQ9dXQ=",
        "url": "https://media.metapic.com/insecure/rs:fit:2000:2000/g:sm/dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDA2NmJiP3RleHQ9dXQ=",
        "base_url": "https://media.metapic.com",
        "base64": "dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDA2NmJiP3RleHQ9dXQ="
    },
    "starts_at": "2025-03-01 13:27:58",
    "ends_at": "2025-05-01 13:27:58",
    "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:
8

Response Fields

Example request:
curl --request GET \
    --get "https://api.metapic.dev/v2/return-ads/8" \
    --header "Authorization: {accessToken}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
{
    "id": 279,
    "name": "Kristofer Schimmel V",
    "advertiser_group_id": 3762,
    "affiliate_link": {
        "id": 788,
        "url": "http://torphy.net/animi-est-nobis-quia-aut-delectus-similique",
        "original_url": "http://www.feeney.com/",
        "mtpc_url": "https://c.mtpc.se/788",
        "user_id": 3030,
        "country": "SG",
        "provider": "maroon",
        "advertiser": {
            "id": 1793,
            "name": "Lebsack PLC"
        }
    },
    "author_id": 3031,
    "display_for_all_advertisers": false,
    "status": "active",
    "styles": null,
    "image": {
        "key": "dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDA2NmZmP3RleHQ9bWluaW1h",
        "url": "https://media.metapic.com/insecure/rs:fit:2000:2000/g:sm/dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDA2NmZmP3RleHQ9bWluaW1h",
        "base_url": "https://media.metapic.com",
        "base64": "dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDA2NmZmP3RleHQ9bWluaW1h"
    },
    "starts_at": "2025-03-01 13:27:59",
    "ends_at": "2025-05-01 13:27:59",
    "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:
5

Body Parameters

Response Fields

Example request:
curl --request PUT \
    "https://api.metapic.dev/v2/return-ads/5" \
    --header "Authorization: {accessToken}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"name\": \"kfgtbjyuusupnumnymr\",
    \"return_link\": \"https:\\/\\/advertiser.com\",
    \"display_for_all_advertisers\": false,
    \"advertiser_ids\": [
        13
    ],
    \"advertiser_category_ids\": [
        4
    ],
    \"styles\": {
        \"color\": \"#ffffff\"
    },
    \"image_key\": \"dG1wL2ltYWdlLmpwZw==\",
    \"starts_at\": \"2025-04-01T13:27:59\",
    \"ends_at\": \"2120-08-06\",
    \"click_limit\": 6,
    \"view_limit\": 4
}"
Example response:
{
    "id": 280,
    "name": "Ms. Dortha Hayes",
    "advertiser_group_id": 3765,
    "affiliate_link": {
        "id": 789,
        "url": "http://lemke.biz/repudiandae-saepe-temporibus-amet-deleniti",
        "original_url": "http://www.roberts.com/aut-incidunt-repellendus-velit-non-recusandae-qui-adipisci",
        "mtpc_url": "https://c.mtpc.se/789",
        "user_id": 3032,
        "country": "BA",
        "provider": "silver",
        "advertiser": {
            "id": 1794,
            "name": "Hessel, Conn and Feeney"
        }
    },
    "author_id": 3033,
    "display_for_all_advertisers": false,
    "status": "active",
    "styles": null,
    "image": {
        "key": "dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDAxMWNjP3RleHQ9bmVzY2l1bnQ=",
        "url": "https://media.metapic.com/insecure/rs:fit:2000:2000/g:sm/dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDAxMWNjP3RleHQ9bmVzY2l1bnQ=",
        "base_url": "https://media.metapic.com",
        "base64": "dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDAxMWNjP3RleHQ9bmVzY2l1bnQ="
    },
    "starts_at": "2025-03-01 13:27:59",
    "ends_at": "2025-05-01 13:27:59",
    "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:
10
Example request:
curl --request DELETE \
    "https://api.metapic.dev/v2/return-ads/10" \
    --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:
12

Response Fields

Example request:
curl --request POST \
    "https://api.metapic.dev/v2/return-ads/12/pause" \
    --header "Authorization: {accessToken}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
{
    "id": 281,
    "name": "Prof. Dominic Ortiz V",
    "advertiser_group_id": 3768,
    "affiliate_link": {
        "id": 790,
        "url": "http://www.streich.com/aut-est-laboriosam-ea-asperiores-ducimus-amet-dolor",
        "original_url": "http://lubowitz.org/provident-repudiandae-eveniet-eligendi-quia-molestiae",
        "mtpc_url": "https://c.mtpc.se/790",
        "user_id": 3034,
        "country": "CA",
        "provider": "navy",
        "advertiser": {
            "id": 1795,
            "name": "Jacobi-Morar"
        }
    },
    "author_id": 3035,
    "display_for_all_advertisers": false,
    "status": "active",
    "styles": null,
    "image": {
        "key": "dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDBjY2VlP3RleHQ9dGVuZXR1cg==",
        "url": "https://media.metapic.com/insecure/rs:fit:2000:2000/g:sm/dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDBjY2VlP3RleHQ9dGVuZXR1cg==",
        "base_url": "https://media.metapic.com",
        "base64": "dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDBjY2VlP3RleHQ9dGVuZXR1cg=="
    },
    "starts_at": "2025-03-01 13:27:59",
    "ends_at": "2025-05-01 13:27:59",
    "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:
2

Response Fields

Example request:
curl --request POST \
    "https://api.metapic.dev/v2/return-ads/2/unpause" \
    --header "Authorization: {accessToken}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
{
    "id": 282,
    "name": "Prof. Carmine Cremin",
    "advertiser_group_id": 3771,
    "affiliate_link": {
        "id": 791,
        "url": "http://oberbrunner.com/eius-et-perspiciatis-dolorum-sit-quisquam",
        "original_url": "http://stark.com/harum-labore-similique-enim-quia",
        "mtpc_url": "https://c.mtpc.se/791",
        "user_id": 3036,
        "country": "AT",
        "provider": "aqua",
        "advertiser": {
            "id": 1796,
            "name": "Ryan LLC"
        }
    },
    "author_id": 3037,
    "display_for_all_advertisers": false,
    "status": "active",
    "styles": null,
    "image": {
        "key": "dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDBkZDk5P3RleHQ9dmVsaXQ=",
        "url": "https://media.metapic.com/insecure/rs:fit:2000:2000/g:sm/dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDBkZDk5P3RleHQ9dmVsaXQ=",
        "base_url": "https://media.metapic.com",
        "base64": "dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDBkZDk5P3RleHQ9dmVsaXQ="
    },
    "starts_at": "2025-03-01 13:27:59",
    "ends_at": "2025-05-01 13:27:59",
    "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:
16

Response Fields

Example request:
curl --request GET \
    --get "https://api.metapic.dev/v2/advertisers/16/return-ads" \
    --header "Authorization: {accessToken}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
[
    {
        "id": 283,
        "name": "Zula Boehm",
        "advertiser_group_id": 3774,
        "affiliate_link": {
            "id": 792,
            "url": "http://www.davis.com/quisquam-nam-sed-sed-eligendi-necessitatibus-ut-accusamus",
            "original_url": "http://www.mann.com/consequatur-repellat-dolore-doloribus-vel-et-vitae-et-qui",
            "mtpc_url": "https://c.mtpc.se/792",
            "user_id": 3038,
            "country": "FM",
            "provider": "fuchsia",
            "advertiser": {
                "id": 1797,
                "name": "Moore, Will and Bradtke"
            }
        },
        "author_id": 3039,
        "display_for_all_advertisers": false,
        "status": "active",
        "styles": null,
        "image": {
            "key": "dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDA5OWNjP3RleHQ9ZXN0",
            "url": "https://media.metapic.com/insecure/rs:fit:2000:2000/g:sm/dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDA5OWNjP3RleHQ9ZXN0",
            "base_url": "https://media.metapic.com",
            "base64": "dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDA5OWNjP3RleHQ9ZXN0"
        },
        "starts_at": "2025-03-01 13:27:59",
        "ends_at": "2025-05-01 13:27:59",
        "stats": []
    },
    {
        "id": 284,
        "name": "Mr. Kurtis Fritsch DDS",
        "advertiser_group_id": 3777,
        "affiliate_link": {
            "id": 793,
            "url": "http://www.schaden.biz/corrupti-occaecati-numquam-praesentium-dolor-dolores-et",
            "original_url": "http://www.hauck.info/",
            "mtpc_url": "https://c.mtpc.se/793",
            "user_id": 3040,
            "country": "SY",
            "provider": "purple",
            "advertiser": {
                "id": 1798,
                "name": "Jerde-Cole"
            }
        },
        "author_id": 3041,
        "display_for_all_advertisers": false,
        "status": "active",
        "styles": null,
        "image": {
            "key": "dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDAyMjMzP3RleHQ9ZGlzdGluY3Rpbw==",
            "url": "https://media.metapic.com/insecure/rs:fit:2000:2000/g:sm/dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDAyMjMzP3RleHQ9ZGlzdGluY3Rpbw==",
            "base_url": "https://media.metapic.com",
            "base64": "dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDAyMjMzP3RleHQ9ZGlzdGluY3Rpbw=="
        },
        "starts_at": "2025-03-01 13:27:59",
        "ends_at": "2025-05-01 13:27:59",
        "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:
6

Response Fields

Example request:
curl --request GET \
    --get "https://api.metapic.dev/v2/stores/6/shared-budgets" \
    --header "Authorization: {accessToken}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
[
    {
        "id": 41,
        "title": "Marjolaine Haley",
        "amount": 9,
        "consumed_budget": 0,
        "currency": "USD"
    },
    {
        "id": 42,
        "title": "Ana Hahn",
        "amount": 8,
        "consumed_budget": 0,
        "currency": "USD"
    }
]

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

The ID of the shared budget.

Example:
1

Response Fields

Example request:
curl --request GET \
    --get "https://api.metapic.dev/v2/stores/19/shared-budgets/1" \
    --header "Authorization: {accessToken}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json"
Example response:
{
    "id": 43,
    "title": "Prof. Kay Gibson MD",
    "amount": 8,
    "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:
9
id
integer
required

The ID of the shared budget.

Example:
8

Body Parameters

Response Fields

Example request:
curl --request PUT \
    "https://api.metapic.dev/v2/stores/9/shared-budgets/8" \
    --header "Authorization: {accessToken}" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"title\": \"Summer budget\",
    \"amount\": 10000
}"
Example response:
{
    "id": 44,
    "title": "Bernard Walsh",
    "amount": 9,
    "consumed_budget": 0,
    "currency": "GBP"
}

Delete Shared Budget

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

Headers

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

URL Parameters

store_id
integer
required

The ID of the store.

Example:
1
id
integer
required

The ID of the shared budget.

Example:
18
Example request:
curl --request DELETE \
    "https://api.metapic.dev/v2/stores/1/shared-budgets/18" \
    --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": 1801,
            "name": "Langosh, Ebert and Carter"
        },
        {
            "id": 1802,
            "name": "Bechtelar-Bashirian"
        }
    ],
    "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\": [
        4
    ],
    \"logo_url\": \"http:\\/\\/www.olson.com\\/\",
    \"country\": \" Example: SE\",
    \"currency\": \"Example: EUR\",
    \"language\": \"sv\",
    \"billing\": {
        \"company_name\": \"rerum\",
        \"street\": \"ut\",
        \"postal_code\": \"molestiae\",
        \"city\": \"nisi\",
        \"vat_number\": \"est\"
    }
}"
Example response:
{
    "id": 1803,
    "name": "Funk, Herzog and Shanahan"
}

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:
1
Example request:
curl --request PUT \
    "https://api.metapic.dev/v2/stores/1/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\": \"consectetur\"
}"

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": 3044,
            "username": "vtremblay",
            "email": "[email protected]",
            "client_id": 3151
        },
        {
            "id": 3045,
            "username": "istokes",
            "email": "[email protected]",
            "client_id": 3152
        }
    ],
    "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": 135,
            "name": "Krystal Buckridge",
            "slug": "quia-possimus",
            "access_level": 1,
            "store_id": 1804
        },
        {
            "id": 136,
            "name": "Evalyn Nader I",
            "slug": "ad-atque-et",
            "access_level": 1,
            "store_id": 1805
        }
    ],
    "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
    }
}