đ API Endpoints
đŦ Instant Messaging
Chat and messaging system endpoints. 3 endpoints available.
đ¯ Quick Stats
- Total Endpoints: 3
- Base URL:
https://api.market.decenctype.com - Authentication: Bearer Token / API Key
đ Methods
- đ POST: 2 endpoints
- đ GET: 1 endpoints
đ Authentication
All endpoints in this section use the same authentication methods. Choose one:
đ Bearer Token (Recommended)
For user session authentication
Add to request headers:
Authorization: Bearer YOUR_TOKENđ§ API Key
For server-side authentication
Add to request headers:
X-API-KEY: YOUR_API_KEYâ ī¸ Important: Do not use both authentication methods simultaneously in the same request.
đ Endpoints Overview
| Method | Endpoint | Description |
|---|---|---|
đ POST | /im/register | Register IM users |
đ POST | /im/send | Send IM message |
đ GET | /im/{provider}/history | Fetch chat history |
đ Detailed Documentation
Register IM users
POST
/im/registerFull URL
https://api.market.decenctype.com/im/registerđ Authentication: Required (see authentication section above)
Description: Register IM users
Operation ID: registerUser
Response Status:
- â 201: Success
đ Example Request
curl -X POST "https://api.market.decenctype.com/im/register" \\
-H "Authorization: Bearer YOUR_TOKEN" \\
-H "Content-Type: application/json"Send IM message
POST
/im/sendFull URL
https://api.market.decenctype.com/im/sendđ Authentication: Required (see authentication section above)
Description: Send IM message
Operation ID: sendMessage
Response Status:
- â 201: Success
đ Example Request
curl -X POST "https://api.market.decenctype.com/im/send" \\
-H "Authorization: Bearer YOUR_TOKEN" \\
-H "Content-Type: application/json"Fetch chat history
GET
/im/{provider}/historyFull URL
https://api.market.decenctype.com/im/{provider}/historyđ¯ Path Parameters
provider(string) - â Required: No description
Description: Fetch chat history
Operation ID: getChatHistory
Response Status:
- â 200: Success
đ Example Request
curl -X GET "https://api.market.decenctype.com/im/example-id/history" \\
-H "Authorization: Bearer YOUR_TOKEN" \\
-H "Content-Type: application/json"