/services/websites/v1/structures/{type}/get
Auth
| Name | Type | In | Required | Description |
|---|---|---|---|---|
type |
string | path | Required |
| Field | Type | Required | Description | Example |
|---|---|---|---|---|
id |
string | Yes | ID of the structure post to retrieve |
| 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 |
string | |
data.link |
string | |
data.layout_id |
string | |
data.title |
string | |
data.url |
string | |
data.content |
string | |
data.intro |
string | |
data.image |
string | |
data.status |
string | |
data.sort_number |
string | |
data.meta_keyword |
string | |
data.disable_single_page |
string | |
data.disable_listing |
string | |
data.no_index |
string | |
data.meta_title |
string | |
data.meta_image |
string | |
data.meta_description |
string | |
data.canonical_url |
string | |
data.scheduled_at |
string | |
data.categories |
string | Rich text content - already HTML |
data.main_category_id |
string | |
data.meta |
string | |
data.importer |
object |
| 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 |
| 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 |
| 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 |
Retry-After |
integer | Seconds until the rate limit resets | 60 |
| Field | Type | Description |
|---|---|---|
error |
boolean | |
message |
string |
curl -X POST "https://api.wemasy.nl/api/services/websites/v1/structures/{type}/get" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-d '{
"id": "string"
}'
fetch('https://api.wemasy.nl/api/services/websites/v1/structures/{type}/get', {
method: 'POST',
headers: {
'Authorization': 'Bearer YOUR_API_TOKEN',
'Accept': 'application/json',
'Content-Type': 'application/json'
},
body: JSON.stringify({
"id": "string"
})})
.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/websites/v1/structures/{type}/get', {
"id": "string"
});
$data = $response->json();
import requests
headers = {
"Authorization": "Bearer YOUR_API_TOKEN",
"Accept": "application/json"
}
data = {
"id": "string"
}
r = requests.post("https://api.wemasy.nl/api/services/websites/v1/structures/{type}/get", headers=headers, json=data)
print(r.json())
{
"error": false,
"message": "string",
"data": {
"id": "string",
"link": "string",
"layout_id": "string",
"title": "string",
"url": "string",
"content": "string",
"intro": "string",
"image": "string",
"status": "string",
"sort_number": "string",
"meta_keyword": "string",
"disable_single_page": "string",
"disable_listing": "string",
"no_index": "string",
"meta_title": "string",
"meta_image": "string",
"meta_description": "string",
"canonical_url": "string",
"scheduled_at": "string",
"categories": "string",
"main_category_id": "string",
"meta": "string",
"importer": {
"id": "string",
"title": "string",
"identifier": "string"
}
}
}