Connecting to my API

Hi @richardchou,

Welcome to the builder.io forum.

In builder, you can create a private key and then you can use our content API to request private content using your private key, e.g.

let apiUrl = 'https://cdn.builder.io/api/v2/content'
let modelName = 'private-page'
let content = await request(`${apiUrl}/${modelName}?apiKey=${yourPublicKey}&limit=1&userAttributes.urlPath=/some-page`, {
  headers: { Authorization: `Bearer ${yourPrivateKey}` },
})

You can read more about them at Create Private Pages that are accessible only after authorization - #2 by steve

Let us know if you have any further questions. Thank you!