Introduction
REST API for managing TallCMS content including pages, posts, categories, media, and webhooks.
Welcome to the TallCMS API documentation. This API provides programmatic access to manage your CMS content.
## Authentication
All API endpoints (except token creation) require authentication via Bearer token.
To get a token, send a POST request to `/api/v1/tallcms/auth/token` with your credentials and desired abilities.
## Rate Limiting
- Standard endpoints: 60 requests/minute
- Authentication: 5 failed attempts triggers a 15-minute lockout
## Token Abilities
Tokens must specify explicit abilities. Available abilities:
- `pages:read`, `pages:write`, `pages:delete`
- `posts:read`, `posts:write`, `posts:delete`
- `categories:read`, `categories:write`, `categories:delete`
- `media:read`, `media:write`, `media:delete`
- `webhooks:manage`
<aside>As you scroll, you'll see code examples for working with the API in different programming languages in the dark area to the right (or as part of the content on mobile).</aside>
Authenticating requests
To authenticate requests, include an Authorization header with the value "Bearer {YOUR_API_TOKEN}".
All authenticated endpoints are marked with a requires authentication badge in the documentation below.
Get a token by POSTing to /api/v1/tallcms/auth/token with your email, password, device_name, and abilities. Use the returned token as: Authorization: Bearer {token}
Authentication
Create a new API token.
This endpoint is public but rate-limited by IP+email hash to prevent brute force attacks while not affecting legitimate users on shared IPs.
Example request:
curl --request POST \
"https://tallcms.com/api/v1/tallcms/auth/token" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"email\": \"user@example.com\",
\"password\": \"password123\",
\"device_name\": \"API Client\",
\"abilities\": [
\"pages:read\",
\"posts:read\"
],
\"expires_in_days\": 16
}"
const url = new URL(
"https://tallcms.com/api/v1/tallcms/auth/token"
);
const headers = {
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"email": "user@example.com",
"password": "password123",
"device_name": "API Client",
"abilities": [
"pages:read",
"posts:read"
],
"expires_in_days": 16
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Example response (201):
{
"data": {
"token": "1|abc123...",
"expires_at": "2027-01-27T10:30:00Z",
"abilities": [
"pages:read",
"posts:read"
]
}
}
Example response (401):
{
"error": {
"message": "Invalid credentials",
"code": "invalid_credentials"
}
}
Example response (429):
{
"error": {
"message": "Too many attempts. Try again in 300 seconds.",
"code": "rate_limit_exceeded"
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Revoke the current token.
requires authentication
Example request:
curl --request DELETE \
"https://tallcms.com/api/v1/tallcms/auth/token" \
--header "Authorization: Bearer {YOUR_API_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://tallcms.com/api/v1/tallcms/auth/token"
);
const headers = {
"Authorization": "Bearer {YOUR_API_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Example response (200):
{
"message": "Token revoked successfully"
}
Example response (400):
{
"error": {
"message": "No token to revoke",
"code": "no_token"
}
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get the authenticated user.
requires authentication
Example request:
curl --request GET \
--get "https://tallcms.com/api/v1/tallcms/auth/user" \
--header "Authorization: Bearer {YOUR_API_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://tallcms.com/api/v1/tallcms/auth/user"
);
const headers = {
"Authorization": "Bearer {YOUR_API_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{"data": {"id": 1, "name": "John Doe", "email": "john@example.com", "token": {...}}}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Pages
List all pages.
requires authentication
Example request:
curl --request GET \
--get "https://tallcms.com/api/v1/tallcms/pages?page=1&per_page=15&sort=created_at&order=desc&filter%5Bstatus%5D=published&filter%5Bauthor_id%5D=1&filter%5Bparent_id%5D=&filter%5Bis_homepage%5D=&filter%5Btrashed%5D=only&include=author&with_counts=children&locale=en&with_translations=" \
--header "Authorization: Bearer {YOUR_API_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://tallcms.com/api/v1/tallcms/pages"
);
const params = {
"page": "1",
"per_page": "15",
"sort": "created_at",
"order": "desc",
"filter[status]": "published",
"filter[author_id]": "1",
"filter[parent_id]": "",
"filter[is_homepage]": "0",
"filter[trashed]": "only",
"include": "author",
"with_counts": "children",
"locale": "en",
"with_translations": "0",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_API_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{"data": [...], "meta": {...}, "links": {...}}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get a specific page.
requires authentication
Example request:
curl --request GET \
--get "https://tallcms.com/api/v1/tallcms/pages/architecto?include=author&with_counts=children&locale=en&with_translations=" \
--header "Authorization: Bearer {YOUR_API_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://tallcms.com/api/v1/tallcms/pages/architecto"
);
const params = {
"include": "author",
"with_counts": "children",
"locale": "en",
"with_translations": "0",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_API_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{"data": {...}}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get page revisions.
requires authentication
Example request:
curl --request GET \
--get "https://tallcms.com/api/v1/tallcms/pages/1/revisions?page=1&per_page=15" \
--header "Authorization: Bearer {YOUR_API_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://tallcms.com/api/v1/tallcms/pages/1/revisions"
);
const params = {
"page": "1",
"per_page": "15",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_API_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{"data": [...], "meta": {...}, "links": {...}}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Create a new page.
requires authentication
Example request:
curl --request POST \
"https://tallcms.com/api/v1/tallcms/pages" \
--header "Authorization: Bearer {YOUR_API_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"title\": \"b\",
\"slug\": \"n\",
\"meta_title\": \"g\",
\"meta_description\": \"z\",
\"translations\": {
\"title\": [
\"m\"
],
\"slug\": [
\"i\"
],
\"meta_title\": [
\"y\"
],
\"meta_description\": [
\"v\"
]
},
\"status\": \"published\",
\"parent_id\": 16,
\"is_homepage\": false,
\"content_width\": \"narrow\",
\"show_breadcrumbs\": false,
\"sort_order\": 39
}"
const url = new URL(
"https://tallcms.com/api/v1/tallcms/pages"
);
const headers = {
"Authorization": "Bearer {YOUR_API_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"title": "b",
"slug": "n",
"meta_title": "g",
"meta_description": "z",
"translations": {
"title": [
"m"
],
"slug": [
"i"
],
"meta_title": [
"y"
],
"meta_description": [
"v"
]
},
"status": "published",
"parent_id": 16,
"is_homepage": false,
"content_width": "narrow",
"show_breadcrumbs": false,
"sort_order": 39
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update a page.
requires authentication
Example request:
curl --request PUT \
"https://tallcms.com/api/v1/tallcms/pages/architecto" \
--header "Authorization: Bearer {YOUR_API_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"title\": \"b\",
\"slug\": \"n\",
\"meta_title\": \"g\",
\"meta_description\": \"z\",
\"translations\": {
\"title\": [
\"m\"
],
\"slug\": [
\"i\"
],
\"meta_title\": [
\"y\"
],
\"meta_description\": [
\"v\"
]
},
\"status\": \"published\",
\"parent_id\": 16,
\"is_homepage\": false,
\"content_width\": \"standard\",
\"show_breadcrumbs\": true,
\"sort_order\": 39
}"
const url = new URL(
"https://tallcms.com/api/v1/tallcms/pages/architecto"
);
const headers = {
"Authorization": "Bearer {YOUR_API_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"title": "b",
"slug": "n",
"meta_title": "g",
"meta_description": "z",
"translations": {
"title": [
"m"
],
"slug": [
"i"
],
"meta_title": [
"y"
],
"meta_description": [
"v"
]
},
"status": "published",
"parent_id": 16,
"is_homepage": false,
"content_width": "standard",
"show_breadcrumbs": true,
"sort_order": 39
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Restore a soft-deleted page.
requires authentication
Example request:
curl --request POST \
"https://tallcms.com/api/v1/tallcms/pages/architecto/restore" \
--header "Authorization: Bearer {YOUR_API_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://tallcms.com/api/v1/tallcms/pages/architecto/restore"
);
const headers = {
"Authorization": "Bearer {YOUR_API_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Publish a page.
requires authentication
Example request:
curl --request POST \
"https://tallcms.com/api/v1/tallcms/pages/architecto/publish" \
--header "Authorization: Bearer {YOUR_API_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://tallcms.com/api/v1/tallcms/pages/architecto/publish"
);
const headers = {
"Authorization": "Bearer {YOUR_API_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Unpublish a page.
requires authentication
Example request:
curl --request POST \
"https://tallcms.com/api/v1/tallcms/pages/architecto/unpublish" \
--header "Authorization: Bearer {YOUR_API_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://tallcms.com/api/v1/tallcms/pages/architecto/unpublish"
);
const headers = {
"Authorization": "Bearer {YOUR_API_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Approve a page.
requires authentication
Example request:
curl --request POST \
"https://tallcms.com/api/v1/tallcms/pages/architecto/approve" \
--header "Authorization: Bearer {YOUR_API_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://tallcms.com/api/v1/tallcms/pages/architecto/approve"
);
const headers = {
"Authorization": "Bearer {YOUR_API_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Reject a page.
requires authentication
Example request:
curl --request POST \
"https://tallcms.com/api/v1/tallcms/pages/architecto/reject" \
--header "Authorization: Bearer {YOUR_API_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"reason\": \"b\"
}"
const url = new URL(
"https://tallcms.com/api/v1/tallcms/pages/architecto/reject"
);
const headers = {
"Authorization": "Bearer {YOUR_API_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"reason": "b"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Submit a page for review.
requires authentication
Example request:
curl --request POST \
"https://tallcms.com/api/v1/tallcms/pages/architecto/submit-for-review" \
--header "Authorization: Bearer {YOUR_API_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://tallcms.com/api/v1/tallcms/pages/architecto/submit-for-review"
);
const headers = {
"Authorization": "Bearer {YOUR_API_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Restore a page revision.
requires authentication
Example request:
curl --request POST \
"https://tallcms.com/api/v1/tallcms/pages/architecto/revisions/architecto/restore" \
--header "Authorization: Bearer {YOUR_API_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://tallcms.com/api/v1/tallcms/pages/architecto/revisions/architecto/restore"
);
const headers = {
"Authorization": "Bearer {YOUR_API_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Soft-delete a page.
requires authentication
Example request:
curl --request DELETE \
"https://tallcms.com/api/v1/tallcms/pages/architecto" \
--header "Authorization: Bearer {YOUR_API_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://tallcms.com/api/v1/tallcms/pages/architecto"
);
const headers = {
"Authorization": "Bearer {YOUR_API_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Force-delete a page.
requires authentication
Example request:
curl --request DELETE \
"https://tallcms.com/api/v1/tallcms/pages/architecto/force" \
--header "Authorization: Bearer {YOUR_API_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://tallcms.com/api/v1/tallcms/pages/architecto/force"
);
const headers = {
"Authorization": "Bearer {YOUR_API_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Posts
List all posts.
requires authentication
Example request:
curl --request GET \
--get "https://tallcms.com/api/v1/tallcms/posts?page=1&per_page=15&sort=created_at&order=desc&filter%5Bstatus%5D=published&filter%5Bauthor_id%5D=1&filter%5Bcategory_id%5D=1&filter%5Bis_featured%5D=&filter%5Btrashed%5D=only&include=author%2Ccategories&with_counts=categories&locale=en&with_translations=" \
--header "Authorization: Bearer {YOUR_API_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://tallcms.com/api/v1/tallcms/posts"
);
const params = {
"page": "1",
"per_page": "15",
"sort": "created_at",
"order": "desc",
"filter[status]": "published",
"filter[author_id]": "1",
"filter[category_id]": "1",
"filter[is_featured]": "0",
"filter[trashed]": "only",
"include": "author,categories",
"with_counts": "categories",
"locale": "en",
"with_translations": "0",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_API_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{"data": [...], "meta": {...}, "links": {...}}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get a specific post.
requires authentication
Example request:
curl --request GET \
--get "https://tallcms.com/api/v1/tallcms/posts/architecto" \
--header "Authorization: Bearer {YOUR_API_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://tallcms.com/api/v1/tallcms/posts/architecto"
);
const headers = {
"Authorization": "Bearer {YOUR_API_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get post revisions.
requires authentication
Example request:
curl --request GET \
--get "https://tallcms.com/api/v1/tallcms/posts/architecto/revisions" \
--header "Authorization: Bearer {YOUR_API_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://tallcms.com/api/v1/tallcms/posts/architecto/revisions"
);
const headers = {
"Authorization": "Bearer {YOUR_API_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Create a new post.
requires authentication
Example request:
curl --request POST \
"https://tallcms.com/api/v1/tallcms/posts" \
--header "Authorization: Bearer {YOUR_API_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"title\": \"b\",
\"slug\": \"n\",
\"excerpt\": \"g\",
\"meta_title\": \"z\",
\"meta_description\": \"m\",
\"translations\": {
\"title\": [
\"i\"
],
\"slug\": [
\"y\"
],
\"excerpt\": [
\"v\"
],
\"meta_title\": [
\"d\"
],
\"meta_description\": [
\"l\"
]
},
\"status\": \"pending\",
\"is_featured\": false,
\"featured_image\": \"j\",
\"category_ids\": [
16
]
}"
const url = new URL(
"https://tallcms.com/api/v1/tallcms/posts"
);
const headers = {
"Authorization": "Bearer {YOUR_API_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"title": "b",
"slug": "n",
"excerpt": "g",
"meta_title": "z",
"meta_description": "m",
"translations": {
"title": [
"i"
],
"slug": [
"y"
],
"excerpt": [
"v"
],
"meta_title": [
"d"
],
"meta_description": [
"l"
]
},
"status": "pending",
"is_featured": false,
"featured_image": "j",
"category_ids": [
16
]
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update a post.
requires authentication
Example request:
curl --request PUT \
"https://tallcms.com/api/v1/tallcms/posts/architecto" \
--header "Authorization: Bearer {YOUR_API_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"title\": \"b\",
\"slug\": \"n\",
\"excerpt\": \"g\",
\"meta_title\": \"z\",
\"meta_description\": \"m\",
\"translations\": {
\"title\": [
\"i\"
],
\"slug\": [
\"y\"
],
\"excerpt\": [
\"v\"
],
\"meta_title\": [
\"d\"
],
\"meta_description\": [
\"l\"
]
},
\"status\": \"draft\",
\"is_featured\": true,
\"featured_image\": \"j\",
\"category_ids\": [
16
]
}"
const url = new URL(
"https://tallcms.com/api/v1/tallcms/posts/architecto"
);
const headers = {
"Authorization": "Bearer {YOUR_API_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"title": "b",
"slug": "n",
"excerpt": "g",
"meta_title": "z",
"meta_description": "m",
"translations": {
"title": [
"i"
],
"slug": [
"y"
],
"excerpt": [
"v"
],
"meta_title": [
"d"
],
"meta_description": [
"l"
]
},
"status": "draft",
"is_featured": true,
"featured_image": "j",
"category_ids": [
16
]
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Restore a soft-deleted post.
requires authentication
Example request:
curl --request POST \
"https://tallcms.com/api/v1/tallcms/posts/architecto/restore" \
--header "Authorization: Bearer {YOUR_API_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://tallcms.com/api/v1/tallcms/posts/architecto/restore"
);
const headers = {
"Authorization": "Bearer {YOUR_API_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Publish a post.
requires authentication
Example request:
curl --request POST \
"https://tallcms.com/api/v1/tallcms/posts/architecto/publish" \
--header "Authorization: Bearer {YOUR_API_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://tallcms.com/api/v1/tallcms/posts/architecto/publish"
);
const headers = {
"Authorization": "Bearer {YOUR_API_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Unpublish a post.
requires authentication
Example request:
curl --request POST \
"https://tallcms.com/api/v1/tallcms/posts/architecto/unpublish" \
--header "Authorization: Bearer {YOUR_API_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://tallcms.com/api/v1/tallcms/posts/architecto/unpublish"
);
const headers = {
"Authorization": "Bearer {YOUR_API_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Approve a post.
requires authentication
Example request:
curl --request POST \
"https://tallcms.com/api/v1/tallcms/posts/architecto/approve" \
--header "Authorization: Bearer {YOUR_API_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://tallcms.com/api/v1/tallcms/posts/architecto/approve"
);
const headers = {
"Authorization": "Bearer {YOUR_API_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Reject a post.
requires authentication
Example request:
curl --request POST \
"https://tallcms.com/api/v1/tallcms/posts/architecto/reject" \
--header "Authorization: Bearer {YOUR_API_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"reason\": \"b\"
}"
const url = new URL(
"https://tallcms.com/api/v1/tallcms/posts/architecto/reject"
);
const headers = {
"Authorization": "Bearer {YOUR_API_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"reason": "b"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Submit a post for review.
requires authentication
Example request:
curl --request POST \
"https://tallcms.com/api/v1/tallcms/posts/architecto/submit-for-review" \
--header "Authorization: Bearer {YOUR_API_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://tallcms.com/api/v1/tallcms/posts/architecto/submit-for-review"
);
const headers = {
"Authorization": "Bearer {YOUR_API_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Restore a post revision.
requires authentication
Example request:
curl --request POST \
"https://tallcms.com/api/v1/tallcms/posts/architecto/revisions/architecto/restore" \
--header "Authorization: Bearer {YOUR_API_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://tallcms.com/api/v1/tallcms/posts/architecto/revisions/architecto/restore"
);
const headers = {
"Authorization": "Bearer {YOUR_API_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Soft-delete a post.
requires authentication
Example request:
curl --request DELETE \
"https://tallcms.com/api/v1/tallcms/posts/architecto" \
--header "Authorization: Bearer {YOUR_API_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://tallcms.com/api/v1/tallcms/posts/architecto"
);
const headers = {
"Authorization": "Bearer {YOUR_API_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Force-delete a post.
requires authentication
Example request:
curl --request DELETE \
"https://tallcms.com/api/v1/tallcms/posts/architecto/force" \
--header "Authorization: Bearer {YOUR_API_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://tallcms.com/api/v1/tallcms/posts/architecto/force"
);
const headers = {
"Authorization": "Bearer {YOUR_API_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Categories
List all categories.
requires authentication
Example request:
curl --request GET \
--get "https://tallcms.com/api/v1/tallcms/categories?page=1&per_page=15&sort=name&order=asc&filter%5Bparent_id%5D=1&include=children&with_counts=posts&locale=en&with_translations=" \
--header "Authorization: Bearer {YOUR_API_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://tallcms.com/api/v1/tallcms/categories"
);
const params = {
"page": "1",
"per_page": "15",
"sort": "name",
"order": "asc",
"filter[parent_id]": "1",
"include": "children",
"with_counts": "posts",
"locale": "en",
"with_translations": "0",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_API_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{"data": [...], "meta": {...}, "links": {...}}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get a specific category.
requires authentication
Example request:
curl --request GET \
--get "https://tallcms.com/api/v1/tallcms/categories/architecto" \
--header "Authorization: Bearer {YOUR_API_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://tallcms.com/api/v1/tallcms/categories/architecto"
);
const headers = {
"Authorization": "Bearer {YOUR_API_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get posts for a category.
requires authentication
Example request:
curl --request GET \
--get "https://tallcms.com/api/v1/tallcms/categories/architecto/posts" \
--header "Authorization: Bearer {YOUR_API_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://tallcms.com/api/v1/tallcms/categories/architecto/posts"
);
const headers = {
"Authorization": "Bearer {YOUR_API_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Create a new category.
requires authentication
Example request:
curl --request POST \
"https://tallcms.com/api/v1/tallcms/categories" \
--header "Authorization: Bearer {YOUR_API_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"b\",
\"slug\": \"n\",
\"description\": \"Animi quos velit et fugiat.\",
\"translations\": {
\"name\": [
\"d\"
],
\"slug\": [
\"l\"
],
\"description\": [
\"j\"
]
},
\"color\": \"nikhway\",
\"sort_order\": 62,
\"parent_id\": 16
}"
const url = new URL(
"https://tallcms.com/api/v1/tallcms/categories"
);
const headers = {
"Authorization": "Bearer {YOUR_API_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "b",
"slug": "n",
"description": "Animi quos velit et fugiat.",
"translations": {
"name": [
"d"
],
"slug": [
"l"
],
"description": [
"j"
]
},
"color": "nikhway",
"sort_order": 62,
"parent_id": 16
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update a category.
requires authentication
Example request:
curl --request PUT \
"https://tallcms.com/api/v1/tallcms/categories/architecto" \
--header "Authorization: Bearer {YOUR_API_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"b\",
\"slug\": \"n\",
\"description\": \"Animi quos velit et fugiat.\",
\"translations\": {
\"name\": [
\"d\"
],
\"slug\": [
\"l\"
],
\"description\": [
\"j\"
]
},
\"color\": \"nikhway\",
\"sort_order\": 62,
\"parent_id\": 16
}"
const url = new URL(
"https://tallcms.com/api/v1/tallcms/categories/architecto"
);
const headers = {
"Authorization": "Bearer {YOUR_API_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "b",
"slug": "n",
"description": "Animi quos velit et fugiat.",
"translations": {
"name": [
"d"
],
"slug": [
"l"
],
"description": [
"j"
]
},
"color": "nikhway",
"sort_order": 62,
"parent_id": 16
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Delete a category (hard delete).
requires authentication
Example request:
curl --request DELETE \
"https://tallcms.com/api/v1/tallcms/categories/architecto" \
--header "Authorization: Bearer {YOUR_API_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://tallcms.com/api/v1/tallcms/categories/architecto"
);
const headers = {
"Authorization": "Bearer {YOUR_API_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Media
List all media.
requires authentication
Example request:
curl --request GET \
--get "https://tallcms.com/api/v1/tallcms/media?page=1&per_page=15&sort=created_at&order=desc&filter%5Bmime_type%5D=image%2Fjpeg&filter%5Bcollection_id%5D=1&filter%5Bhas_variants%5D=1&include=collections&with_counts=collections" \
--header "Authorization: Bearer {YOUR_API_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://tallcms.com/api/v1/tallcms/media"
);
const params = {
"page": "1",
"per_page": "15",
"sort": "created_at",
"order": "desc",
"filter[mime_type]": "image/jpeg",
"filter[collection_id]": "1",
"filter[has_variants]": "1",
"include": "collections",
"with_counts": "collections",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_API_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{"data": [...], "meta": {...}, "links": {...}}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get a specific media item.
requires authentication
Example request:
curl --request GET \
--get "https://tallcms.com/api/v1/tallcms/media/architecto" \
--header "Authorization: Bearer {YOUR_API_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://tallcms.com/api/v1/tallcms/media/architecto"
);
const headers = {
"Authorization": "Bearer {YOUR_API_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Upload a new media file.
requires authentication
Example request:
curl --request POST \
"https://tallcms.com/api/v1/tallcms/media" \
--header "Authorization: Bearer {YOUR_API_TOKEN}" \
--header "Content-Type: multipart/form-data" \
--header "Accept: application/json" \
--form "name=b"\
--form "disk=s3"\
--form "alt_text=n"\
--form "caption=g"\
--form "collection_ids[]=16"\
--form "file=@/tmp/php21vm9jhevag54tjIAyu" const url = new URL(
"https://tallcms.com/api/v1/tallcms/media"
);
const headers = {
"Authorization": "Bearer {YOUR_API_TOKEN}",
"Content-Type": "multipart/form-data",
"Accept": "application/json",
};
const body = new FormData();
body.append('name', 'b');
body.append('disk', 's3');
body.append('alt_text', 'n');
body.append('caption', 'g');
body.append('collection_ids[]', '16');
body.append('file', document.querySelector('input[name="file"]').files[0]);
fetch(url, {
method: "POST",
headers,
body,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update a media item's metadata.
requires authentication
Example request:
curl --request PUT \
"https://tallcms.com/api/v1/tallcms/media/architecto" \
--header "Authorization: Bearer {YOUR_API_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"b\",
\"alt_text\": \"n\",
\"caption\": \"g\",
\"collection_ids\": [
16
]
}"
const url = new URL(
"https://tallcms.com/api/v1/tallcms/media/architecto"
);
const headers = {
"Authorization": "Bearer {YOUR_API_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "b",
"alt_text": "n",
"caption": "g",
"collection_ids": [
16
]
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Delete a media item (hard delete).
requires authentication
Example request:
curl --request DELETE \
"https://tallcms.com/api/v1/tallcms/media/architecto" \
--header "Authorization: Bearer {YOUR_API_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://tallcms.com/api/v1/tallcms/media/architecto"
);
const headers = {
"Authorization": "Bearer {YOUR_API_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Media Collections
List all media collections.
requires authentication
Example request:
curl --request GET \
--get "https://tallcms.com/api/v1/tallcms/media/collections?page=1&per_page=15&sort=name&order=asc&include=media&with_counts=media&locale=en&with_translations=" \
--header "Authorization: Bearer {YOUR_API_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://tallcms.com/api/v1/tallcms/media/collections"
);
const params = {
"page": "1",
"per_page": "15",
"sort": "name",
"order": "asc",
"include": "media",
"with_counts": "media",
"locale": "en",
"with_translations": "0",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_API_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{"data": [...], "meta": {...}, "links": {...}}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get a specific media collection.
requires authentication
Example request:
curl --request GET \
--get "https://tallcms.com/api/v1/tallcms/media/collections/architecto" \
--header "Authorization: Bearer {YOUR_API_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://tallcms.com/api/v1/tallcms/media/collections/architecto"
);
const headers = {
"Authorization": "Bearer {YOUR_API_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Create a new media collection.
requires authentication
Example request:
curl --request POST \
"https://tallcms.com/api/v1/tallcms/media/collections" \
--header "Authorization: Bearer {YOUR_API_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"b\",
\"slug\": \"n\",
\"translations\": {
\"name\": [
\"g\"
],
\"slug\": [
\"z\"
]
},
\"color\": \"miyvdlj\"
}"
const url = new URL(
"https://tallcms.com/api/v1/tallcms/media/collections"
);
const headers = {
"Authorization": "Bearer {YOUR_API_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "b",
"slug": "n",
"translations": {
"name": [
"g"
],
"slug": [
"z"
]
},
"color": "miyvdlj"
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update a media collection.
requires authentication
Example request:
curl --request PUT \
"https://tallcms.com/api/v1/tallcms/media/collections/architecto" \
--header "Authorization: Bearer {YOUR_API_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"b\",
\"slug\": \"n\",
\"translations\": {
\"name\": [
\"g\"
],
\"slug\": [
\"z\"
]
},
\"color\": \"miyvdlj\"
}"
const url = new URL(
"https://tallcms.com/api/v1/tallcms/media/collections/architecto"
);
const headers = {
"Authorization": "Bearer {YOUR_API_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "b",
"slug": "n",
"translations": {
"name": [
"g"
],
"slug": [
"z"
]
},
"color": "miyvdlj"
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Delete a media collection (hard delete).
requires authentication
Example request:
curl --request DELETE \
"https://tallcms.com/api/v1/tallcms/media/collections/architecto" \
--header "Authorization: Bearer {YOUR_API_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://tallcms.com/api/v1/tallcms/media/collections/architecto"
);
const headers = {
"Authorization": "Bearer {YOUR_API_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Webhooks
List all webhooks.
requires authentication
Example request:
curl --request GET \
--get "https://tallcms.com/api/v1/tallcms/webhooks?page=1&per_page=15" \
--header "Authorization: Bearer {YOUR_API_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://tallcms.com/api/v1/tallcms/webhooks"
);
const params = {
"page": "1",
"per_page": "15",
};
Object.keys(params)
.forEach(key => url.searchParams.append(key, params[key]));
const headers = {
"Authorization": "Bearer {YOUR_API_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (200):
{"data": [...], "meta": {...}, "links": {...}}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Create a new webhook.
requires authentication
Example request:
curl --request POST \
"https://tallcms.com/api/v1/tallcms/webhooks" \
--header "Authorization: Bearer {YOUR_API_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"b\",
\"url\": \"http:\\/\\/bailey.com\\/\",
\"events\": [
\"post.published\"
],
\"is_active\": false,
\"timeout\": 17
}"
const url = new URL(
"https://tallcms.com/api/v1/tallcms/webhooks"
);
const headers = {
"Authorization": "Bearer {YOUR_API_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "b",
"url": "http:\/\/bailey.com\/",
"events": [
"post.published"
],
"is_active": false,
"timeout": 17
};
fetch(url, {
method: "POST",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Get a specific webhook.
requires authentication
Example request:
curl --request GET \
--get "https://tallcms.com/api/v1/tallcms/webhooks/architecto" \
--header "Authorization: Bearer {YOUR_API_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://tallcms.com/api/v1/tallcms/webhooks/architecto"
);
const headers = {
"Authorization": "Bearer {YOUR_API_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "GET",
headers,
}).then(response => response.json());Example response (401):
Show headers
cache-control: no-cache, private
content-type: application/json
access-control-allow-origin: *
{
"message": "Unauthenticated."
}
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Update a webhook.
requires authentication
Example request:
curl --request PUT \
"https://tallcms.com/api/v1/tallcms/webhooks/architecto" \
--header "Authorization: Bearer {YOUR_API_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--data "{
\"name\": \"b\",
\"url\": \"http:\\/\\/bailey.com\\/\",
\"events\": [
\"post.deleted\"
],
\"is_active\": false,
\"timeout\": 17
}"
const url = new URL(
"https://tallcms.com/api/v1/tallcms/webhooks/architecto"
);
const headers = {
"Authorization": "Bearer {YOUR_API_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
let body = {
"name": "b",
"url": "http:\/\/bailey.com\/",
"events": [
"post.deleted"
],
"is_active": false,
"timeout": 17
};
fetch(url, {
method: "PUT",
headers,
body: JSON.stringify(body),
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Delete a webhook.
requires authentication
Example request:
curl --request DELETE \
"https://tallcms.com/api/v1/tallcms/webhooks/architecto" \
--header "Authorization: Bearer {YOUR_API_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://tallcms.com/api/v1/tallcms/webhooks/architecto"
);
const headers = {
"Authorization": "Bearer {YOUR_API_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "DELETE",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
Send a test webhook.
requires authentication
Example request:
curl --request POST \
"https://tallcms.com/api/v1/tallcms/webhooks/architecto/test" \
--header "Authorization: Bearer {YOUR_API_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json"const url = new URL(
"https://tallcms.com/api/v1/tallcms/webhooks/architecto/test"
);
const headers = {
"Authorization": "Bearer {YOUR_API_TOKEN}",
"Content-Type": "application/json",
"Accept": "application/json",
};
fetch(url, {
method: "POST",
headers,
}).then(response => response.json());Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.