Skip to main content

Create a campaign

POST 

/api/campaign

Create a new campaign with the provided information

Request

Body

required
    name stringrequired

    The name of the campaign.

    influencer_id uuidrequired

    The id of the influencer.

    details stringrequired

    The details of the campaign.

    image urlrequired

    Optional main image of the campaign

    images object[]

    An array of images associated with the campaign. Image URLs should be obtained by uploading images using the /api/image method.

  • Array [
  • url urlrequired

    The URL of the campaign image/video.

    caption stringrequired

    The caption of the campaign image/video.

  • ]
  • videos object[]

    An array of videos associated with the campaign. Video URLs should be obtained by uploading videos using the /api/video method.

  • Array [
  • url urlrequired

    The URL of the campaign image/video.

    caption stringrequired

    The caption of the campaign image/video.

  • ]
  • budget objectrequired

    Amount object

    value stringrequired

    The value of the amount.

    currency stringrequired

    The currency of the amount.

    product_id uuidrequired

    The id of the product.

    company_id uuidrequired

    The unique identifier of the company.

    categories CampaignCategory[]required

    Possible values: [art_and_design, automobiles, beauty, beverages, books_and_literature, career_and_business, children_toys_and_games, diy, e_commerce, education, events_and_entertainment, fashion, finance_and_insurance, food, gardening_and_outdoor, health_and_fitness, hobbies_and_crafts, home_and_living, home_appliences, legal_services, mobile_games, news, non_profit_and_charity, office_supplies, parenting_and_family_products, personal_development, pets, photography, podcasts, real_estate, social_media_tools, sports_and_outdoor_activities, streaming, subscription_box, technology, travel, video_games, wedding]

    The categories of the campaign.

    restrictions CampaignRestriction[]required

    Possible values: [eco_friendly, no_animal_testing, halal, kosher, vegan, vegetarian, lgbtq, diverse_leadership]

    The restrictions of the campaign.

Responses

Created campaign

Schema
    id uuidrequired

    The unique identifier of the campaign.

    name stringrequired

    The name of the campaign.

    influencer_id uuidrequired

    The id of the influencer.

    image urlrequired

    Optional main image of the campaign

    company_id uuidrequired

    The unique identifier of the company.

    details stringrequired

    The details of the campaign.

    images object[]required

    An array of images associated with the campaign.

  • Array [
  • id uuidrequired

    The unique identifier of the campaign media.

    campaign_id uuidrequired

    The unique identifier of the campaign.

    url urlrequired

    The URL of the campaign media.

    status CampaignMediaStatusrequired

    Possible values: [waiting_user_approval, approved, declined]

    Campaign media status

    caption stringrequired

    The caption of the campaign media.

  • ]
  • videos object[]required

    An array of videos associated with the campaign.

  • Array [
  • id uuidrequired

    The unique identifier of the campaign media.

    campaign_id uuidrequired

    The unique identifier of the campaign.

    url urlrequired

    The URL of the campaign media.

    status CampaignMediaStatusrequired

    Possible values: [waiting_user_approval, approved, declined]

    Campaign media status

    caption stringrequired

    The caption of the campaign media.

  • ]
  • budget objectrequired

    Amount object

    value stringrequired

    The value of the amount.

    currency stringrequired

    The currency of the amount.

    product_id uuidrequired

    The id of the product.

    status CampaignStatusrequired

    Possible values: [created, running, completed, stopped]

    Campaign status

    categories CampaignCategory[]required

    Possible values: [art_and_design, automobiles, beauty, beverages, books_and_literature, career_and_business, children_toys_and_games, diy, e_commerce, education, events_and_entertainment, fashion, finance_and_insurance, food, gardening_and_outdoor, health_and_fitness, hobbies_and_crafts, home_and_living, home_appliences, legal_services, mobile_games, news, non_profit_and_charity, office_supplies, parenting_and_family_products, personal_development, pets, photography, podcasts, real_estate, social_media_tools, sports_and_outdoor_activities, streaming, subscription_box, technology, travel, video_games, wedding]

    The categories of the campaign.

    restrictions CampaignRestriction[]required

    Possible values: [eco_friendly, no_animal_testing, halal, kosher, vegan, vegetarian, lgbtq, diverse_leadership]

    The restrictions of the campaign.

    start_time_utc date-timerequired

    The start time of the campaign.

    end_time_utc date-timerequired

    The end time of the campaign.

Loading...