Quickstart
Go from an empty project to live content on your site in a few minutes.
1. Define a content type
In the dashboard, open your project and go to Content Types. Create one — for example blog_post with a title (text) and body (rich text) field. The machine name (apiId) is what you query.
2. Create and publish an entry
Go to Content, add an entry of your type, fill in the fields, and hit Publish. Only published entries are returned to live sites.
3. Create an API key
Open API Keys, create a Read key, and copy the token. It is shown only once.
// COPY IT NOWWriven stores only a hash of your token — it cannot be shown again. If you lose it, revoke the key and create a new one.
4. Fetch your content
Call the Delivery API with the key as a Bearer token:
bash
curl "https://api.wriven.com/v1/projects/PROJECT_ID/content/blog_post" \
-H "Authorization: Bearer wrk_live_xxx"The same call in JavaScript:
javascript
const res = await fetch(
"https://api.wriven.com/v1/projects/PROJECT_ID/content/blog_post",
{ headers: { Authorization: "Bearer wrk_live_xxx" } }
);
const { items } = await res.json();
console.log(items[0].data.title);// PROJECT_IDFind your project id under
AuthenticationProject Settings, or copy it from the dashboard URL.