eWeWasl Docs

Introduction

Welcome to the eWasl API — programmatic social media management.

Overview

The eWasl API lets you programmatically create, schedule, and publish social media posts across multiple platforms. Integrate eWasl into your applications, scripts, CI/CD pipelines, or AI assistants.

What you can do

  • Create posts — Draft, schedule, or publish content to Twitter/X, Instagram, LinkedIn, Facebook, TikTok, YouTube, Pinterest, and Snapchat.
  • List & filter posts — Retrieve your post history with pagination, status filters, and platform filters.
  • Schedule posts — Queue posts for future publishing with intelligent staggered delivery.
  • Manage connections — View connected social accounts, check token health, and verify platform access.
  • Manage API keys — Create, list, and revoke API keys for programmatic access.

API Versions

VersionBase URLStatus
V1 (recommended)https://app.ewasl.com/api/v1Current
Legacyhttps://app.ewasl.com/api/socialDeprecated

All new integrations should use the V1 API. The legacy endpoints remain functional but will not receive new features.

Authentication

All API requests require a valid API key. Include it in the Authorization header:

Authorization: Bearer ewasl_YOUR_API_KEY

API keys can be created from your eWasl Settings Dashboard. See the Authentication guide for details.

Rate Limiting

The API implements rate limiting to ensure fair usage and system stability.

PlanRate Limit
Free100 requests / hour
Pro1,000 requests / hour
EnterpriseCustom limits

When you exceed the rate limit, the API returns a 429 Too Many Requests response with a Retry-After header indicating how many seconds to wait.

Error Format

All errors follow a consistent JSON envelope:

{
  "error": {
    "code": "ERROR_CODE",
    "message": "Human-readable description of what went wrong.",
    "details": {}
  }
}

Common Error Codes

CodeHTTP StatusDescription
UNAUTHORIZED401Missing or invalid API key
FORBIDDEN403Key lacks the required permission
RATE_LIMITED429Too many requests — check Retry-After header
VALIDATION_ERROR400Invalid request body — see details for field errors
INVALID_ACCOUNTS400One or more accountIds are invalid or don't belong to you
CONTENT_TOO_LONG400Post content exceeds a platform's character limit
LIMIT_EXCEEDED403Post limit exceeded for your subscription plan
INTERNAL_ERROR500Unexpected server error

Pagination

List endpoints return paginated results using offset-based pagination:

{
  "data": [ ... ],
  "meta": {
    "total": 245,
    "offset": 0,
    "limit": 50,
    "next": "/api/v1/posts?offset=50&limit=50"
  }
}

Use the offset and limit query parameters to navigate pages. The meta.next field provides the URL for the next page, or null if there are no more results.

MCP Integration

eWasl supports the Model Context Protocol (MCP), allowing AI assistants like Claude, ChatGPT, and Cursor to manage your social media through natural conversation. See the MCP Setup Guide for instructions.

Supported Platforms

PlatformCreateScheduleCharacter Limit
Twitter / XYesYes280
InstagramYesYes2,200
LinkedInYesYes3,000
FacebookYesYes63,206
TikTokYesYes2,200
YouTubeYesYes5,000
PinterestYesYes500
SnapchatYesYes250

On this page