API Documentation

Build on top of Idea2Post. Generate content, hooks, and publish programmatically.

API access requires the Agency plan ($199/mo) or the API add-on. After upgrading, generate your API key at Account Settings. Full endpoint documentation, code samples, and SDKs are available to API subscribers.

Overview

The Idea2Post API is a RESTful JSON API. All requests require an Authorization: Bearer YOUR_API_KEY header. Responses are JSON. Credits are deducted per call, same rates as the dashboard.

Base URL: https://api.idea2post.mycoach.ing/v1

Authentication

curl https://api.idea2post.mycoach.ing/v1/hooks \
  -H "Authorization: Bearer i2p_sk_live_abc123..." \
  -H "Content-Type: application/json" \
  -d '{"idea": "5 mistakes coaches make on landing pages"}'

Rate Limits

PlanRequests/minRequests/day
Agency605,000
API add-on302,000

Rate limit headers are included in every response: X-RateLimit-Remaining, X-RateLimit-Reset.

Available Endpoints

Generate Hooks

POST /v1/hooks

Generate 10-20 viral hooks from an idea. Costs 1 credit.

ParameterTypeDescription
ideastringrequiredThe raw idea or topic to generate hooks for
countintegeroptionalNumber of hooks (default: 10, max: 20)
stylesarrayoptionalHook styles: viral, curiosity, story, expert, sales
tonestringoptionalContent tone (default: expert)

Example response:

{
  "hooks": [
    {
      "style": "viral",
      "hook": "I pasted 1 YouTube link into AI and got 20 posts in 2 minutes.",
      "score": 92
    },
    {
      "style": "curiosity",
      "hook": "90% of coaches make this exact landing page mistake...",
      "score": 88
    }
  ],
  "credits_used": 1,
  "credits_remaining": 2847
}

Generate Content

POST /v1/content

Generate multi-format content from an idea. Cost depends on formats selected.

ParameterTypeDescription
ideastringrequiredSource text, idea, or transcript
formatsarrayrequiredOutput formats: blog (3c), facebook (1c), twitter (1c), linkedin (1c), email (1c), script (2c), instagram (1c), thread (1c), cta (1c), faq (1c)
tonestringoptionalexpert, story, friendly, authority, sales, bold
audiencestringoptionalTarget audience description
languagestringoptionalen (default) or vi
preset_idintegeroptionalWriting preset ID
project_idintegeroptionalProject/workspace ID

Example response:

{
  "items": [
    {
      "format": "blog",
      "title": "Why 73% of Landing Pages Fail in the First 3 Seconds",
      "body": "Your landing page has one job: stop the scroll...",
      "cta": "Download our free landing page audit checklist.",
      "viral_score": 87,
      "hook_strength": "strong",
      "seo_ready": true,
      "badges": ["Viral 87%", "Hook Strong", "SEO Ready"]
    },
    {
      "format": "facebook",
      "title": "...",
      "body": "...",
      "..."
    }
  ],
  "credits_used": 4,
  "credits_remaining": 2843
}

Full response schema, error codes, and pagination details available to API subscribers.

Upgrade to Agency →

Additional Endpoints

The following endpoints are documented in full for API subscribers:

POST /v1/content/youtube

Extract YouTube transcript and generate content. 8 credits.

POST /v1/content/image

Generate a DALL-E 3 cover image for a content piece. 5 credits.

GET /v1/content/{id}

Retrieve a generated content piece by ID.

GET /v1/content

List your generated content with pagination and filters.

POST /v1/publish

Schedule a content piece for publishing to a connected account. 1 credit.

GET /v1/publish/accounts

List your connected publishing accounts.

GET /v1/publish/jobs

List publish queue with status tracking.

POST /v1/visibility/scan

Run an AI Visibility scan for your brand. 5 credits.

GET /v1/credits

Check your current credit balance (monthly + shared).

GET /v1/presets

List available writing presets (system + custom).

DELETE /v1/content/{id}

Delete a generated content piece.

API is in Public Beta

The API is functional and stable, but we may make breaking changes during the beta period. We'll notify all API users via email before any breaking change. Subscribe to our changelog for updates.

SDKs & Integrations

Coming soon:

Need Help?

API questions? Reach out at helpdesk.mycoach.ing or check the FAQ.