Introduction
To connect your Sanity account to Cloudpress, you will need to give Cloudpress information about your Sanity project. This document will walk you through the process of connecting your account.Sanity schema overview
To add your Sanity account to Cloudpress, you will need details of the schema for the Sanity document type you will be exporting content to. You will need to know the name of the schema, the name of the field that contains the title of the document, as well as the name of the field that contains the document’s content. For this guide, let’s assume that we have a schema namedpost
with a title
field that contains the title of the document, as well as a body
field that is defined as blockContent
that contains the content of the document.
Here is the configuration of the sample schema:
Generate an API Token
You will need an API token to give Cloudpress access to your Sanity account. Open the Sanity Management Console and select your project. Navigate to the API tab and scroll down to Tokens section.

Connect your Sanity account
Go to the Connections page in Cloudpress, click on the Add Connection button and then select Sanity from the list.



post
type. The document title will be expored to the title
field, and the content of the document will be exported to the body
field.
The final step is to confirm your connection configuration and give the connection a descriptive name. Click the Create Connection button to continue.
