CosmicChat
Toggle sidebar
1 month ago

API Reference

Complete API documentation for CosmicChat platform

avatar
seddik Author

CosmicChat API Reference

Complete API documentation for developers integrating with CosmicChat.

Authentication

All API requests require authentication using Bearer tokens generated from your account dashboard.

Authorization: Bearer YOUR_API_TOKEN

Base URL

https://api.cosmictal.com/v1

Endpoints

Conversations

GET /conversations - List all conversations
GET /conversations/{id} - Get conversation details
POST /conversations - Create new conversation

Messages

GET /conversations/{id}/messages - List messages
POST /messages - Send message

Orders

GET /orders - List orders
GET /orders/{id} - Get order details
POST /orders - Create order

Products

GET /products - List products
POST /products - Create product
PUT /products/{id} - Update product

Webhooks

CosmicChat sends webhook events for important actions. Configure webhook URLs in your dashboard.

Events

  • message.received
  • order.created
  • conversation.assigned

Rate Limits

API requests are limited to 100 requests per minute per token. Exceeding limits returns HTTP 429.

SDKs

Official SDKs coming soon for PHP, Python, Node.js, and Ruby.