Skip to main content
POST
Create demo repo

Authorizations

Authorization
string
header
required

Auth0 JWT access token. See Authentication for details.

Body

application/json

A request to create a repo from a template. The terms, the roles, the wallets and the initial state all come from the operator's template configuration; a caller can name the template and nothing else.

schemaVersion
string
required
Allowed value: "bitgo-repo-demo.v1"
templateId
string
required
Pattern: ^[\x21-\x7E]{1,255}$
idempotencyKey
string
required

Your key for safe retries, unique within the environment. A retry with the same key and the same request body returns the existing resource with Idempotency-Replayed: true; the same key with a different body answers 409 IDEMPOTENCY_CONFLICT, and a key whose resource recorded no request digest answers 409 IDEMPOTENCY_REPLAY_UNVERIFIABLE. Keys starting with 'match-' are reserved for keys KeyStone derives and are refused.

Required string length: 1 - 255

Response

Replay: the record an earlier request with this key created.

One view of a repo at one revision. The movements are the schedule the terms prescribe, in order, and the phases list exactly their own movements, so a snapshot cannot describe a transfer the terms do not.

schemaVersion
string
required
Allowed value: "bitgo-repo-demo.v1"
repoId
string<uuid>
required
runId
string<uuid>
required
revision
string
required
Maximum string length: 20
Pattern: ^(0|[1-9][0-9]*)$
templateId
string
required
Pattern: ^[\x21-\x7E]{1,255}$
templateDigest
string
required
Pattern: ^[0-9a-f]{64}$
termsDigest
string
required
Pattern: ^[0-9a-f]{64}$
view
enum<string>
required
Available options:
source,
custodian_a,
custodian_b
createdAt
string<date-time>
required
terms
RepoSnapshotTerms · object
required
opening
RepoOpeningPhase · object
required
closing
RepoClosingPhase · object
required
movements
RepoMovement · object[]
required
Required array length: 4 elements
nextActions
any[]
required
blockers
RepoBlocker · object[]
required
Required array length: 1 element
trust
RepoTrust · object
required
authority
RepoAuthority · object
required
decision
RepoDecision · object
required
reservation
RepoReservation · object
required
asOf
RepoAsOf · object
required