Skip to main content
POST
Declare Entity Card

Authorizations

Authorization
string
header
required

A Turtle API key (sk_...) as a bearer token.

Path Parameters

organizationId
string<uuid>
required
Example:

"248df4b7-aa70-47b8-a036-33ac447e668d"

Body

application/json
entity
enum<string>
required

The records the card is for. A deal's card is its board's: declare it with the board.

Available options:
organization,
contact,
document,
task,
wallet,
report
config
object

How records of this kind behave beyond their fields, e.g. a report kind's schedule.

draft
boolean

Hold this write as a draft, even where the permissions would let it through: the agent's waits for a person to approve, a person's own waits for them to confirm it (owner: its author). The response is applied=false with the draft.

evidence
object[] | null
fieldSchema
object[]

The card's fields: an ordered list of {key, kind, …} as on a board's card, without stage. Omitted without a template: a card with no fields.

rationale
string
Maximum string length: 20000
Pattern: ^(?:[^<\p{C}]|[\t\n\r‍]|<+(?:[^<A-Za-z/!?\p{C}]|[\t\n\r‍]|$))*$
source
enum<string>

With a personal API key only: ai records the write as the key owner's agent's (source ai, with the owner as its user), owing the rationale and evidence, and passing the permissions, of any agent write. Omit for a person's own write.

Available options:
ai
template
boolean

Start from the example card in GET /entity-card-templates; a fieldSchema sent too replaces it.

type
string

The kind of record, on an entity whose records come in kinds: a report's type (deal | call-briefing | team-call). Empty elsewhere.

Maximum string length: 200
Pattern: ^(?:[^<\p{C}]|‍|<+(?:[^<A-Za-z/!?\p{C}]|‍|$))*$

Response

OK

applied
boolean
budgets
object[]

How full each budgeted text the write set is, in characters (a note in a list is its own entry, notes[2].text). Never enforced: a text over its budget was written as sent; tighten it when you next rewrite it.

draft
object
entityId
string<uuid>
Example:

"248df4b7-aa70-47b8-a036-33ac447e668d"

migrated
integer
mutation
object