Framer

App · 27 actions

Work with a Framer site: manage CMS collections, fields and items, publish and deploy the site, set custom code, and create pages and color styles.

Actions

ActionWhat it does
Add collection fieldAdd one field to a collection.
Clear custom codeRemove the custom HTML from one place on every page.
Create collectionCreate an empty CMS collection.
Create collection itemAdd an item to a collection.
Create color styleCreate a color style for the project.
Create pageCreate an empty web page at an address such as /pricing.
Delete collection itemDelete an item from a collection.
Delete color styleDelete a color style.
Delete pageDelete a web page.
Deploy to live domainsMake a deployment, such as one from 'Publish', the live version of the site.
Get collection itemGet one item of a collection by its id or its slug.
Get custom codeRead the custom HTML added to every page, in each of the four places Framer allows it.
Get deploymentGet one deployment: whether it is still being optimized or ready, who deployed it and its preview address.
Get projectGet the connected Framer project's name and id, and the name of the person the API key acts as.
Get publish statusSee where the site is published, when, and which pages have changed since.
List collection fieldsList a collection's fields with their types and, for option fields, their choices.
List collection itemsList every item in a collection, drafts included, with each field's value under the field's name.
List collectionsList the project's CMS collections.
List color stylesList the project's color styles.
List deploymentsList the project's most recent deployments, newest first, with their status and preview address.
List languagesList the languages the site is translated into.
List pagesList the project's web pages with their addresses.
List text stylesList the project's text styles with their font and tag.
PublishPublish the project's current state as a new deployment on its preview address.
Remove collection fieldRemove a field from a collection.
Set custom codePut custom HTML, such as an analytics script, on every page of the site.
Update collection itemChange an item's slug, draft state or field values.

Add collection field

Add one field to a collection.

Inputs

Collectioncollection_idtextRequired
The CMS collection. Pick one, or give its id from an earlier step.
Field namenametextRequired
The field's name, such as Title.
TypetypetextRequired
What the field holds.One of: string (Text), formattedText (Rich text), number, boolean (Toggle), date, color, link, image, enum (Option (choose one of a list)), collectionReference (Reference to an item in another collection), multiCollectionReference (References to items in another collection).
Choicesoptionstext
For an option field: its choices, separated by commas, such as Draft, Live.Only when Type is Option (choose one of a list).
Collection to point atreference_collection_idtext
For a reference field: the collection its items come from.Only when Type is Reference to an item in another collection or References to items in another collection.
Include the timeinclude_timetrue/false
For a date field: ask for a time as well as a date.Only when Type is Date.
Requiredrequiredtrue/false
Whether an item must have a value. Not offered by every type.

Outputs

collection_idtext
The collection
fieldobject
The new field
Example output
{
  "collection_id": "ZmJ56GrmH",
  "field": {
    "cases": [],
    "collection_id": "",
    "id": "Q3cza0XBs",
    "include_time": false,
    "name": "Title",
    "required": false,
    "type": "string"
  }
}

Clear custom code

Remove the custom HTML from one place on every page.

Inputs

Where on the pagelocationtextRequired
Where the code goes on every page of the site.One of: headStart (Start of the head), headEnd (End of the head), bodyStart (Start of the body), bodyEnd (End of the body).

Outputs

clearedtrue/false
Always true once cleared
locationtext
The place cleared
Example output
{
  "cleared": true,
  "location": "headEnd"
}

Create collection

Create an empty CMS collection. Add its fields with 'Add collection field'. Framer's API cannot delete a collection, so remove it in Framer if you no longer want it.

Inputs

NamenametextRequired
The collection's name, such as Blog posts.

Outputs

collectionobject
The new collection
Example output
{
  "collection": {
    "id": "ZmJ56GrmH",
    "managed_by": "user",
    "name": "Blog posts",
    "read_only": false,
    "slug_field_name": "Slug"
  }
}

Create collection item

Add an item to a collection. Publish the site afterwards to show it on the live site.

Inputs

Collectioncollection_idtextRequired
The CMS collection. Pick one, or give its id from an earlier step.
SlugslugtextRequired
The item's address, unique in the collection, such as my-first-post.
Field valuesfield_valuesobject
The value for each field. Leave a field empty to leave it as it is. A reference field takes the slug (or id) of an item in the other collection.
Draftdrafttrue/false
Keep the item as a draft: it is not published with the site.

Outputs

collection_idtext
The collection
itemobject
The new item
Example output
{
  "collection_id": "ZmJ56GrmH",
  "item": {
    "created_at": "2026-11-18T19:58:22.903Z",
    "draft": false,
    "fields": {
      "Title": "Hello world",
      "Views": 5
    },
    "id": "JxOb3NRs2",
    "slug": "hello-world",
    "updated_at": "2026-11-18T19:58:22.982Z"
  }
}

Create color style

Create a color style for the project.

Inputs

NamenametextRequired
The style's name, such as Brand blue.
ColorlighttextRequired
The color, as #0000ff or rgb(0, 0, 255).
Dark mode colordarktext
A different color for dark mode. Leave empty to use the same.

Outputs

color_styleobject
The new color style
Example output
{
  "color_style": {
    "dark": "",
    "id": "8b0ea04b-efee-4ccf-aa31-9ec9b415dfcc",
    "light": "rgb(0, 0, 255)",
    "name": "Brand blue",
    "path": "/Brand blue"
  }
}

Create page

Create an empty web page at an address such as /pricing. Design it in Framer, then publish.

Inputs

Page addresspathtextRequired
The page's path on the site, such as /pricing.

Outputs

pageobject
The new page
Example output
{
  "page": {
    "collection_id": "",
    "draft": false,
    "id": "WHOBp_7sx",
    "name": "Pricing",
    "path": "/pricing"
  }
}

Delete collection item

Delete an item from a collection. This cannot be undone.

Inputs

Collectioncollection_idtextRequired
The CMS collection. Pick one, or give its id from an earlier step.
Itemitem_idtextRequired
The item. Pick one, or give its id from an earlier step.

Outputs

collection_idtext
The collection
deletedtrue/false
Always true once deleted
item_idtext
The item deleted
Example output
{
  "collection_id": "ZmJ56GrmH",
  "deleted": true,
  "item_id": "JxOb3NRs2"
}

Delete color style

Delete a color style.

Inputs

Color stylecolor_style_idtextRequired
The color style. Pick one, or give its id from an earlier step.

Outputs

color_style_idtext
The style deleted
deletedtrue/false
Always true once deleted
Example output
{
  "color_style_id": "8b0ea04b-efee-4ccf-aa31-9ec9b415dfcc",
  "deleted": true
}

Delete page

Delete a web page. The home page cannot be deleted.

Inputs

Pagepage_idtextRequired
The page. Pick one, or give its id from an earlier step.

Outputs

deletedtrue/false
Always true once deleted
page_idtext
The page deleted
pathtext
Where the page was
Example output
{
  "deleted": true,
  "page_id": "WHOBp_7sx",
  "path": "/pricing"
}

Deploy to live domains

Make a deployment, such as one from 'Publish', the live version of the site. Leave Domains empty for every domain.

Inputs

Deploymentdeployment_idtextRequired
The deployment. Pick one, or give its id from 'Publish' or 'List deployments'.
Domainsdomainstext
Only these domains, separated by commas, such as www.example.com. Leave empty to deploy to all of them.

Outputs

deployment_idtext
The deployment
hostnameslist
The domains now serving it
Example output
{
  "deployment_id": "198f247d3",
  "hostnames": [
    {
      "deployment_id": "198f247d3",
      "hostname": "my-site.framer.app",
      "is_primary": true,
      "is_published": true,
      "type": "default"
    }
  ]
}

Get collection item

Get one item of a collection by its id or its slug.

Inputs

Collectioncollection_idtextRequired
The CMS collection. Pick one, or give its id from an earlier step.
Itemitem_idtextRequired
The item. Pick one, or give its id or slug.

Outputs

itemobject
The item
Example output
{
  "item": {
    "created_at": "2026-11-18T19:58:22.903Z",
    "draft": false,
    "fields": {
      "Title": "Hello world",
      "Views": 5
    },
    "id": "JxOb3NRs2",
    "slug": "hello-world",
    "updated_at": "2026-11-18T19:58:22.982Z"
  }
}

Get custom code

Read the custom HTML added to every page, in each of the four places Framer allows it.

Inputs

None.

Outputs

bodyEndobject
Custom code at the end of the body
bodyStartobject
Custom code at the start of the body
headEndobject
Custom code at the end of the head
headStartobject
Custom code at the start of the head
Example output
{
  "bodyEnd": {
    "disabled": false,
    "html": ""
  },
  "bodyStart": {
    "disabled": false,
    "html": ""
  },
  "headEnd": {
    "disabled": false,
    "html": "<script>/* analytics */</script>"
  },
  "headStart": {
    "disabled": false,
    "html": ""
  }
}

Get deployment

Get one deployment: whether it is still being optimized or ready, who deployed it and its preview address.

Inputs

Deploymentdeployment_idtextRequired
The deployment. Pick one, or give its id from 'Publish' or 'List deployments'.

Outputs

deploymentobject
The deployment
Example output
{
  "deployment": {
    "created_at": "2026-11-18T19:59:41.203Z",
    "deployed_by": "Alex Smith",
    "id": "198f247d3",
    "status": "ready",
    "updated_at": "2026-11-18T19:59:41.203Z",
    "version_url": "https://my-site-198f247d3.framer.app"
  }
}

Get project

Get the connected Framer project's name and id, and the name of the person the API key acts as.

Inputs

None.

Outputs

projectobject
The project
userobject
The person the API key acts as
Example output
{
  "project": {
    "id": "3ec18a853edb",
    "name": "My site"
  },
  "user": {
    "avatar_url": "",
    "id": "2d43366cc86f",
    "initials": "AS",
    "name": "Alex Smith"
  }
}

Get publish status

See where the site is published, when, and which pages have changed since. Use it to decide whether to publish.

Inputs

None.

Outputs

productionobject
The live site, if it is published
stagingobject
The preview site, if it is published
unpublished_changeslist
Pages added, changed or removed since the last publish
unpublished_countnumber
How many
Example output
{
  "production": {
    "optimization_status": "complete",
    "published": true,
    "published_at": "2026-11-18T19:59:41+00:00",
    "url": "https://my-site.framer.app"
  },
  "staging": {
    "optimization_status": "complete",
    "published": true,
    "published_at": "2026-11-18T19:59:41+00:00",
    "url": "https://my-site.framer.app"
  },
  "unpublished_changes": [
    {
      "node_id": "augiA20Il",
      "path": "/",
      "status": "added"
    }
  ],
  "unpublished_count": 1
}

List collection fields

List a collection's fields with their types and, for option fields, their choices.

Inputs

Collectioncollection_idtextRequired
The CMS collection. Pick one, or give its id from an earlier step.

Outputs

collection_idtext
The collection
countnumber
How many
fieldslist
The fields
Example output
{
  "collection_id": "ZmJ56GrmH",
  "count": 1,
  "fields": [
    {
      "cases": [],
      "collection_id": "",
      "id": "Q3cza0XBs",
      "include_time": false,
      "name": "Title",
      "required": false,
      "type": "string"
    }
  ]
}

List collection items

List every item in a collection, drafts included, with each field's value under the field's name.

Inputs

Collectioncollection_idtextRequired
The CMS collection. Pick one, or give its id from an earlier step.

Outputs

collection_idtext
The collection
countnumber
How many
itemslist
The items
Example output
{
  "collection_id": "ZmJ56GrmH",
  "count": 1,
  "items": [
    {
      "created_at": "2026-11-18T19:58:22.903Z",
      "draft": false,
      "fields": {
        "Title": "Hello world",
        "Views": 5
      },
      "id": "JxOb3NRs2",
      "slug": "hello-world",
      "updated_at": "2026-11-18T19:58:22.982Z"
    }
  ]
}

List collections

List the project's CMS collections.

Inputs

None.

Outputs

collectionslist
The collections
countnumber
How many
Example output
{
  "collections": [
    {
      "id": "ZmJ56GrmH",
      "managed_by": "user",
      "name": "Blog posts",
      "read_only": false,
      "slug_field_name": "Slug"
    }
  ],
  "count": 1
}

List color styles

List the project's color styles.

Inputs

None.

Outputs

color_styleslist
The color styles
countnumber
How many
Example output
{
  "color_styles": [
    {
      "dark": "",
      "id": "8b0ea04b-efee-4ccf-aa31-9ec9b415dfcc",
      "light": "rgb(0, 0, 255)",
      "name": "Brand blue",
      "path": "/Brand blue"
    }
  ],
  "count": 1
}

List deployments

List the project's most recent deployments, newest first, with their status and preview address.

Inputs

How manylimitnumber
How many deployments, 1 to 100. Defaults to 20.From 1 to 100.

Outputs

countnumber
How many
deploymentslist
The deployments
Example output
{
  "count": 1,
  "deployments": [
    {
      "created_at": "2026-11-18T19:59:41.203Z",
      "deployed_by": "Alex Smith",
      "id": "198f247d3",
      "status": "ready",
      "updated_at": "2026-11-18T19:59:41.203Z",
      "version_url": "https://my-site-198f247d3.framer.app"
    }
  ]
}

List languages

List the languages the site is translated into.

Inputs

None.

Outputs

countnumber
How many
localeslist
The languages
Example output
{
  "count": 1,
  "locales": [
    {
      "code": "fr",
      "id": "fr",
      "name": "French",
      "slug": "fr"
    }
  ]
}

List pages

List the project's web pages with their addresses.

Inputs

None.

Outputs

countnumber
How many
pageslist
The pages
Example output
{
  "count": 1,
  "pages": [
    {
      "collection_id": "",
      "draft": false,
      "id": "WHOBp_7sx",
      "name": "Pricing",
      "path": "/pricing"
    }
  ]
}

List text styles

List the project's text styles with their font and tag.

Inputs

None.

Outputs

countnumber
How many
text_styleslist
The text styles
Example output
{
  "count": 1,
  "text_styles": [
    {
      "color": "#111",
      "font_family": "Inter",
      "id": "cE2L9Rg2k",
      "name": "Heading",
      "path": "/Heading",
      "tag": "h1"
    }
  ]
}

Publish

Publish the project's current state as a new deployment on its preview address. To put it on your live domains, follow it with 'Deploy to live domains'.

Inputs

None.

Outputs

deploymentobject
The new deployment
hostnameslist
The addresses the deployment is on
Example output
{
  "deployment": {
    "created_at": "2026-11-18T19:59:41.203Z",
    "deployed_by": "Alex Smith",
    "id": "198f247d3",
    "status": "ready",
    "updated_at": "2026-11-18T19:59:41.203Z",
    "version_url": "https://my-site-198f247d3.framer.app"
  },
  "hostnames": [
    {
      "deployment_id": "198f247d3",
      "hostname": "my-site.framer.app",
      "is_primary": true,
      "is_published": true,
      "type": "default"
    }
  ]
}

Remove collection field

Remove a field from a collection. Its values are removed from every item.

Inputs

Collectioncollection_idtextRequired
The CMS collection. Pick one, or give its id from an earlier step.
FieldfieldtextRequired
The field to remove. Pick one, or give its name or id.

Outputs

collection_idtext
The collection
field_idtext
The field removed
nametext
The field's name
removedtrue/false
Always true once removed
Example output
{
  "collection_id": "ZmJ56GrmH",
  "field_id": "Q3cza0XBs",
  "name": "Title",
  "removed": true
}

Set custom code

Put custom HTML, such as an analytics script, on every page of the site. It replaces what was in that place. The site shows it after the next publish.

Inputs

Where on the pagelocationtextRequired
Where the code goes on every page of the site.One of: headStart (Start of the head), headEnd (End of the head), bodyStart (Start of the body), bodyEnd (End of the body).
HTMLhtmltextRequired
The HTML or script tag to add.

Outputs

htmltext
The code that was set
locationtext
Where it was put
Example output
{
  "html": "<script>/* analytics */</script>",
  "location": "headEnd"
}

Update collection item

Change an item's slug, draft state or field values. Fields you leave empty keep their values.

Inputs

Collectioncollection_idtextRequired
The CMS collection. Pick one, or give its id from an earlier step.
Itemitem_idtextRequired
The item. Pick one, or give its id from an earlier step.
New slugslugtext
A new address for the item. Leave empty to keep it.
Field valuesfield_valuesobject
The value for each field. Leave a field empty to leave it as it is. A reference field takes the slug (or id) of an item in the other collection.
Draft statedraft_statetext
Whether the item is a draft. Defaults to leaving it as it is.One of: keep (Leave as it is), draft (Make it a draft), published (Publish it). Default: keep.

Outputs

collection_idtext
The collection
itemobject
The item as it is now
Example output
{
  "collection_id": "ZmJ56GrmH",
  "item": {
    "created_at": "2026-11-18T19:58:22.903Z",
    "draft": false,
    "fields": {
      "Title": "Hello world",
      "Views": 5
    },
    "id": "JxOb3NRs2",
    "slug": "hello-world",
    "updated_at": "2026-11-18T19:58:22.982Z"
  }
}

On this page