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 👮
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.
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.
The ID of the advertiser.
Filters results to match user ID or username. Must not be greater than 128 characters.
curl --request GET \
--get "https://api.metapic.dev/v2/advertisers/7/blocklist?query=qspkimcwzedzkwhiqgyxdqpr" \
--header "Authorization: {accessToken}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
{
"data": [
{
"id": 75,
"created_at": "2025-09-17 16:59:53",
"created_by": {
"id": 3569,
"username": "loreilly",
"display_name": "Salma Strosin",
"email": "[email protected]",
"client_id": 3721
},
"client": {
"id": 3722,
"name": "Prof. Raina Champlin IV",
"client_id": "oAqDwZHdz3",
"has_own_payment_system": false,
"revenue_share": 1
}
},
{
"id": 76,
"created_at": "2025-09-17 16:59:53",
"created_by": {
"id": 3570,
"username": "kieran.murphy",
"display_name": "Torey Schimmel",
"email": "[email protected]",
"client_id": 3723
},
"client": {
"id": 3724,
"name": "Prof. Edison Rolfson",
"client_id": "0XUzrus25E",
"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": 10,
"to": 2,
"total": 2
}
}
Adds the given entries to the blocklist, ignoring them if they previously existed.
The ID of the advertiser.
curl --request POST \
"https://api.metapic.dev/v2/advertisers/19/blocklist" \
--header "Authorization: {accessToken}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"users\": [
{
\"id\": 123,
\"validate_clicks\": true
},
{
\"id\": 456,
\"validate_clicks\": false
}
],
\"user_tag_ids\": [
10
],
\"client_ids\": [
20
]
}"
The ID of the advertiser.
The ID of the target.
curl --request DELETE \
"https://api.metapic.dev/v2/advertisers/12/blocklist/1" \
--header "Authorization: {accessToken}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
Returns the settings to be added to the sales pixel script.
The advertiser.
curl --request GET \
--get "https://api.metapic.dev/v2/advertisers/porro/order-collectors/sales-pixel" \
--header "Authorization: {accessToken}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
cache-control
: no-cache, private
content-type
: application/json
x-ratelimit-limit
: 300
x-ratelimit-remaining
: 300
access-control-allow-origin
: *
{
"message": "Unauthenticated."
}
Returns the tracking configuration for the advertiser.
The advertiser.
The identifier of the collector
woocommerce
curl --request GET \
--get "https://api.metapic.dev/v2/advertisers/a/order-collectors/woocommerce" \
--header "Authorization: {accessToken}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
cache-control
: no-cache, private
content-type
: application/json
x-ratelimit-limit
: 300
x-ratelimit-remaining
: 300
access-control-allow-origin
: *
{
"message": "Unauthenticated."
}
Activates the tracking plugin with the given activation key.
Returns the parameters to insert into the Javascript tracking snippet.
curl --request POST \
"https://api.metapic.dev/v2/activate-tracking-plugin" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"metapic_activation_key\": \"repellat\"
}"
Returns remaining email quota for the advertiser.
The ID of the advertiser.
curl --request GET \
--get "https://api.metapic.dev/v2/advertisers/18/email-quota" \
--header "Authorization: {accessToken}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
cache-control
: no-cache, private
content-type
: application/json
x-ratelimit-limit
: 300
x-ratelimit-remaining
: 300
access-control-allow-origin
: *
{
"message": "Unauthenticated."
}
Endpoint for querying & sorting all stores.
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.
Query by store's store group. Returns all stores which belong to the given store_group_id
.
Page size. Defaults to 20. Must not be greater than 100.
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.
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"
{
"data": [
{
"id": 2173,
"name": "Friesen-Boyer"
},
{
"id": 2174,
"name": "Gottlieb, Monahan and Rutherford"
}
],
"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
}
}
Manages url matching rules for an advertiser. Url Matching rule can either be to allow or to block matching of a URL based on added rules.
Returns all url matching rules defined for the advertiser.
The ID of the advertiser.
curl --request GET \
--get "https://api.metapic.dev/v2/advertisers/5/url-matching-rules" \
--header "Authorization: {accessToken}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
[
{
"id": 277,
"type": "allow",
"is_main": false,
"url": "testcompany.com",
"updated_at": "2025-09-17T16:59:53.000000Z"
},
{
"id": 278,
"type": "allow",
"is_main": false,
"url": "testcompany.com",
"updated_at": "2025-09-17T16:59:53.000000Z"
}
]
Adds a new rule to the url matching for the advertiser.
The ID of the advertiser.
curl --request POST \
"https://api.metapic.dev/v2/advertisers/14/url-matching-rules" \
--header "Authorization: {accessToken}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"type\": \"allow\",
\"url\": \"http:\\/\\/walter.net\\/\",
\"keyword\": \"nwvjyndwtitvsujmatppt\",
\"is_main\": true
}"
Updates existing url matching rule for the advertiser.
The ID of the advertiser.
The ID of the urlMatchingRule.
curl --request PUT \
"https://api.metapic.dev/v2/advertisers/11/url-matching-rules/10" \
--header "Authorization: {accessToken}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"type\": \"block\",
\"url\": \"https:\\/\\/schowalter.com\\/est-omnis-dolorem-non-ullam-quae.html\",
\"keyword\": \"iuh\",
\"is_main\": false
}"
Removes existing url matching rule for the advertiser.
The ID of the advertiser.
The ID of the urlMatchingRule.
curl --request DELETE \
"https://api.metapic.dev/v2/advertisers/18/url-matching-rules/4" \
--header "Authorization: {accessToken}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
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\": [
5
],
\"logo_url\": \"https:\\/\\/larkin.com\\/omnis-aliquam-ad-tempora-nostrum.html\",
\"country\": \" Example: SE\",
\"currency\": \"Example: EUR\",
\"language\": \"sv\",
\"billing\": {
\"company_name\": \"impedit\",
\"street\": \"delectus\",
\"postal_code\": \"ut\",
\"city\": \"voluptatem\",
\"vat_number\": \"voluptate\"
}
}"
{
"id": 2175,
"name": "Zboncak LLC"
}
Deactivates the advertiser.
The ID of the advertiser.
curl --request POST \
"https://api.metapic.dev/v2/advertisers/5/deactivate" \
--header "Authorization: {accessToken}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
App\Http\Resources\Store\StoreResource
Endpoint for querying & sorting all advertiser groups.
Only return advertiser groups which have return ads enabled.
Page size. Defaults to 20. Must not be greater than 100.
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.
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"
{
"data": [
{
"id": 4456,
"name": "Stark, Haley and Crooks",
"key": "kpe_GN",
"currency": "GBP"
},
{
"id": 4457,
"name": "Davis, Cole and Koss",
"key": "bo_IN",
"currency": "EUR"
}
],
"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
}
}
The ID of the affiliate link.
curl --request GET \
--get "https://api.metapic.dev/v2/affiliate-links/eligendi" \
--header "Authorization: {accessToken}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
{
"id": 846,
"url": "http://schaefer.info/necessitatibus-nam-provident-aliquam-praesentium-sint",
"original_url": "http://rice.com/mollitia-qui-distinctio-impedit-cupiditate-omnis-consequatur-reiciendis",
"mtpc_url": "https://c.mtpc.se/846",
"user_id": 3573,
"country": "CU",
"provider": "purple",
"advertiser": {
"id": 2178,
"name": "Jast-Fritsch"
}
}
Returns advertisers if there are multiple advertisers to match the url with. Otherwise, returns the affiliate link.
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\": 3,
\"advertiser_preview\": true,
\"advertiser_group_id\": 1,
\"dry\": false
}"
{
"status": "success",
"affiliate_link": {
"status": "success",
"id": 847,
"url": "http://www.lebsack.biz/culpa-placeat-et-aliquid-nisi-possimus-et-maiores",
"original_url": "http://www.mclaughlin.org/",
"mtpc_url": "https://c.mtpc.se/847",
"user_id": 3574,
"country": "HT",
"provider": "fuchsia",
"advertiser": {
"id": 2179,
"name": "Sipes-Wiza"
}
}
}
Endpoint for querying & sorting all clients.
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.
Query by advertiser group. Returns all clients which belong to the given advertiser_group_ids
.
Page size. Defaults to 20. Must not be greater than 500.
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.
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"
{
"data": [
{
"id": 3725,
"name": "Deangelo Stamm III",
"client_id": "B7HO2ftNuI",
"has_own_payment_system": false,
"revenue_share": 1
},
{
"id": 3726,
"name": "Herminio Bayer",
"client_id": "u1UIHkHh50",
"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
}
}
Operations on Media posted by Creators
Filters media by username.
Filter user media by show store value.
all
0
1
2
Filters media by type.
all
instagram
tiktok
youtube
Filter user media by favorite value.
all
1
0
:shrug:.
Format to export.
csv
xlsx
json
curl --request GET \
--get "https://api.metapic.dev/v2/user-media?query=est&status=0&type=tiktok&favorite=all&group=18&format=csv" \
--header "Authorization: {accessToken}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
{
"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
}
curl --request GET \
--get "https://api.metapic.dev/v2/health" \
--header "Authorization: {accessToken}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
cache-control
: no-cache, private
content-type
: application/json
x-ratelimit-limit
: 300
x-ratelimit-remaining
: 300
access-control-allow-origin
: *
{
"status": "up"
}
curl --request GET \
--get "https://api.metapic.dev/v2/store-categories" \
--header "Authorization: {accessToken}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
[
{
"id": 68,
"name": "Books"
},
{
"id": 69,
"name": "Books"
}
]
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-09\"
}"
cache-control
: no-cache, private
content-type
: application/json
x-ratelimit-limit
: 300
x-ratelimit-remaining
: 300
access-control-allow-origin
: *
{
"message": "Unauthenticated."
}
The ID of the user.
curl --request GET \
--get "https://api.metapic.dev/v2/users/3/stores-by-categories" \
--header "Authorization: {accessToken}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
cache-control
: no-cache, private
content-type
: application/json
x-ratelimit-limit
: 300
x-ratelimit-remaining
: 300
access-control-allow-origin
: *
{
"message": "Unauthenticated."
}
The ID of the user.
curl --request GET \
--get "https://api.metapic.dev/v2/users/7/stores-by-toplist" \
--header "Authorization: {accessToken}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
cache-control
: no-cache, private
content-type
: application/json
x-ratelimit-limit
: 300
x-ratelimit-remaining
: 300
access-control-allow-origin
: *
{
"message": "Unauthenticated."
}
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\": \"zrxmafsylmdmhwn\"
}"
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\": \"igokchwvhnh\"
}"
curl --request GET \
--get "https://api.metapic.dev/v2/entrypoint" \
--header "Authorization: {accessToken}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"app\": \"admin\",
\"store_id\": 8
}"
cache-control
: no-cache, private
content-type
: application/json
x-ratelimit-limit
: 300
x-ratelimit-remaining
: 300
access-control-allow-origin
: *
{
"message": "Unauthenticated."
}
curl --request GET \
--get "https://api.metapic.dev/v2/notifications-proxy/B,NRo" \
--header "Authorization: {accessToken}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
cache-control
: no-cache, private
content-type
: application/json
x-ratelimit-limit
: 300
x-ratelimit-remaining
: 300
access-control-allow-origin
: *
{
"message": "Unauthenticated."
}
Creates new campaign for a store.
The store ID.
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\": 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\": 8130270.9203955,
\"budget_limit\": 7,
\"max_clicks\": 15,
\"valid_from\": \"2025-09-17T18:59:48\",
\"valid_until\": \"1977-12-19\",
\"todo\": [
\"yijhrhawlsiozt\"
],
\"show_for_advertiser\": true,
\"priority_after\": 8,
\"shared_budget_id\": 1,
\"shared_budget\": {
\"title\": \"Summer budget\",
\"amount\": 10000
},
\"targets\": {
\"user_ids\": [
14
],
\"user_tag_ids\": [
14
],
\"store_group_ids\": [
12
],
\"emails\": [
\"[email protected]\"
],
\"social_media_identifiers\": [
\"wp\"
],
\"client_ids\": [
16
],
\"revenue_tier_ids\": [
6
]
},
\"traffic_sources_costs\": [
{
\"source\": 1,
\"cpc\": 230,
\"cpa\": 0.2,
\"invoice_cpc\": 250,
\"invoice_cpa\": 0.25,
\"user_revenue\": 1
}
]
}"
{
"data": {
"id": 731,
"campaign_title": "Tomas Prohaska II",
"campaign_text": "Aut minima maiores consequuntur aliquam nam. Cupiditate recusandae dolor et laborum.",
"has_product_seeding": false,
"has_onetime_payment": false,
"status": "active",
"image_url": "https://media.metapic.com/insecure/rs:fill:800:500/g:sm/dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDBkZDExP3RleHQ9bWF4aW1l",
"image": {
"key": "dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDBkZDExP3RleHQ9bWF4aW1l",
"url": "https://media.metapic.com/insecure/rs:fill:800:500/g:sm/dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDBkZDExP3RleHQ9bWF4aW1l",
"base_url": "https://media.metapic.com",
"base64": "dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDBkZDExP3RleHQ9bWF4aW1l"
},
"store_id": 2138,
"store_name": "O'Keefe, Kuhic and Hermiston",
"store_logo_url": null,
"store_logo": null,
"currency": "PLN",
"token": "u89p94xrx54g883p",
"type": "standard",
"warnings": {
"skipped_targets": {
"user_ids": [
12,
15
]
}
}
},
"warnings": {
"skipped_targets": {
"user_ids": [
12,
15
]
}
}
}
Returns information about a specific campaign.
The offer ID
curl --request GET \
--get "https://api.metapic.dev/v2/offers/15556" \
--header "Authorization: {accessToken}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
{
"id": 732,
"campaign_title": "Hyman Cummings",
"campaign_text": "Est maiores harum quae molestiae reiciendis facilis labore. Omnis dolor tempora voluptatum. Facilis vel et modi ut debitis culpa quod.",
"has_product_seeding": false,
"has_onetime_payment": false,
"status": "active",
"image_url": "https://media.metapic.com/insecure/rs:fill:800:500/g:sm/dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDBmZmJiP3RleHQ9Y3VscGE=",
"image": {
"key": "dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDBmZmJiP3RleHQ9Y3VscGE=",
"url": "https://media.metapic.com/insecure/rs:fill:800:500/g:sm/dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDBmZmJiP3RleHQ9Y3VscGE=",
"base_url": "https://media.metapic.com",
"base64": "dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDBmZmJiP3RleHQ9Y3VscGE="
},
"store_id": 2139,
"store_name": "Fay PLC",
"store_logo_url": null,
"store_logo": null,
"currency": "SEK",
"token": "9gqtn9edikk9ml5k",
"traffic_sources_costs": [
{
"id": 219,
"source": 2,
"source_name": "TikTok",
"cpc": null,
"cpa": null,
"currency": "SEK"
}
],
"type": "standard"
}
Updates existing campaign.
The ID of the offer.
The offer ID
curl --request PUT \
"https://api.metapic.dev/v2/offers/4" \
--header "Authorization: {accessToken}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"store_group_id\": 13,
\"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\": true,
\"per_user_limit\": true,
\"one_time_payment\": 28.606487,
\"budget_limit\": 4,
\"max_clicks\": 4,
\"valid_from\": \"2025-09-17T18:59:49\",
\"valid_until\": \"1985-07-24\",
\"todo\": [
\"vlttavrgkjkrdnbrp\"
],
\"show_for_advertiser\": true,
\"priority_after\": 4,
\"traffic_sources_costs\": [
{
\"source\": 1,
\"cpc\": 230,
\"cpa\": 0.2,
\"invoice_cpc\": 250,
\"invoice_cpa\": 0.25,
\"user_revenue\": 0
}
],
\"targets\": {
\"0\": [],
\"user_ids\": [
18
],
\"user_tag_ids\": [
12
],
\"store_group_ids\": [
17
],
\"emails\": [
\"[email protected]\"
],
\"social_media_identifiers\": [
\"jjqnw\"
],
\"client_ids\": [
2
],
\"revenue_tier_ids\": [
10
]
},
\"shared_budget_id\": 1,
\"shared_budget\": {
\"title\": \"Summer budget\",
\"amount\": 10000
}
}"
{
"data": {
"id": 733,
"campaign_title": "Mabel Gibson",
"campaign_text": "Dolores maiores adipisci aut fuga quia sed. Nesciunt maiores animi unde tenetur exercitationem et. Quos facilis nam quisquam fugit eveniet et. Et dolorem ut quos et exercitationem et rerum cumque.",
"has_product_seeding": false,
"has_onetime_payment": false,
"status": "active",
"image_url": "https://media.metapic.com/insecure/rs:fill:800:500/g:sm/dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDA3NzU1P3RleHQ9bmF0dXM=",
"image": {
"key": "dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDA3NzU1P3RleHQ9bmF0dXM=",
"url": "https://media.metapic.com/insecure/rs:fill:800:500/g:sm/dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDA3NzU1P3RleHQ9bmF0dXM=",
"base_url": "https://media.metapic.com",
"base64": "dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDA3NzU1P3RleHQ9bmF0dXM="
},
"store_id": 2140,
"store_name": "Hessel PLC",
"store_logo_url": null,
"store_logo": null,
"currency": "EUR",
"token": "hjh1pdpvb67atryp",
"type": "standard",
"warnings": {
"skipped_targets": {
"user_ids": [
12,
15
]
}
}
},
"warnings": {
"skipped_targets": {
"user_ids": [
12,
15
]
}
}
}
Soft deletes a campaign.
The ID of the offer.
The offer ID
curl --request DELETE \
"https://api.metapic.dev/v2/offers/19" \
--header "Authorization: {accessToken}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
Endpoint for querying & sorting all campaigns.
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.
deleted
ended
scheduled
paused
active
Query by offer's store. Returns all offers which belong to the given store_ids
.
Query by offer's store group. Returns all offers which belong to the given store_group_ids
.
Query by offer's author ID. Returns all offers created by the user making the request
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.
Page size. Defaults to 20. Must not be greater than 100.
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.
ends_soon
csv
xlsx
Admin-only filter offers by visibility on the advertiser.
Filter offers by advertiser. Required when filtering as non-admin.
curl --request GET \
--get "https://api.metapic.dev/v2/offers?query=black+friday&statuses[]=deleted&store_ids[]=1&store_group_ids[]=1&created_by=15&or_id=1234&target_user_id=13&size=20&sort_by=created_at%3Adesc&custom_sort_by=ends_soon&format=xlsx&show_for_advertiser=&advertiser_id=123" \
--header "Authorization: {accessToken}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
{
"data": [
{
"id": 734,
"campaign_title": "Miss Felicita Bergstrom MD",
"campaign_text": "Et exercitationem et aliquid pariatur sunt nisi. Repellat nemo nostrum laborum distinctio sit sunt. Rerum sit ut illo quis aut.",
"has_product_seeding": false,
"has_onetime_payment": false,
"status": "active",
"image_url": "https://media.metapic.com/insecure/rs:fill:800:500/g:sm/dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDAzMzMzP3RleHQ9cXVpcw==",
"image": {
"key": "dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDAzMzMzP3RleHQ9cXVpcw==",
"url": "https://media.metapic.com/insecure/rs:fill:800:500/g:sm/dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDAzMzMzP3RleHQ9cXVpcw==",
"base_url": "https://media.metapic.com",
"base64": "dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDAzMzMzP3RleHQ9cXVpcw=="
},
"store_id": 2141,
"store_name": "Wyman LLC",
"store_logo_url": null,
"store_logo": null,
"currency": "SEK",
"token": "o4xq45dq59n820gg",
"type": "standard"
},
{
"id": 735,
"campaign_title": "Gianni Von",
"campaign_text": "Exercitationem inventore rerum natus magnam dicta nostrum. Esse a blanditiis voluptas. Ea aperiam non odit similique quasi.",
"has_product_seeding": false,
"has_onetime_payment": false,
"status": "active",
"image_url": "https://media.metapic.com/insecure/rs:fill:800:500/g:sm/dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDBiYjY2P3RleHQ9aW5jaWR1bnQ=",
"image": {
"key": "dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDBiYjY2P3RleHQ9aW5jaWR1bnQ=",
"url": "https://media.metapic.com/insecure/rs:fill:800:500/g:sm/dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDBiYjY2P3RleHQ9aW5jaWR1bnQ=",
"base_url": "https://media.metapic.com",
"base64": "dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDBiYjY2P3RleHQ9aW5jaWR1bnQ="
},
"store_id": 2142,
"store_name": "Franecki-Koelpin",
"store_logo_url": null,
"store_logo": null,
"currency": "GBP",
"token": "gjqs9ub7coyfmyi9",
"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
}
}
Uploads an image to a campaign.
The offer ID
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\": \"aut\"
}"
{
"id": 736,
"campaign_title": "Mrs. Brenna Trantow",
"campaign_text": "Ex eum repellat sit et. Dolorum eligendi omnis quia incidunt aut quia doloremque. Molestiae accusantium corrupti ad ut. Nihil eos molestias voluptatem et quasi saepe rerum.",
"has_product_seeding": false,
"has_onetime_payment": false,
"status": "active",
"image_url": "https://media.metapic.com/insecure/rs:fill:800:500/g:sm/dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDA0NGVlP3RleHQ9c2l0",
"image": {
"key": "dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDA0NGVlP3RleHQ9c2l0",
"url": "https://media.metapic.com/insecure/rs:fill:800:500/g:sm/dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDA0NGVlP3RleHQ9c2l0",
"base_url": "https://media.metapic.com",
"base64": "dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDA0NGVlP3RleHQ9c2l0"
},
"store_id": 2143,
"store_name": "Keeling, Muller and Maggio",
"store_logo_url": null,
"store_logo": null,
"currency": "GBP",
"token": "1hlx0ota4zontsm4",
"type": "standard"
}
The offer ID
curl --request POST \
"https://api.metapic.dev/v2/offers/15556/pause" \
--header "Authorization: {accessToken}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
{
"id": 737,
"campaign_title": "Mrs. Arielle Maggio IV",
"campaign_text": "Qui veritatis consequatur qui quo ad modi. Modi adipisci aperiam maiores reiciendis rerum. Officiis eos quisquam sit eius nobis magnam eius. Omnis assumenda quam vel odio.",
"has_product_seeding": false,
"has_onetime_payment": false,
"status": "active",
"image_url": "https://media.metapic.com/insecure/rs:fill:800:500/g:sm/dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDBlZTExP3RleHQ9aW5jaWR1bnQ=",
"image": {
"key": "dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDBlZTExP3RleHQ9aW5jaWR1bnQ=",
"url": "https://media.metapic.com/insecure/rs:fill:800:500/g:sm/dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDBlZTExP3RleHQ9aW5jaWR1bnQ=",
"base_url": "https://media.metapic.com",
"base64": "dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDBlZTExP3RleHQ9aW5jaWR1bnQ="
},
"store_id": 2144,
"store_name": "Hayes and Sons",
"store_logo_url": null,
"store_logo": null,
"currency": "GBP",
"token": "exdtauryy9itmrwh",
"type": "standard"
}
The offer ID
curl --request POST \
"https://api.metapic.dev/v2/offers/15556/unpause" \
--header "Authorization: {accessToken}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
{
"id": 738,
"campaign_title": "Mr. Thurman Daugherty",
"campaign_text": "Voluptatem consequatur minus eaque explicabo numquam et. Tempora dolores velit consectetur rerum laboriosam omnis voluptatem assumenda. Accusamus aut cumque rerum nulla pariatur saepe aspernatur.",
"has_product_seeding": false,
"has_onetime_payment": false,
"status": "active",
"image_url": "https://media.metapic.com/insecure/rs:fill:800:500/g:sm/dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDBkZGNjP3RleHQ9dGVtcG9yZQ==",
"image": {
"key": "dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDBkZGNjP3RleHQ9dGVtcG9yZQ==",
"url": "https://media.metapic.com/insecure/rs:fill:800:500/g:sm/dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDBkZGNjP3RleHQ9dGVtcG9yZQ==",
"base_url": "https://media.metapic.com",
"base64": "dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDBkZGNjP3RleHQ9dGVtcG9yZQ=="
},
"store_id": 2145,
"store_name": "Rice-Crona",
"store_logo_url": null,
"store_logo": null,
"currency": "PLN",
"token": "667n3x0kcf8ysw46",
"type": "standard"
}
Returns statistics about a specific campaign.
The offer ID
The start date for the stats period (YYYY-MM-DD)
The end date for the stats period (YYYY-MM-DD)
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\": \"2006-05-14\",
\"end_date\": \"2034-07-26\"
}"
cache-control
: no-cache, private
content-type
: application/json
x-ratelimit-limit
: 300
x-ratelimit-remaining
: 300
access-control-allow-origin
: *
{
"message": "Unauthenticated."
}
The ID of the user.
curl --request GET \
--get "https://api.metapic.dev/v2/users/12/offers" \
--header "Authorization: {accessToken}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"status\": \"open\",
\"name\": \"kbermbbhjflokri\"
}"
cache-control
: no-cache, private
content-type
: application/json
x-ratelimit-limit
: 300
x-ratelimit-remaining
: 300
access-control-allow-origin
: *
{
"message": "Unauthenticated."
}
Returns information about a specific campaign.
The offer ID
curl --request GET \
--get "https://api.metapic.dev/v2/offer-by-token/necessitatibus" \
--header "Authorization: {accessToken}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
{
"id": 750,
"campaign_title": "Ross Stark",
"campaign_text": "Impedit quia voluptas nemo ex iure ut. Quo in voluptas officiis praesentium quia. Amet nihil quod incidunt.",
"has_product_seeding": false,
"has_onetime_payment": false,
"status": "active",
"image_url": "https://media.metapic.com/insecure/rs:fill:800:500/g:sm/dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDA1NTExP3RleHQ9bmloaWw=",
"image": {
"key": "dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDA1NTExP3RleHQ9bmloaWw=",
"url": "https://media.metapic.com/insecure/rs:fill:800:500/g:sm/dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDA1NTExP3RleHQ9bmloaWw=",
"base_url": "https://media.metapic.com",
"base64": "dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDA1NTExP3RleHQ9bmloaWw="
},
"store_id": 2180,
"store_name": "Feil Ltd",
"store_logo_url": null,
"store_logo": null,
"currency": "EUR",
"token": "a0ouzgh6mm23q3af",
"traffic_sources_costs": [
{
"id": 220,
"source": 2,
"source_name": "TikTok",
"cpc": null,
"cpa": null,
"currency": "EUR"
}
],
"type": "standard"
}
The offer ID
curl --request GET \
--get "https://api.metapic.dev/v2/offers/15556/targets" \
--header "Authorization: {accessToken}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
cache-control
: no-cache, private
content-type
: application/json
x-ratelimit-limit
: 300
x-ratelimit-remaining
: 300
access-control-allow-origin
: *
{
"message": "Unauthenticated."
}
The offer ID
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\": [
16
],
\"user_tag_ids\": [
4
],
\"store_group_ids\": [
3
],
\"emails\": [
\"[email protected]\"
],
\"social_media_identifiers\": [
\"yhkelenxmbmshubmcvkfe\"
],
\"client_ids\": [
19
],
\"revenue_tier_ids\": [
15
]
}"
The ID of the offer.
The ID of the user.
curl --request GET \
--get "https://api.metapic.dev/v2/offers/14/users/16" \
--header "Authorization: {accessToken}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
cache-control
: no-cache, private
content-type
: application/json
x-ratelimit-limit
: 300
x-ratelimit-remaining
: 300
access-control-allow-origin
: *
{
"message": "Unauthenticated."
}
The ID of the offer.
curl --request GET \
--get "https://api.metapic.dev/v2/offers/18/participants" \
--header "Authorization: {accessToken}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"query\": \"xsft\",
\"status\": \"store_denied\",
\"include\": [
\"offer_comments_count\"
]
}"
{
"data": [
{
"id": null,
"offer_id": 740,
"user_id": 3536,
"display_name": null,
"clicks": 70,
"status": "denied",
"todo": null,
"payment_amount": null
},
{
"id": null,
"offer_id": 742,
"user_id": 3539,
"display_name": null,
"clicks": 381,
"status": "have_received",
"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
}
}
The ID of the offer.
The ID of the participant.
curl --request GET \
--get "https://api.metapic.dev/v2/offers/11/participants/20" \
--header "Authorization: {accessToken}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
{
"id": null,
"offer_id": 743,
"user_id": 3542,
"display_name": "[email protected]",
"clicks": 6490164,
"status": "second_prio",
"todo": null,
"payment_amount": null,
"social_media": [],
"tags": [
{
"id": 2105,
"name": "Francisco Sawayn",
"slug": "distinctio-praesentium",
"access_level": 1,
"store_id": 2151
}
]
}
The ID of the offer.
curl --request GET \
--get "https://api.metapic.dev/v2/offers/9/participants-stats" \
--header "Authorization: {accessToken}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"query\": \"nrzw\",
\"active\": false,
\"start_date\": \"2018-01-02\",
\"end_date\": \"2110-05-27\",
\"sort_by\": \"links_created:asc\"
}"
{
"data": [
{
"id": null,
"user_id": 3543,
"display_name": null,
"clicks": 0,
"status": "have_posted",
"links_created": null,
"estimated_gp": null,
"estimated_earning_to_cost_ratio": null
},
{
"id": null,
"user_id": 3545,
"display_name": null,
"clicks": 0,
"status": "open",
"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
}
}
The ID of the offer.
curl --request GET \
--get "https://api.metapic.dev/v2/offers/20/participants-count-by-click-activity" \
--header "Authorization: {accessToken}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"start_date\": \"2008-11-14\",
\"end_date\": \"2092-09-06\"
}"
cache-control
: no-cache, private
content-type
: application/json
x-ratelimit-limit
: 300
x-ratelimit-remaining
: 300
access-control-allow-origin
: *
{
"message": "Unauthenticated."
}
The ID of the offer.
The ID of the participant.
curl --request PATCH \
"https://api.metapic.dev/v2/offers/11/participants/11/update-status" \
--header "Authorization: {accessToken}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"status\": \"suggestion\"
}"
{
"id": null,
"offer_id": 746,
"user_id": null,
"display_name": "wpurdy",
"clicks": 135,
"status": "denied",
"pre_registered_identifier": "wpurdy",
"todo": null,
"payment_amount": null
}
The ID of the offer.
The ID of the participant.
curl --request PATCH \
"https://api.metapic.dev/v2/offers/15/participants/14/todo" \
--header "Authorization: {accessToken}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"todo\": [
{
\"key\": \"oswjxjm\",
\"value\": false
}
]
}"
{
"id": null,
"offer_id": 747,
"user_id": null,
"display_name": "[email protected]",
"clicks": 28,
"status": "denied",
"pre_registered_email": "[email protected]",
"todo": null,
"payment_amount": null
}
The ID of the offer.
The ID of the participant.
curl --request PATCH \
"https://api.metapic.dev/v2/offers/18/participants/14/overrides/clicks" \
--header "Authorization: {accessToken}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"click_limit\": 14
}"
{
"id": null,
"offer_id": 748,
"user_id": null,
"display_name": "celine.howe",
"clicks": 32950352,
"status": "done",
"pre_registered_identifier": "celine.howe",
"todo": null,
"payment_amount": null
}
The ID of the offer.
The ID of the participant.
curl --request PATCH \
"https://api.metapic.dev/v2/offers/19/participants/9/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
}
]
}"
{
"id": null,
"offer_id": 749,
"user_id": null,
"display_name": "mtowne",
"clicks": 0,
"status": "applied",
"pre_registered_identifier": "mtowne",
"todo": null,
"payment_amount": null
}
The ID of the user.
curl --request GET \
--get "https://api.metapic.dev/v2/offer-by-token/neque/users/2" \
--header "Authorization: {accessToken}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
cache-control
: no-cache, private
content-type
: application/json
access-control-allow-origin
: *
set-cookie
: metapic_session=eyJpdiI6IjJZSit6OXVZZTdyalJROXIyQVVuS1E9PSIsInZhbHVlIjoiejFJVUI1V2RaWDVZczVNcTRySXNITW1qdkhJUGhSK3hwalhEMnZLOG1EcDN3UXdxSlk5a0pUWW8vUFQ2R2lLdTVVYVcySDRjZzJTeXM3Wkd6Tm10SDFhazVyUmhaNG9ESTZxWXdQbzZOSloxYUdlQXZOV3BBMTZmRmFJVHRnemQiLCJtYWMiOiI1MWQ2Y2Q2MThkODU1ZGNmNWEwMmYyYjRmODg3ZGZmZTc3NWZiOWZiNDVmYzMwODRlZTYyYzJlYjZiOWZhNTAyIiwidGFnIjoiIn0%3D; expires=Wed, 17 Sep 2025 18:59:54 GMT; Max-Age=7200; path=/; secure; httponly
{
"message": "Unauthenticated."
}
This can only be performed by the user themselves.
The ID of the user.
curl --request POST \
"https://api.metapic.dev/v2/offer-by-token/quo/users/18/join" \
--header "Authorization: {accessToken}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
The ID of the offerUser.
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\": \"jvqagns\"
}"
The ID of the offerUser.
The ID of the comment.
The ID of the comment.
curl --request PUT \
"https://api.metapic.dev/v2/offer-users/1/comments/15" \
--header "Authorization: {accessToken}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"comment\": \"gktlsbbjsz\"
}"
The ID of the offerUser.
The ID of the comment.
The ID of the comment.
curl --request DELETE \
"https://api.metapic.dev/v2/offer-users/1/comments/17" \
--header "Authorization: {accessToken}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
curl --request GET \
--get "https://api.metapic.dev/v2/offer-users/deserunt/activities" \
--header "Authorization: {accessToken}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"include\": [
\"has_unread_notification\"
]
}"
cache-control
: no-cache, private
content-type
: application/json
x-ratelimit-limit
: 300
x-ratelimit-remaining
: 300
access-control-allow-origin
: *
{
"message": "Unauthenticated."
}
Paginated list of Return Ads
Page size. Defaults to 20. Must not be greater than 100.
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.
Query by return ad's advertiser group. Returns all return ads which belong to the given advertiser_group_ids
.
Query by return ad's advertiser. Returns all return ads which belong to the given advertiser_ids
.
deleted
ended
scheduled
paused
active
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.
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.
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
curl --request GET \
--get "https://api.metapic.dev/v2/return-ads?size=20&query=internal+name&advertiser_group_ids[]=1&advertiser_ids[]=1&statuses[]=paused&created_by=&or_id=1234&sort_by=current_clicks%3Aasc" \
--header "Authorization: {accessToken}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
{
"data": [
{
"id": 276,
"name": "Lenna Murray",
"advertiser_group_id": 4421,
"affiliate_link": {
"id": 837,
"url": "http://www.schiller.com/odit-ab-non-molestiae-delectus-neque",
"original_url": "http://www.hand.com/nostrum-non-aut-eum-beatae-magnam-facilis-sed.html",
"mtpc_url": "https://c.mtpc.se/837",
"user_id": 3551,
"country": "WS",
"provider": "purple",
"advertiser": {
"id": 2162,
"name": "Kunde-Bahringer"
}
},
"author_id": 3552,
"display_for_all_advertisers": false,
"status": "active",
"styles": null,
"image": {
"key": "dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDA3N2RkP3RleHQ9ZXQ=",
"url": "https://media.metapic.com/insecure/rs:fit:2000:2000/g:sm/dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDA3N2RkP3RleHQ9ZXQ=",
"base_url": "https://media.metapic.com",
"base64": "dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDA3N2RkP3RleHQ9ZXQ="
},
"starts_at": "2025-08-17 18:59:53",
"ends_at": "2025-10-17 18:59:53",
"stats": []
},
{
"id": 277,
"name": "Prof. Francisca Waelchi I",
"advertiser_group_id": 4424,
"affiliate_link": {
"id": 838,
"url": "https://luettgen.com/ducimus-voluptas-provident-laudantium-totam.html",
"original_url": "https://www.paucek.com/quasi-occaecati-quas-sit-quo-consequuntur-qui",
"mtpc_url": "https://c.mtpc.se/838",
"user_id": 3553,
"country": "IM",
"provider": "gray",
"advertiser": {
"id": 2163,
"name": "Stamm, Zboncak and Walter"
}
},
"author_id": 3554,
"display_for_all_advertisers": false,
"status": "active",
"styles": null,
"image": {
"key": "dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDA1NTQ0P3RleHQ9ZG9sb3JlbXF1ZQ==",
"url": "https://media.metapic.com/insecure/rs:fit:2000:2000/g:sm/dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDA1NTQ0P3RleHQ9ZG9sb3JlbXF1ZQ==",
"base_url": "https://media.metapic.com",
"base64": "dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDA1NTQ0P3RleHQ9ZG9sb3JlbXF1ZQ=="
},
"starts_at": "2025-08-17 18:59:53",
"ends_at": "2025-10-17 18:59:53",
"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
}
}
curl --request POST \
"https://api.metapic.dev/v2/return-ads" \
--header "Authorization: {accessToken}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"zmxnucoglrlhh\",
\"advertiser_group_id\": 6,
\"advertiser_id\": 7,
\"return_link\": \"https:\\/\\/advertiser.com\",
\"display_for_all_advertisers\": false,
\"advertiser_ids\": [
20
],
\"advertiser_category_ids\": [
19
],
\"styles\": {
\"color\": \"#ffffff\"
},
\"image_key\": \"dG1wL2ltYWdlLmpwZw==\",
\"starts_at\": \"2025-09-17T18:59:53\",
\"ends_at\": \"2089-12-16\",
\"click_limit\": 10,
\"view_limit\": 8
}"
{
"id": 278,
"name": "Felton Morar V",
"advertiser_group_id": 4427,
"affiliate_link": {
"id": 839,
"url": "http://wilderman.info/",
"original_url": "http://www.langosh.org/et-amet-vitae-explicabo-perspiciatis-tempore-molestiae",
"mtpc_url": "https://c.mtpc.se/839",
"user_id": 3555,
"country": "IM",
"provider": "blue",
"advertiser": {
"id": 2164,
"name": "Gerlach-Batz"
}
},
"author_id": 3556,
"display_for_all_advertisers": false,
"status": "active",
"styles": null,
"image": {
"key": "dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDBjYzExP3RleHQ9aWxsbw==",
"url": "https://media.metapic.com/insecure/rs:fit:2000:2000/g:sm/dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDBjYzExP3RleHQ9aWxsbw==",
"base_url": "https://media.metapic.com",
"base64": "dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDBjYzExP3RleHQ9aWxsbw=="
},
"starts_at": "2025-08-17 18:59:53",
"ends_at": "2025-10-17 18:59:53",
"stats": []
}
The ID of the return ad.
curl --request GET \
--get "https://api.metapic.dev/v2/return-ads/14" \
--header "Authorization: {accessToken}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
{
"id": 279,
"name": "Edison Mayer IV",
"advertiser_group_id": 4430,
"affiliate_link": {
"id": 840,
"url": "https://flatley.com/id-odio-voluptatem-odit-et-deserunt-magnam-architecto-quo.html",
"original_url": "http://zboncak.com/",
"mtpc_url": "https://c.mtpc.se/840",
"user_id": 3557,
"country": "GB",
"provider": "blue",
"advertiser": {
"id": 2165,
"name": "Parisian, Hackett and Greenfelder"
}
},
"author_id": 3558,
"display_for_all_advertisers": false,
"status": "active",
"styles": null,
"image": {
"key": "dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDBhYTAwP3RleHQ9ZWE=",
"url": "https://media.metapic.com/insecure/rs:fit:2000:2000/g:sm/dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDBhYTAwP3RleHQ9ZWE=",
"base_url": "https://media.metapic.com",
"base64": "dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDBhYTAwP3RleHQ9ZWE="
},
"starts_at": "2025-08-17 18:59:53",
"ends_at": "2025-10-17 18:59:53",
"stats": []
}
The ID of the return ad.
curl --request PUT \
"https://api.metapic.dev/v2/return-ads/4" \
--header "Authorization: {accessToken}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"dscavdqhunjjrdmelejwzuumx\",
\"return_link\": \"https:\\/\\/advertiser.com\",
\"display_for_all_advertisers\": true,
\"advertiser_ids\": [
2
],
\"advertiser_category_ids\": [
16
],
\"styles\": {
\"color\": \"#ffffff\"
},
\"image_key\": \"dG1wL2ltYWdlLmpwZw==\",
\"starts_at\": \"2025-09-17T18:59:53\",
\"ends_at\": \"2045-08-10\",
\"click_limit\": 10,
\"view_limit\": 1
}"
{
"id": 280,
"name": "Francesco Kulas V",
"advertiser_group_id": 4433,
"affiliate_link": {
"id": 841,
"url": "https://lubowitz.net/laboriosam-omnis-blanditiis-voluptate-autem-reiciendis.html",
"original_url": "http://mcdermott.net/",
"mtpc_url": "https://c.mtpc.se/841",
"user_id": 3559,
"country": "MO",
"provider": "lime",
"advertiser": {
"id": 2166,
"name": "Leffler, Kshlerin and Ortiz"
}
},
"author_id": 3560,
"display_for_all_advertisers": false,
"status": "active",
"styles": null,
"image": {
"key": "dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDBlZWFhP3RleHQ9ZWl1cw==",
"url": "https://media.metapic.com/insecure/rs:fit:2000:2000/g:sm/dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDBlZWFhP3RleHQ9ZWl1cw==",
"base_url": "https://media.metapic.com",
"base64": "dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDBlZWFhP3RleHQ9ZWl1cw=="
},
"starts_at": "2025-08-17 18:59:53",
"ends_at": "2025-10-17 18:59:53",
"stats": []
}
The ID of the return ad.
curl --request DELETE \
"https://api.metapic.dev/v2/return-ads/10" \
--header "Authorization: {accessToken}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
Deactivates Return Ad
The ID of the returnAd.
curl --request POST \
"https://api.metapic.dev/v2/return-ads/9/pause" \
--header "Authorization: {accessToken}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
{
"id": 281,
"name": "Foster Effertz",
"advertiser_group_id": 4436,
"affiliate_link": {
"id": 842,
"url": "http://pagac.com/non-iste-et-ipsa-omnis-consequatur-ab.html",
"original_url": "http://kassulke.org/",
"mtpc_url": "https://c.mtpc.se/842",
"user_id": 3561,
"country": "KI",
"provider": "navy",
"advertiser": {
"id": 2167,
"name": "Romaguera and Sons"
}
},
"author_id": 3562,
"display_for_all_advertisers": false,
"status": "active",
"styles": null,
"image": {
"key": "dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDBlZTExP3RleHQ9aXVyZQ==",
"url": "https://media.metapic.com/insecure/rs:fit:2000:2000/g:sm/dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDBlZTExP3RleHQ9aXVyZQ==",
"base_url": "https://media.metapic.com",
"base64": "dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDBlZTExP3RleHQ9aXVyZQ=="
},
"starts_at": "2025-08-17 18:59:53",
"ends_at": "2025-10-17 18:59:53",
"stats": []
}
The ID of the returnAd.
curl --request POST \
"https://api.metapic.dev/v2/return-ads/5/unpause" \
--header "Authorization: {accessToken}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
{
"id": 282,
"name": "Dereck Schinner",
"advertiser_group_id": 4439,
"affiliate_link": {
"id": 843,
"url": "http://bauch.info/nesciunt-omnis-voluptates-ut-quo",
"original_url": "http://www.beer.com/molestiae-vero-nihil-voluptatem-voluptatem",
"mtpc_url": "https://c.mtpc.se/843",
"user_id": 3563,
"country": "LS",
"provider": "aqua",
"advertiser": {
"id": 2168,
"name": "Green-Smith"
}
},
"author_id": 3564,
"display_for_all_advertisers": false,
"status": "active",
"styles": null,
"image": {
"key": "dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDBiYjQ0P3RleHQ9bmloaWw=",
"url": "https://media.metapic.com/insecure/rs:fit:2000:2000/g:sm/dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDBiYjQ0P3RleHQ9bmloaWw=",
"base_url": "https://media.metapic.com",
"base64": "dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDBiYjQ0P3RleHQ9bmloaWw="
},
"starts_at": "2025-08-17 18:59:53",
"ends_at": "2025-10-17 18:59:53",
"stats": []
}
List of Return Ads displayed for Advertiser by ID
The ID of the store.
curl --request GET \
--get "https://api.metapic.dev/v2/advertisers/3/return-ads" \
--header "Authorization: {accessToken}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
[
{
"id": 283,
"name": "Syble Dach DVM",
"advertiser_group_id": 4442,
"affiliate_link": {
"id": 844,
"url": "https://www.franecki.com/harum-cupiditate-officia-necessitatibus",
"original_url": "https://conn.biz/labore-vel-enim-non-cumque.html",
"mtpc_url": "https://c.mtpc.se/844",
"user_id": 3565,
"country": "ML",
"provider": "maroon",
"advertiser": {
"id": 2169,
"name": "Turner-Schaden"
}
},
"author_id": 3566,
"display_for_all_advertisers": false,
"status": "active",
"styles": null,
"image": {
"key": "dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDA3N2VlP3RleHQ9dm9sdXB0YXRlcw==",
"url": "https://media.metapic.com/insecure/rs:fit:2000:2000/g:sm/dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDA3N2VlP3RleHQ9dm9sdXB0YXRlcw==",
"base_url": "https://media.metapic.com",
"base64": "dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDA3N2VlP3RleHQ9dm9sdXB0YXRlcw=="
},
"starts_at": "2025-08-17 18:59:53",
"ends_at": "2025-10-17 18:59:53",
"stats": []
},
{
"id": 284,
"name": "Tianna Bednar",
"advertiser_group_id": 4445,
"affiliate_link": {
"id": 845,
"url": "http://www.gibson.com/earum-nisi-aliquam-aperiam-qui-asperiores-sit-nesciunt",
"original_url": "http://www.schuster.com/",
"mtpc_url": "https://c.mtpc.se/845",
"user_id": 3567,
"country": "MQ",
"provider": "white",
"advertiser": {
"id": 2170,
"name": "Keebler-Yundt"
}
},
"author_id": 3568,
"display_for_all_advertisers": false,
"status": "active",
"styles": null,
"image": {
"key": "dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDA2NmRkP3RleHQ9b21uaXM=",
"url": "https://media.metapic.com/insecure/rs:fit:2000:2000/g:sm/dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDA2NmRkP3RleHQ9b21uaXM=",
"base_url": "https://media.metapic.com",
"base64": "dXBsb2Fkcy9odHRwczovL3ZpYS5wbGFjZWhvbGRlci5jb20vNjQweDQ4MC5wbmcvMDA2NmRkP3RleHQ9b21uaXM="
},
"starts_at": "2025-08-17 18:59:53",
"ends_at": "2025-10-17 18:59:53",
"stats": []
}
]
List Shared Budgets for Store
The ID of the store.
curl --request GET \
--get "https://api.metapic.dev/v2/stores/12/shared-budgets" \
--header "Authorization: {accessToken}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
[
{
"id": 44,
"title": "Carmen Feil",
"amount": 4,
"amount_v2": {
"amount": "0.04",
"currency": "USD"
},
"consumed_budget": 0,
"currency": "USD"
},
{
"id": 45,
"title": "Ima McGlynn IV",
"amount": 3,
"amount_v2": {
"amount": "0.03",
"currency": "PLN"
},
"consumed_budget": 0,
"currency": "PLN"
}
]
Returns information about a specific budget.
The ID of the store.
The ID of the shared budget.
curl --request GET \
--get "https://api.metapic.dev/v2/stores/12/shared-budgets/3" \
--header "Authorization: {accessToken}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
{
"id": 46,
"title": "Dr. Irving Predovic",
"amount": 7,
"amount_v2": {
"amount": "0.07",
"currency": "PLN"
},
"consumed_budget": 0,
"currency": "PLN"
}
Updates existing budget.
The ID of the store.
The ID of the shared budget.
curl --request PUT \
"https://api.metapic.dev/v2/stores/10/shared-budgets/20" \
--header "Authorization: {accessToken}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"title\": \"Summer budget\",
\"amount\": 10000
}"
{
"id": 47,
"title": "Cade Smitham",
"amount": 9,
"amount_v2": {
"amount": "0.09",
"currency": "PLN"
},
"consumed_budget": 0,
"currency": "PLN"
}
The ID of the store.
The ID of the shared budget.
curl --request DELETE \
"https://api.metapic.dev/v2/stores/20/shared-budgets/14" \
--header "Authorization: {accessToken}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"
curl --request PUT \
"https://api.metapic.dev/v2/stores/17/payment" \
--header "Authorization: {accessToken}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"payment_setup_id\": \"sapiente\"
}"
Uploads an image to tmp folder.
curl --request POST \
"https://api.metapic.dev/v2/image-uploads" \
--header "Authorization: {accessToken}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"image\": \"odit\"
}"
Endpoint for querying & sorting all users.
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.
Query by user's client. Returns all users which belong to the given client_id
.
Query by user's store group. Returns all users which belong to the given store_group_id
.
Page size. Defaults to 20. Must not be greater than 100.
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.
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"
{
"data": [
{
"id": 3571,
"username": "jimmy36",
"display_name": "Brandon Gulgowski",
"email": "[email protected]",
"client_id": 3727
},
{
"id": 3572,
"username": "bernice.mckenzie",
"display_name": "Mckenna Donnelly",
"email": "[email protected]",
"client_id": 3728
}
],
"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
}
}
Query by user's advertiser group. Returns all users which belong to the given advertiser_group_id
.
a mix array of user emails and ids. Must not have more than 1000 items.
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"
Endpoint for querying & sorting all user tags.
Query by user tag's name. Returns all user tags whose name contains the given name
. Must not be greater than 255 characters.
Query by user tag's store. Returns all user tags which belong to the given store_id
.
Query by user tag's access levels. Returns all user tags which have the given access_levels
:
0
1
2
Page size. Defaults to 20. Must not be greater than 100.
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.
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"