X (Twitter)X (Twitter)Social

Post a tweet to your own X account

x.x.post.create

Publish a post to your own X account

Price
$0.015/callAt provider cost
Success rate
99.5%Last 30 days · 919 calls
Latency p50
319 msp95 626 ms
Last verified
—Not verified yet
POSThttps://toolswitch.dev/v1/tools/x.x.post.createPreview
Try onlineComing soonProvider docs ↗
  • Uses platform quota
  • Synchronous response
  • Reads public data

Parameters

needs the `write` capability (tweet.write); a connection made with `read` answers 403. Success is HTTP 201 with {data: {id, text}} — the public URL is https://x.com/<handle>/status/<data.id>, which the API does not return. Images/video are out of reach, see the block comment above

This tool has no parameters. See provider docs ↗ Provider docs

Code samples

Replace $TOOLSWITCH_KEY with the key you created in the console.

Preview
curl -X POST 'https://toolswitch.dev/v1/tools/x.x.post.create' \
  -H "X-Toolswitch-Key: $TOOLSWITCH_KEY"

This gateway API is in preview; its URL and authentication may change. The example parameters are sample data. Calls are billed at $0.015/call, including the service fee.