/services/platforms/v1/support/tickets/store
Auth
Rate limit: 10 requests per user per 5 minutes.
| Field | Type | Required | Description | Example |
|---|---|---|---|---|
channel_slug |
string
max: 50 |
Yes | feedback |
|
subject |
string
max: 255 |
Yes | Cannot connect my Google Ads account |
|
message |
string
max: 5000 |
Yes | I have been trying to connect my Google Ads account but keep getting an error. |
|
priority |
string|null
low, normal, high, urgent |
No | normal |
|
rating |
integer|null
min: 1 max: 5 |
No | 5 |
|
type |
string|null
suggestion, bug, other |
No | bug |
|
tool_key |
string|null
max: 100 |
No | ads_protection |
|
page |
string|null
max: 500 |
No | https://example.com/wm/ads-protection/dashboard |
|
user_agent |
string|null
max: 1000 |
No | Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 |
| Header | Type | Description | Example |
|---|---|---|---|
X-RateLimit-Limit |
integer | Maximum number of requests allowed per minute | 60 |
X-RateLimit-Remaining |
integer | Number of requests remaining in the current window | 57 |
| Field | Type | Description |
|---|---|---|
error |
boolean | |
message |
string | |
data |
mixed[] |
| Header | Type | Description | Example |
|---|---|---|---|
X-RateLimit-Limit |
integer | Maximum number of requests allowed per minute | 60 |
X-RateLimit-Remaining |
integer | Number of requests remaining in the current window | 57 |
| Field | Type | Description |
|---|---|---|
error |
boolean | |
message |
string | |
data |
object | |
data.id |
integer | |
data.ticket_number |
string|null | |
data.channel_id |
integer | |
data.project_id |
integer|null | |
data.user_id |
integer|null | |
data.assigned_to |
integer|null | |
data.subject |
string | |
data.message |
string | |
data.status |
string | |
data.priority |
string | |
data.rating |
integer|null | |
data.type |
string|null | |
data.tool_key |
string|null | |
data.page |
string|null | |
data.ip_address |
string|null | |
data.user_agent |
string|null | |
data.metadata |
array|null | |
data.migrated_from_id |
integer|null | |
data.created_at |
string|null (date-time) | |
data.updated_at |
string|null (date-time) |
| Header | Type | Description | Example |
|---|---|---|---|
X-RateLimit-Limit |
integer | Maximum number of requests allowed per minute | 60 |
X-RateLimit-Remaining |
integer | Number of requests remaining in the current window | 57 |
| Field | Type | Description |
|---|---|---|
error |
boolean | |
message |
string | |
data |
mixed[] |
| Header | Type | Description | Example |
|---|---|---|---|
X-RateLimit-Limit |
integer | Maximum number of requests allowed per minute | 60 |
X-RateLimit-Remaining |
integer | Number of requests remaining in the current window | 57 |
| Field | Type | Description |
|---|---|---|
error |
boolean | |
message |
string | |
data |
mixed[] |
| Header | Type | Description | Example |
|---|---|---|---|
X-RateLimit-Limit |
integer | Maximum number of requests allowed per minute | 60 |
X-RateLimit-Remaining |
integer | Number of requests remaining in the current window | 57 |
| Field | Type | Description |
|---|---|---|
message |
string |
| Field | Type | Description |
|---|---|---|
message |
string | Errors overview. |
errors |
object | A detailed description of each field that failed validation. |
| Header | Type | Description | Example |
|---|---|---|---|
X-RateLimit-Limit |
integer | Maximum number of requests allowed per minute | 60 |
X-RateLimit-Remaining |
integer | Number of requests remaining in the current window | 57 |
| Field | Type | Description |
|---|---|---|
error |
boolean | |
message |
string |
curl -X POST "https://api.wemasy.nl/api/services/platforms/v1/support/tickets/store" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-d '{
"channel_slug": "feedback",
"subject": "Cannot connect my Google Ads account",
"message": "I have been trying to connect my Google Ads account but keep getting an error.",
"priority": "normal",
"rating": 5,
"type": "bug",
"tool_key": "ads_protection",
"page": "https://example.com/wm/ads-protection/dashboard",
"user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36"
}'
fetch('https://api.wemasy.nl/api/services/platforms/v1/support/tickets/store', {
method: 'POST',
headers: {
'Authorization': 'Bearer YOUR_API_TOKEN',
'Accept': 'application/json',
'Content-Type': 'application/json'
},
body: JSON.stringify({
"channel_slug": "feedback",
"subject": "Cannot connect my Google Ads account",
"message": "I have been trying to connect my Google Ads account but keep getting an error.",
"priority": "normal",
"rating": 5,
"type": "bug",
"tool_key": "ads_protection",
"page": "https://example.com/wm/ads-protection/dashboard",
"user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36"
})})
.then(r => r.json())
.then(data => console.log(data));
$response = Http::withToken('YOUR_API_TOKEN')
->accept('application/json')
->post('https://api.wemasy.nl/api/services/platforms/v1/support/tickets/store', {
"channel_slug": "feedback",
"subject": "Cannot connect my Google Ads account",
"message": "I have been trying to connect my Google Ads account but keep getting an error.",
"priority": "normal",
"rating": 5,
"type": "bug",
"tool_key": "ads_protection",
"page": "https://example.com/wm/ads-protection/dashboard",
"user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36"
});
$data = $response->json();
import requests
headers = {
"Authorization": "Bearer YOUR_API_TOKEN",
"Accept": "application/json"
}
data = {
"channel_slug": "feedback",
"subject": "Cannot connect my Google Ads account",
"message": "I have been trying to connect my Google Ads account but keep getting an error.",
"priority": "normal",
"rating": 5,
"type": "bug",
"tool_key": "ads_protection",
"page": "https://example.com/wm/ads-protection/dashboard",
"user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36"
}
r = requests.post("https://api.wemasy.nl/api/services/platforms/v1/support/tickets/store", headers=headers, json=data)
print(r.json())
{
"error": false,
"message": "string",
"data": {
"id": 0,
"ticket_number": "string",
"channel_id": 0,
"project_id": 0,
"user_id": 0,
"assigned_to": 0,
"subject": "string",
"message": "string",
"status": "string",
"priority": "string",
"rating": 0,
"type": "string",
"tool_key": "string",
"page": "string",
"ip_address": "string",
"user_agent": "string",
"metadata": [],
"migrated_from_id": 0,
"created_at": "string",
"updated_at": "string"
}
}