Get a building block
blocks.getGives one building block from blocks.list: its files, the HTML snippet to put in the pages, and notes on using it. Copy the files into the site by passing deploy_files along in sites.deploy (each is { path, source_url }; Spaicely fetches them, so you do not retype the code), then put the snippet in every page that needs it, with its texts in the language of the page. Without version you get the newest; a version never changes. Needs no account.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | The block's name from blocks.list, such as consent | |
| version | No | A version; default the newest |