AT Protocol icon

AT Protocol

CRUD records and manage blobs in any AT Protocol repo

Actions8

Record → Create

AI-generated

Summary

Creates a record in the selected AT Protocol collection in the authenticated user’s repo. Builds the record from mapped fields or JSON, adds missing $type and createdAt, handles schema-defined constants and binary blob fields, and validates the record when its lexicon schema can be resolved.

Inputs

  • Collection (required) — Choose a collection from the list or enter its NSID, such as app.bsky.feed.post.
  • Record Key — Choose automatic TID generation (the default) or provide a custom record key when using Custom mode.
  • Record Data (required) — Define fields using the schema-driven mapper, or provide record data as JSON or an expression. If a field is a schema-defined blob, provide the name of a binary property on the incoming item; the node uploads it and inserts the blob reference.
  • Options: Swap Commit (CID) — Optionally provide the expected current repo commit CID. The write is rejected if the repo head does not match.

Output shape

A single output item per input item, containing JSON with the created record's uri and cid.

Record creation uses the authenticated user’s repo. Missing $type and createdAt values are added automatically; lexicon-defined constants, nested types, and blob uploads are also applied when a schema is resolved. If schema resolution fails, the mapper may have no fields; enter record data as JSON or an expression. With Continue On Fail enabled, failures produce an item with error and, when available, message instead.

Links

Discussion