Dealboard Templates API
The Templates API from Dealboard — 1 operation(s) for templates.
The Templates API from Dealboard — 1 operation(s) for templates.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/dealboard:dealboard-templates-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Dealboard Templates API
x-refined-note:
- x-authored-by differs across the merged source definitions and was not carried
- x-engine differs across the merged source definitions and was not carried
- x-evidence-tiers differs across the merged source definitions and was not carried
- x-generated differs across the merged source definitions and was not carried
- x-generated-from differs across the merged source definitions and was not carried
- x-generator differs across the merged source definitions and was not carried
- x-provenance differs across the merged source definitions and was not carried
- x-sources differs across the merged source definitions and was not carried
version: '1.0'
description: 'Operations tagged Templates across 3 of this provider''s published API definitions: openapi.json, dealboard-openapi-generated.yml, dealboard-openapi.json. Each path carries the servers of the definition it was published in.'
servers:
- url: https://app.getdealboard.com
description: Production
tags:
- name: Templates
paths:
/v1/templates:
get:
summary: List email templates
description: The workspace's email templates, most-used first. Bodies use the merge tokens {{first_name}} / {{company}} / {{sender_first_name}}, filled by the client. Powers the in-app picker and the Gmail extension's compose picker.
tags:
- Templates
responses:
'200':
description: OK
content:
application/json:
schema:
type: object
required:
- data
properties:
data:
type: array
items:
type: object
properties:
id:
type: string
format: uuid
name:
type: string
subject:
type: string
body:
type: string
icon:
type: string
color:
type: string
use_count:
type: integer
'401':
description: Missing or invalid credential.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
security:
- BearerApiKey: []
operationId: getV1Templates
x-operation-id-source: derived
servers:
- url: https://app.getdealboard.com
description: Production
/v1/templates/{id}/use:
post:
summary: Record a template use
description: Log one use of an email template — bumps `use_count` (the picker's most-used ordering) and appends a use record, exactly like picking it inside Dealboard. Fired by the Gmail extension after inserting a template into a draft. Optional body links the use to a deal or lead.
tags:
- Templates
parameters:
- name: id
in: path
required: true
schema:
type: string
format: uuid
description: The template id.
requestBody:
required: false
content:
application/json:
schema:
type: object
properties:
deal_id:
type: string
format: uuid
nullable: true
lead_id:
type: string
format: uuid
nullable: true
responses:
'200':
description: OK
content:
application/json:
schema:
type: object
required:
- ok
properties:
ok:
type: boolean
'401':
description: Missing or invalid credential.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
'404':
description: Template not found in your workspace.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
security:
- BearerApiKey: []
operationId: postV1TemplatesByIdUse
x-operation-id-source: derived
servers:
- url: https://app.getdealboard.com
description: Production
/v1/embed-token:
post:
summary: Mint a Gmail-embed token
description: Mints a short-lived (2-minute), single-use token that the Dealboard for Gmail extension redeems at /api/embed/start to bootstrap an app session inside its sidebar iframe. API keys only — OAuth access tokens (ChatGPT, Claude, Zapier connectors) get 403 `api_key_required`. The token can be redeemed once, only as an iframe load, and never replaces a different user's existing session. The session belongs to the API key's creator, is re-checked against team membership at redemption, and is set as a partitioned cookie scoped to the Gmail embed only.
tags:
- Templates
responses:
'200':
description: OK
content:
application/json:
schema:
type: object
required:
- token
- expires_at
properties:
token:
type: string
expires_at:
type: string
format: date-time
'401':
description: Missing or invalid credential.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
'403':
description: Called with an OAuth token — embed tokens can only be minted with an API key.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
security:
- BearerApiKey: []
operationId: postV1EmbedToken
x-operation-id-source: derived
servers:
- url: https://app.getdealboard.com
description: Production
components:
schemas:
ErrorEnvelope:
type: object
required:
- error
properties:
error:
type: object
required:
- type
- code
- message
- request_id
properties:
type:
type: string
description: Coarse machine-readable category.
enum:
- authentication_error
- permission_error
- invalid_request_error
- not_found
- rate_limit_error
- conflict_error
- unsupported_media_type
- method_not_allowed
- api_error
code:
type: string
description: Finer-grained error code.
message:
type: string
description: Human-readable English explanation.
request_id:
type: string
description: The Dealboard-Request-Id assigned to this request. Quote this when filing a bug.
securitySchemes:
BearerApiKey:
type: http
scheme: bearer
bearerFormat: dlb_live_<43-char-base62>
description: API keys are workspace-scoped and inherit the creator's role. Generate in Workspace Settings → API Keys.
BearerOAuth:
type: http
scheme: bearer
bearerFormat: JWT
description: OAuth 2.1 access token (audience-bound to the /mcp resource). Obtained via the authorization-code + PKCE flow — discovery at /.well-known/oauth-authorization-server. Used by the remote MCP endpoint (/mcp) and accepted on /v1/* as well; effective permission is the granted scopes intersected with the user's workspace role.
bearer:
type: http
scheme: bearer
x-refined-from:
- openapi.json
- dealboard-openapi-generated.yml
- dealboard-openapi.json