Create Gig

Creates a new gig with specified parameters. The gig will be created in a non-production state and will need to be funded before it can be started.

Authentication

You MUST include an API key in the request headers:

x-api-key: your_api_key_here
  • Contact the Gigbot team to get your API key

  • Requests without a valid API key will be rejected with a 401 status code

  • Keep your API key secure and do not share it with others

Endpoint

POST https://gigbot.xyz/api/gigs/create

Input Parameters

{
  chain: "base",                               // Currently only Base network supported
  token_address: string,                       // ERC20 token contract address
  amount: number,                              // Reward amount in tokens (e.g., 10)
  start_time: string,                          // ISO datetime (e.g., "2025-03-01T15:00:00Z")
  duration: "1day" | "3days" | "1week" | "2weeks" | "3months" | "6months",
  gig_type: "mention" | "like" | "recast" | "boost" | "custom_bounty",
  how_to_earn?: string,                        // Required for `custom_bounty` else is Optional
  earning_criteria?: string,                   // Optional - will use default if not provided
  url?: string,                                // Required for like, recast, and boost tasks
  platform?: "farcaster" | "x"                 // Optional - defaults to "farcaster"
}

Examples

Mention Gig

Like Gig

Success Response (201)

Errors

401: Unauthorized

400: Validation Errors

404: Resource Not Found

500: Server Error

Important Notes

Duration Options

  • 1day: 24 hours (quick promotions)

  • 3days: 72 hours (weekend events)

  • 1week: 7 days (standard campaigns)

  • 2weeks: 14 days (longer campaigns)

  • 3months: 90 days (seasonal campaigns)

  • 6months: 180 days (long-term campaigns)

URL Format Requirements

  • Farcaster: https://farcaster.xyz/{username}/0x{hash}

  • X/Twitter: https://twitter.com/{username}/status/{tweet_id}

Platform Support

  • farcaster

  • x

Last updated