Skip to main content
POST
Create Template

Authentication & Scope

Requires the templates-write ability.

Request

Body Parameters

See the Extraction Schema Guide for detailed schema documentation.

Response

201 Created – The newly created template.

Authorizations

Authorization
string
header
required

Personal Access Token created from the Raydocs dashboard. Include in the Authorization header: Bearer <your_token> See API Keys for token creation and management.

Body

application/json
name
string
required
Example:

"Invoice Extraction"

workspace_id
integer
required
description
string
schema_json
object

JSON schema defining extraction fields and groups

settings
object

Response

Created

id
string<uuid>
read-only
name
string
description
string
schema_json
object

JSON schema defining extraction fields and groups

settings
object
workspace_id
integer
created_at
string<date-time>
read-only
updated_at
string<date-time>
read-only