Overview

SwiftSend is a REST API service for sending SMS and EMAIL messages.
The API provides a simple, reliable interface for sending messages to single or multiple recipients, with built‑in rate limiting and comprehensive error handling.

Base URL:
https://fakecomworld.endpoint/swiftsend


Authentication

SwiftSend uses API key authentication.
Include your API key in the request headers.


Required Headers

HeaderTypeRequiredDescription
X-API-KEYstringYesYour unique API key for authentication
X-STUDENT-GROUPstringYesYour student group identifier
Content-TypestringYesMust be application/json

Endpoints

Send Message

Send an SMS or EMAIL message to one or more recipients.

Endpoint:
POST /swiftsend

Request Body:

{
  "type": "SMS",
  "recipients": [
    "+31612345678",
    "+31698765432"
  ],
  "content": "Your message content here"
}

Request Schema

FieldTypeRequiredDescription
typeenumYesMessage type: "SMS" or "EMAIL"
recipientsstring[]YesArray of recipient addresses (phone numbers or email addresses)
contentstringYesThe message content to send

Success Response (200 OK)

{
  "success": true,
  "messageId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
  "failedRecipients": [],
  "error": null
}

Partial Success Response (207 Multi-Status)

{
  "success": true,
  "messageId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
  "failedRecipients": [
    "+31698765432"
  ],
  "error": "Some recipients could not be reached"
}

Response Schema

FieldTypeDescription
successbooleanIndicates if the message was sent successfully
messageIdstringUnique identifier for the sent message (UUID format)
failedRecipientsstring[]Recipients that failed to receive the message
errorstringError message if applicable, null on success

Error Responses

  • 207 Multi-Status — Partial Success (check body)
  • 401 Unauthorized — Missing or invalid API key
  • 400 Bad Request — Missing required field
  • 400 Bad Request — Missing X-STUDENT-GROUP
  • 429 Too Many Requests — Rate limit exceeded (check headers)
  • 500 Internal Server Error
  • 503 Service Unavailable
  • 504 Gateway Timeout

Rate Limiting

SwiftSend enforces rate limiting to ensure fair usage.

Defaults:

  • 10 requests per minute per student group
  • Rate limit window: 60 seconds (sliding window)

When exceeded, a 429 Too Many Requests response is returned.
Check the response headers for additional rate-limit details.


Response Times

SwiftSend simulates realistic network conditions and outages.


Support

For issues or questions, please contact your instructor or check the project documentation.