{"uid":"cap_6j9rS3PYxTBs8pYtqIOet","slug":"stableinfluencer-dev-ef82d32e","name":"StableInfluencer Campaign Creation","description":"Create a paid StableInfluencer campaign backed by one TokPortal bundle. Use for new account creation, optional account profile setup, optional initial video slots/configuration, and optional immediate publish; call GET /api/campaigns first to avoid duplicate paid bundles.","url":"https://stableinfluencer.dev/api/campaigns","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["platform","publish_mode","options"],"properties":{"title":{"type":"string","maxLength":200},"videos":{"type":"array","items":{"type":"object","required":["type","description","target_publish_date"],"properties":{"name":{"type":"string","maxLength":200},"type":{"enum":["video","carousel"],"type":"string"},"position":{"type":"integer","maximum":9007199254740991,"minimum":1},"video_url":{"type":"string","format":"uri"},"description":{"type":"string","maxLength":2200,"minLength":1},"external_ref":{"type":"string","maxLength":200},"carousel_images":{"type":"array","items":{"type":"string","minLength":1}},"tiktok_sound_url":{"type":"string","format":"uri"},"instagram_location":{"type":"string"},"volume_added_sound":{"type":"integer","maximum":200,"minimum":0},"target_publish_date":{"type":"string","minLength":10},"editing_instructions":{"type":"string"},"instagram_audio_name":{"type":"string"},"volume_original_sound":{"type":"integer","maximum":200,"minimum":0},"instagram_add_to_story":{"type":"boolean"},"instagram_content_type":{"enum":["reel","post"],"type":"string"},"instagram_collaborators":{"type":"array","items":{"type":"string","minLength":1}}},"additionalProperties":false},"maxItems":200},"account":{"type":"object","required":["username","display_name","biography","profile_picture_url"],"properties":{"username":{"type":"string","pattern":"^[a-zA-Z0-9_.]+$","maxLength":24,"minLength":1},"biography":{"type":"string","maxLength":80,"minLength":1},"link_in_bio":{"type":"string","format":"uri"},"display_name":{"type":"string","maxLength":30,"minLength":1},"profile_picture_url":{"type":"string","minLength":1},"niche_warming_instructions":{"type":"string","minLength":1}},"additionalProperties":false},"country":{"type":"string","maxLength":3,"minLength":2},"options":{"type":"object","default":{"moderation":false,"deep_warming":false,"niche_warming":false,"edits_quantity":0,"auto_finalize_videos":true},"required":["niche_warming","deep_warming","moderation","edits_quantity","auto_finalize_videos"],"properties":{"moderation":{"type":"boolean","default":false,"description":"Optional TokPortal comment moderation add-on for the bundle."},"deep_warming":{"type":"boolean","default":false,"description":"Optional higher-cost TokPortal account-warming add-on. Instagram only, mutually exclusive with niche_warming. TokPortal does not document exact warming actions or guarantees."},"niche_warming":{"type":"boolean","default":false,"description":"Optional lower-cost TokPortal account-warming add-on. Use when the account should be prepared around a target niche before publishing. Requires niche_warming_instructions."},"edits_quantity":{"type":"integer","default":0,"maximum":9007199254740991,"minimum":0,"description":"Number of TokPortal video edit slots to buy for this bundle."},"moderation_notice":{"type":"string","minLength":1},"auto_finalize_videos":{"type":"boolean","default":true},"niche_warming_instructions":{"type":"string","minLength":1,"description":"Plain-language niche guidance for TokPortal warming, for example: Engage with fitness, running, and wellness content."}},"additionalProperties":false},"platform":{"enum":["tiktok","instagram"],"type":"string"},"video_slots":{"type":"integer","maximum":500,"minimum":1},"external_ref":{"type":"string","maxLength":200},"publish_mode":{"enum":["draft","publish"],"type":"string","default":"draft"},"existing_account_id":{"type":"string","minLength":1}},"additionalProperties":false},"type":{"type":"string","const":"http"},"method":{"enum":["POST","PUT","PATCH"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"2500","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$34/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"34","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"34","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_3SUJWRc2VX8n6D8iKoZKu","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"34","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Creates a paid influencer campaign backed by a TokPortal bundle, supporting new account creation, profile setup, video slot configuration, and optional immediate publishing.","exampleAgentPrompt":"Create a new StableInfluencer campaign for my brand 'NovaBrew Coffee' with a profile setup, 3 video slots configured, and publish it immediately once the TokPortal bundle is ready.","exampleUseCases":null,"resultDescription":"Returns the newly created campaign record including campaign ID, associated TokPortal bundle reference, account details, profile configuration status, video slot assignments, and publish status. The $34 USDC payment is charged per call.","failureModes":["Duplicate paid bundle if GET /api/campaigns not called first to check existing campaigns","Payment failure due to insufficient USDC balance","Invalid profile configuration parameters causing 400 error","TokPortal bundle creation failure causing campaign rollback","Publish failure if video slots are not properly configured before immediate publish is requested"],"whenToPreferThis":"Use this endpoint when you need to create a brand-new influencer campaign backed by a TokPortal bundle from scratch, optionally with profile setup and video slots configured in one call. Always call GET /api/campaigns first to check for existing campaigns to avoid paying $34 USDC for a duplicate bundle.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T06:37:16.774Z","isFirstParty":false}