SnozeDevelopers
API referenceDatabase templates

List the record templates of a database

Returns the database's record templates ordered by label, including their prefilled field data, linked content surface, and which one is the default for new records. Requires `databases:read` on the database.

GET
/v1/workspaces/{workspaceId}/databases/{databaseId}/record-templates

Authorization

apiKey
headerAuthorizationBearer <snoze_sk_…>

Workspace API key created in Workspace settings → API keys. Scopes on the key bound what it can read and write.

Path Parameters

workspaceId*string
databaseId*string

Response Body

Success

application/json
  1. response
data*array<>
Example Request
curl -X GET 'https://api.snoze.dev/v1/workspaces/string/databases/string/record-templates'
Example Response
{  "data": [    {      "id": "string",      "workspaceId": "string",      "databaseId": "string",      "label": "string",      "description": "string",      "data": {},      "contentSurfaceId": "string",      "isDefault": true,      "createdAt": "string",      "updatedAt": "string"    }  ]}