xAIcreator

API Guide for AI Agents

Copy prompts to give AI agents access to xAIcreator API

Quick Prompts (One per Tool)

Email Login

I want to get an xai-key using email and password. Follow the rules and return only the result fields.

Base URL: https://xaicreator.com
Note: Use camelCase field names in JSON bodies (for example, socialSetId). Tweets must be an array of objects with a content field (for example, [{"content":"..."}]).

Available tools:

email_login
Endpoint: POST /api/v1/auth/login
Input:
- email: string
- password: string

Output:
- api_key: string

Rules:
- Use curl for all API requests.
- Use header `-H "xai-key: <xai_key>"` for authentication (NOT x-api-key).
- A draft must be created before publishing or scheduling.
- If the user only provides xai_key or any required parameters are missing, use xai_key to fetch the required parameters.
- Always confirm with the user before publishing or scheduling.
- Do not publish without explicit user confirmation.
- Only return the final result fields listed above.

Twitter OAuth URL

I want to get the Twitter OAuth auth_url and state. Follow the rules and return only the result fields.

Base URL: https://xaicreator.com
Note: Use camelCase field names in JSON bodies.

Available tools:

twitter_oauth_url
Endpoint: POST /api/v1/auth/oauth/twitter/url
Input:
- redirect_uri: string

Output:
- auth_url: string
- state: string

Rules:
- Use curl for all API requests.
- Use header `-H "xai-key: <xai_key>"` for authentication (NOT x-api-key).
- A draft must be created before publishing or scheduling.
- If the user only provides xai_key or any required parameters are missing, use xai_key to fetch the required parameters.
- Always confirm with the user before publishing or scheduling.
- Do not publish without explicit user confirmation.
- Only return the final result fields listed above.

Twitter OAuth Callback

I want to exchange code and state for an xai-key. Follow the rules and return only the result fields.

Base URL: https://xaicreator.com
Note: Use camelCase field names in JSON bodies.

Available tools:

twitter_oauth_callback
Endpoint: POST /api/v1/auth/oauth/twitter/callback
Input:
- code: string
- state: string

Output:
- api_key: string

Rules:
- Use curl for all API requests.
- Use header `-H "xai-key: <xai_key>"` for authentication (NOT x-api-key).
- A draft must be created before publishing or scheduling.
- If the user only provides xai_key or any required parameters are missing, use xai_key to fetch the required parameters.
- Always confirm with the user before publishing or scheduling.
- Do not publish without explicit user confirmation.
- Only return the final result fields listed above.

User Information

I want to fetch the user's social sets and accounts. Follow the rules and return only the result fields.

Base URL: https://xaicreator.com

Available tools:

get_social_set
Endpoint: GET /api/v1/social-sets
Headers: xai-key: <your_xai_key>

Output:
- social_sets: array of socialSetId, name, accounts (array of account_id and platform)

Rules:
- Use curl for all API requests.
- Use header `-H "xai-key: <xai_key>"` for authentication (NOT x-api-key).
- A draft must be created before publishing or scheduling.
- If the user only provides xai_key or any required parameters are missing, use xai_key to fetch the required parameters.
- Always confirm with the user before publishing or scheduling.
- Do not publish without explicit user confirmation.
- Only return the final result fields listed above.

Create Draft

I want to create a draft. Follow the rules and return only the result fields.

Base URL: https://xaicreator.com
Note: Use camelCase field names in JSON bodies. Tweets must be an array of objects with a content field (for example, [{"content":"..."}]).

Available tools:

create_draft
Endpoint: POST /api/v1/twitter/drafts
Headers: xai-key: <your_xai_key>
Input:
- title: string
- tweets: array of objects with content field
- socialSetId: string

Output:
- draft_id: string

Rules:
- Use curl for all API requests.
- Use header `-H "xai-key: <xai_key>"` for authentication (NOT x-api-key).
- A draft must be created before publishing or scheduling.
- If the user only provides xai_key or any required parameters are missing, use xai_key to fetch the required parameters.
- Always confirm with the user before publishing or scheduling.
- Do not publish without explicit user confirmation.
- Only return the final result fields listed above.

Publish Draft

I want to publish a draft. Follow the rules and return only the result fields.

Base URL: https://xaicreator.com
Note: Use camelCase field names in JSON bodies.

Available tools:

publish_draft
Endpoint: POST /api/v1/twitter/publish
Headers: xai-key: <your_xai_key>
Input:
- draft_id: string
- account_ids: array of string

Output:
- success: boolean
- results: array of account_id and status

Rules:
- Use curl for all API requests.
- Use header `-H "xai-key: <xai_key>"` for authentication (NOT x-api-key).
- A draft must be created before publishing or scheduling.
- If the user only provides xai_key or any required parameters are missing, use xai_key to fetch the required parameters.
- Always confirm with the user before publishing or scheduling.
- Do not publish without explicit user confirmation.
- Only return the final result fields listed above.

Schedule Draft

I want to schedule a draft. Follow the rules and return only the result fields.

Base URL: https://xaicreator.com
Note: Use camelCase field names in JSON bodies.

Available tools:

schedule_draft
Endpoint: POST /api/v1/twitter/schedule
Headers: xai-key: <your_xai_key>
Input:
- draft_id: string
- scheduled_for: ISO 8601 datetime string
- targets: array of account_id and platform

Output:
- schedule_id: string
- scheduled_for: string

Rules:
- Use curl for all API requests.
- Use header `-H "xai-key: <xai_key>"` for authentication (NOT x-api-key).
- A draft must be created before publishing or scheduling.
- If the user only provides xai_key or any required parameters are missing, use xai_key to fetch the required parameters.
- Always confirm with the user before publishing or scheduling.
- Do not publish without explicit user confirmation.
- Only return the final result fields listed above.

View Schedules

I want to view scheduled posts. Follow the rules and return only the result fields.

Base URL: https://xaicreator.com

Available tools:

view_schedules
Endpoint: GET /api/v1/twitter/schedule
Headers: xai-key: <your_xai_key>

Output:
- schedules: array of draft_id, title, scheduled_for, targets (array of platform and account_id)

Rules:
- Use curl for all API requests.
- Use header `-H "xai-key: <xai_key>"` for authentication (NOT x-api-key).
- A draft must be created before publishing or scheduling.
- If the user only provides xai_key or any required parameters are missing, use xai_key to fetch the required parameters.
- Always confirm with the user before publishing or scheduling.
- Do not publish without explicit user confirmation.
- Only return the final result fields listed above.

Full Prompt

I want to use xAIcreator API tools to manage login, OAuth, social sets, drafts, publishing, and scheduling. If any required parameters are missing, fetch them via the API. Follow the rules and return only the result fields.

Base URL: https://xaicreator.com
Note: Use camelCase field names in JSON bodies. Tweets must be an array of objects with a content field (for example, [{"content":"..."}]).

Available tools:

email_login
Endpoint: POST /api/v1/auth/login
Input:
- email: string
- password: string

Output:
- api_key: string

---

twitter_oauth_url
Endpoint: POST /api/v1/auth/oauth/twitter/url
Input:
- redirect_uri: string

Output:
- auth_url: string
- state: string

---

twitter_oauth_callback
Endpoint: POST /api/v1/auth/oauth/twitter/callback
Input:
- code: string
- state: string

Output:
- api_key: string

---

get_social_set
Endpoint: GET /api/v1/social-sets
Headers: xai-key: <your_xai_key>

Output:
- social_sets: array of socialSetId, name, accounts (array of account_id and platform)

---

create_draft
Endpoint: POST /api/v1/twitter/drafts
Headers: xai-key: <your_xai_key>
Input:
- title: string
- tweets: array of objects with content field
- socialSetId: string

Output:
- draft_id: string

---

publish_draft
Endpoint: POST /api/v1/twitter/publish
Headers: xai-key: <your_xai_key>
Input:
- draft_id: string
- account_ids: array of string

Output:
- success: boolean
- results: array of account_id and status

---

schedule_draft
Endpoint: POST /api/v1/twitter/schedule
Headers: xai-key: <your_xai_key>
Input:
- draft_id: string
- scheduled_for: ISO 8601 datetime string
- targets: array of account_id and platform

Output:
- schedule_id: string
- scheduled_for: string

---

view_schedules
Endpoint: GET /api/v1/twitter/schedule
Headers: xai-key: <your_xai_key>

Output:
- schedules: array of draft_id, title, scheduled_for, targets (array of platform and account_id)

Rules:
- Use curl for all API requests.
- Use header `-H "xai-key: <xai_key>"` for authentication (NOT x-api-key).
- A draft must be created before publishing or scheduling.
- If the user only provides xai_key or any required parameters are missing, use xai_key to fetch the required parameters.
- Always confirm with the user before publishing or scheduling.
- Do not publish without explicit user confirmation.
- Only return the final result fields listed above.