Urbit Developers
  • Hoon

    • Overview
    • Cheat Sheet
    • Irregular forms
    • Hoon Errors
    • Hoon Style Guide
    • Basic Types
    • Advanced Types
    • Auras
    • Arvo
    • Standard Library

      • 1a: Basic Arithmetic
      • 1b: Tree Addressing
      • 1c: Molds and Mold-Builders
      • 2a: Unit Logic
      • 2b: List Logic
      • 2c: Bit Arithmetic
      • 2d: Bit Logic
      • 2e: Insecure Hashing
      • 2f: Noun Ordering
      • 2g: Unsigned Powers
      • 2h: Set Logic
      • 2i: Map Logic
      • 2j: Jar and Jug Logic
      • 2k: Queue Logic
      • 2l: Container from Container
      • 2m: Container from Noun
      • 2n: Functional Hacks
      • 2o: Normalizing Containers
      • 2p: Serialization
      • 2q: Molds and Mold-Builders
      • 3a: Modular and Signed Ints
      • 3b: Floating Point
      • 3c: Urbit Time
      • 3d: SHA Hash Family
      • 3e: AES encryption (Removed)
      • 3f: Scrambling
      • 3g: Molds and Mold-Builders
      • 4a: Exotic Bases
      • 4b: Text Processing
      • 4c: Tank Printer
      • 4d: Parsing (Tracing)
      • 4e: Parsing (Combinators)
      • 4f: Parsing (Rule-Builders)
      • 4g: Parsing (Outside Caller)
      • 4h: Parsing (ASCII Glyphs)
      • 4i: Parsing (Useful Idioms)
      • 4j: Parsing (Bases and Base Digits)
      • 4k: Atom Printing
      • 4l: Atom Parsing
      • 4m: Formatting Functions
      • 4n: Virtualization
      • 4o: Molds
      • 5a: Compiler Utilities
      • 5b: Macro Expansion
      • 5c: Compiler Backend & Prettyprinter
      • 5d: Parser
      • 5e: Molds and mold builders
      • 5f: Profiling support
      • Runes

        • Constants (Atoms and Strings)
        • + lus · Arms
        • | bar · Cores
        • $ buc · Structures
        • % cen · Calls
        • : col · Cells
        • . dot · Nock
        • / fas · Imports
        • ^ ket · Casts
        • ; mic · Make
        • ~ sig · Hints
        • = tis · Subject
        • ? wut · Conditionals
        • ! zap · Wild
        • --, == Terminators
        • Limbs and wings

          • Limbs
          • Wings
          • Zuse

            • 2d(1-5): To JSON, Wains
            • 2d(6): From JSON
            • 2d(7): From JSON (unit)
            • 2e(2-3): Print & Parse JSON
            • 2m: Ordered Maps
          • Arvo

            • Overview
            • Ames

              • Overview
              • Cryptography
              • API Reference
              • Scry Reference
              • Data Types
              • Behn

                • Overview
                • API Reference
                • Scry Reference
                • Examples
                • Clay

                  • Overview
                  • Architecture
                  • Using Clay
                  • Data Types
                  • Scry Reference
                  • API Reference
                  • Examples
                  • Marks

                    • Overview
                    • Writing Marks
                    • Using Marks
                    • Examples
                  • Dill

                    • Overview
                    • API Reference
                    • Scry Reference
                    • Data Types
                    • Eyre

                      • Overview
                      • External API Reference
                      • Internal API Reference
                      • Scry Reference
                      • Data Types
                      • Guide
                      • Gall

                        • Overview
                        • API Reference
                        • Scry Reference
                        • Data Types
                        • Iris

                          • Overview
                          • API Reference
                          • Data Types
                          • Example
                          • Jael

                            • Overview
                            • API Reference
                            • Scry Reference
                            • Data Types
                            • Examples
                            • Khan

                              • Overview
                              • API Reference
                              • Data Types
                              • Example
                              • Threads

                                • Overview
                                • HTTP API
                                • Reference
                                • Strandio
                                • Gall

                                  • Start Thread
                                  • Take Result
                                  • Take Facts
                                  • Stop Thread
                                  • Poke Thread
                                  • Examples

                                    • Fetch JSON
                                    • Child Thread
                                    • Main-loop
                                    • Poke Agent
                                    • Scry
                                    • Take Fact
                                  • Concepts

                                    • Scries
                                    • Subscriptions
                                    • Tutorials

                                      • Move Trace
                                      • Reference

                                        • Cryptography
                                        • Filesystem Hierarchy
                                      • Nock

                                        • Nock Definition
                                        • Explanation
                                        • Example
                                        • Implementations
                                        • Vere

                                          • C Runtime System
                                          • Land of Nouns
                                          • API overview by prefix
                                          • C in Urbit
                                          • Writing Jets
                                          • Cryptography
                                          • Azimuth

                                            • Overview
                                            • Urbit HD Wallet
                                            • Azimuth Data Flow
                                            • Azimuth.eth
                                            • Ecliptic.eth
                                            • Advanced Azimuth Tools
                                            • Life and Rift
                                            • Layer 2

                                              • Layer 2 Overview
                                              • Layer 2 Actions
                                              • Transaction Format
                                              • Rollers
                                              • Roller HTTP RPC-API
                                              • Custom Roller Tutorial
                                            • Glossary

                                              • Agent
                                              • Ames
                                              • API
                                              • Aqua
                                              • Arm
                                              • Arvo
                                              • Atom
                                              • Aura
                                              • Aural ASCII
                                              • Azimuth
                                              • Battery
                                              • Behn
                                              • Bowl
                                              • Bridge
                                              • Bunt
                                              • Card
                                              • Case
                                              • Cask
                                              • Cell
                                              • Censures
                                              • Claims
                                              • Clay
                                              • Cold atom
                                              • Comet
                                              • Commit
                                              • Cons
                                              • Context
                                              • Cord
                                              • Core
                                              • Delegated Sending
                                              • Desk
                                              • Dill
                                              • Document Proposal
                                              • Dojo
                                              • Door
                                              • Double-boot
                                              • Dry Gate
                                              • Duct
                                              • Ecliptic
                                              • Entropy
                                              • Event Log
                                              • Eyre
                                              • Face
                                              • Fact
                                              • Foo Bar Baz
                                              • Galaxy
                                              • Gall
                                              • Garden
                                              • Gate
                                              • Generator
                                              • Gift
                                              • Glob
                                              • HD Wallet
                                              • Helm
                                              • Hood
                                              • Hoon
                                              • Invite Tree
                                              • Iris
                                              • Jael
                                              • Jet
                                              • Kelvin versioning
                                              • Kernel
                                              • Keyfile
                                              • Keywords
                                              • Khan
                                              • Kiln
                                              • Landscape
                                              • Leg
                                              • List
                                              • Loobean
                                              • Lull
                                              • Mark
                                              • Metals
                                              • Mold
                                              • Monad
                                              • Moon
                                              • Move
                                              • Nock
                                              • Noun
                                              • ~
                                              • OTA Updates
                                              • Path Prefix
                                              • Path
                                              • @p
                                              • Payload
                                              • Peek
                                              • pH
                                              • Pier
                                              • Pill
                                              • Planet
                                              • Poke
                                              • Proxies
                                              • Scry
                                              • Replay
                                              • Factory Reset
                                              • Roller
                                              • Naive rollups
                                              • Rune
                                              • Runtime
                                              • Sail
                                              • Sample
                                              • Scry
                                              • Senate
                                              • Ship
                                              • Slam
                                              • Spider
                                              • Sponsor
                                              • Star
                                              • String
                                              • Subject Oriented Programming
                                              • Subject
                                              • Subscription
                                              • Tape
                                              • Thread
                                              • Trap
                                              • Udon
                                              • Upgrade Proposal
                                              • Userspace
                                              • Vane
                                              • Vase
                                              • Vere
                                              • Voting
                                              • Warm atom
                                              • Wet Gate
                                              • Wing
                                              • Wire
                                              • Wrapper
                                              • ~zod
                                              • Zuse
                                              • Additional

                                                • Cryptography
                                                • Mips (Maps of Maps)
                                                • Software Distribution

                                                  • Overview
                                                  • Docket File
                                                  • Glob
                                                  • Docs App

                                                    • Overview
                                                    • File Format
                                                    • Index File
                                                    • Suggested Structure
                                                    • Auth Server

                                                      • Overview
                                                      • Subscriptions
                                                      • Scry Paths
                                                      • Types
                                                    Urbit Developers
                                                    • Hoon

                                                      • Overview
                                                      • Cheat Sheet
                                                      • Irregular forms
                                                      • Hoon Errors
                                                      • Hoon Style Guide
                                                      • Basic Types
                                                      • Advanced Types
                                                      • Auras
                                                      • Arvo
                                                      • Standard Library

                                                        • 1a: Basic Arithmetic
                                                        • 1b: Tree Addressing
                                                        • 1c: Molds and Mold-Builders
                                                        • 2a: Unit Logic
                                                        • 2b: List Logic
                                                        • 2c: Bit Arithmetic
                                                        • 2d: Bit Logic
                                                        • 2e: Insecure Hashing
                                                        • 2f: Noun Ordering
                                                        • 2g: Unsigned Powers
                                                        • 2h: Set Logic
                                                        • 2i: Map Logic
                                                        • 2j: Jar and Jug Logic
                                                        • 2k: Queue Logic
                                                        • 2l: Container from Container
                                                        • 2m: Container from Noun
                                                        • 2n: Functional Hacks
                                                        • 2o: Normalizing Containers
                                                        • 2p: Serialization
                                                        • 2q: Molds and Mold-Builders
                                                        • 3a: Modular and Signed Ints
                                                        • 3b: Floating Point
                                                        • 3c: Urbit Time
                                                        • 3d: SHA Hash Family
                                                        • 3e: AES encryption (Removed)
                                                        • 3f: Scrambling
                                                        • 3g: Molds and Mold-Builders
                                                        • 4a: Exotic Bases
                                                        • 4b: Text Processing
                                                        • 4c: Tank Printer
                                                        • 4d: Parsing (Tracing)
                                                        • 4e: Parsing (Combinators)
                                                        • 4f: Parsing (Rule-Builders)
                                                        • 4g: Parsing (Outside Caller)
                                                        • 4h: Parsing (ASCII Glyphs)
                                                        • 4i: Parsing (Useful Idioms)
                                                        • 4j: Parsing (Bases and Base Digits)
                                                        • 4k: Atom Printing
                                                        • 4l: Atom Parsing
                                                        • 4m: Formatting Functions
                                                        • 4n: Virtualization
                                                        • 4o: Molds
                                                        • 5a: Compiler Utilities
                                                        • 5b: Macro Expansion
                                                        • 5c: Compiler Backend & Prettyprinter
                                                        • 5d: Parser
                                                        • 5e: Molds and mold builders
                                                        • 5f: Profiling support
                                                        • Runes

                                                          • Constants (Atoms and Strings)
                                                          • + lus · Arms
                                                          • | bar · Cores
                                                          • $ buc · Structures
                                                          • % cen · Calls
                                                          • : col · Cells
                                                          • . dot · Nock
                                                          • / fas · Imports
                                                          • ^ ket · Casts
                                                          • ; mic · Make
                                                          • ~ sig · Hints
                                                          • = tis · Subject
                                                          • ? wut · Conditionals
                                                          • ! zap · Wild
                                                          • --, == Terminators
                                                          • Limbs and wings

                                                            • Limbs
                                                            • Wings
                                                            • Zuse

                                                              • 2d(1-5): To JSON, Wains
                                                              • 2d(6): From JSON
                                                              • 2d(7): From JSON (unit)
                                                              • 2e(2-3): Print & Parse JSON
                                                              • 2m: Ordered Maps
                                                            • Arvo

                                                              • Overview
                                                              • Ames

                                                                • Overview
                                                                • Cryptography
                                                                • API Reference
                                                                • Scry Reference
                                                                • Data Types
                                                                • Behn

                                                                  • Overview
                                                                  • API Reference
                                                                  • Scry Reference
                                                                  • Examples
                                                                  • Clay

                                                                    • Overview
                                                                    • Architecture
                                                                    • Using Clay
                                                                    • Data Types
                                                                    • Scry Reference
                                                                    • API Reference
                                                                    • Examples
                                                                    • Marks

                                                                      • Overview
                                                                      • Writing Marks
                                                                      • Using Marks
                                                                      • Examples
                                                                    • Dill

                                                                      • Overview
                                                                      • API Reference
                                                                      • Scry Reference
                                                                      • Data Types
                                                                      • Eyre

                                                                        • Overview
                                                                        • External API Reference
                                                                        • Internal API Reference
                                                                        • Scry Reference
                                                                        • Data Types
                                                                        • Guide
                                                                        • Gall

                                                                          • Overview
                                                                          • API Reference
                                                                          • Scry Reference
                                                                          • Data Types
                                                                          • Iris

                                                                            • Overview
                                                                            • API Reference
                                                                            • Data Types
                                                                            • Example
                                                                            • Jael

                                                                              • Overview
                                                                              • API Reference
                                                                              • Scry Reference
                                                                              • Data Types
                                                                              • Examples
                                                                              • Khan

                                                                                • Overview
                                                                                • API Reference
                                                                                • Data Types
                                                                                • Example
                                                                                • Threads

                                                                                  • Overview
                                                                                  • HTTP API
                                                                                  • Reference
                                                                                  • Strandio
                                                                                  • Gall

                                                                                    • Start Thread
                                                                                    • Take Result
                                                                                    • Take Facts
                                                                                    • Stop Thread
                                                                                    • Poke Thread
                                                                                    • Examples

                                                                                      • Fetch JSON
                                                                                      • Child Thread
                                                                                      • Main-loop
                                                                                      • Poke Agent
                                                                                      • Scry
                                                                                      • Take Fact
                                                                                    • Concepts

                                                                                      • Scries
                                                                                      • Subscriptions
                                                                                      • Tutorials

                                                                                        • Move Trace
                                                                                        • Reference

                                                                                          • Cryptography
                                                                                          • Filesystem Hierarchy
                                                                                        • Nock

                                                                                          • Nock Definition
                                                                                          • Explanation
                                                                                          • Example
                                                                                          • Implementations
                                                                                          • Vere

                                                                                            • C Runtime System
                                                                                            • Land of Nouns
                                                                                            • API overview by prefix
                                                                                            • C in Urbit
                                                                                            • Writing Jets
                                                                                            • Cryptography
                                                                                            • Azimuth

                                                                                              • Overview
                                                                                              • Urbit HD Wallet
                                                                                              • Azimuth Data Flow
                                                                                              • Azimuth.eth
                                                                                              • Ecliptic.eth
                                                                                              • Advanced Azimuth Tools
                                                                                              • Life and Rift
                                                                                              • Layer 2

                                                                                                • Layer 2 Overview
                                                                                                • Layer 2 Actions
                                                                                                • Transaction Format
                                                                                                • Rollers
                                                                                                • Roller HTTP RPC-API
                                                                                                • Custom Roller Tutorial
                                                                                              • Glossary

                                                                                                • Agent
                                                                                                • Ames
                                                                                                • API
                                                                                                • Aqua
                                                                                                • Arm
                                                                                                • Arvo
                                                                                                • Atom
                                                                                                • Aura
                                                                                                • Aural ASCII
                                                                                                • Azimuth
                                                                                                • Battery
                                                                                                • Behn
                                                                                                • Bowl
                                                                                                • Bridge
                                                                                                • Bunt
                                                                                                • Card
                                                                                                • Case
                                                                                                • Cask
                                                                                                • Cell
                                                                                                • Censures
                                                                                                • Claims
                                                                                                • Clay
                                                                                                • Cold atom
                                                                                                • Comet
                                                                                                • Commit
                                                                                                • Cons
                                                                                                • Context
                                                                                                • Cord
                                                                                                • Core
                                                                                                • Delegated Sending
                                                                                                • Desk
                                                                                                • Dill
                                                                                                • Document Proposal
                                                                                                • Dojo
                                                                                                • Door
                                                                                                • Double-boot
                                                                                                • Dry Gate
                                                                                                • Duct
                                                                                                • Ecliptic
                                                                                                • Entropy
                                                                                                • Event Log
                                                                                                • Eyre
                                                                                                • Face
                                                                                                • Fact
                                                                                                • Foo Bar Baz
                                                                                                • Galaxy
                                                                                                • Gall
                                                                                                • Garden
                                                                                                • Gate
                                                                                                • Generator
                                                                                                • Gift
                                                                                                • Glob
                                                                                                • HD Wallet
                                                                                                • Helm
                                                                                                • Hood
                                                                                                • Hoon
                                                                                                • Invite Tree
                                                                                                • Iris
                                                                                                • Jael
                                                                                                • Jet
                                                                                                • Kelvin versioning
                                                                                                • Kernel
                                                                                                • Keyfile
                                                                                                • Keywords
                                                                                                • Khan
                                                                                                • Kiln
                                                                                                • Landscape
                                                                                                • Leg
                                                                                                • List
                                                                                                • Loobean
                                                                                                • Lull
                                                                                                • Mark
                                                                                                • Metals
                                                                                                • Mold
                                                                                                • Monad
                                                                                                • Moon
                                                                                                • Move
                                                                                                • Nock
                                                                                                • Noun
                                                                                                • ~
                                                                                                • OTA Updates
                                                                                                • Path Prefix
                                                                                                • Path
                                                                                                • @p
                                                                                                • Payload
                                                                                                • Peek
                                                                                                • pH
                                                                                                • Pier
                                                                                                • Pill
                                                                                                • Planet
                                                                                                • Poke
                                                                                                • Proxies
                                                                                                • Scry
                                                                                                • Replay
                                                                                                • Factory Reset
                                                                                                • Roller
                                                                                                • Naive rollups
                                                                                                • Rune
                                                                                                • Runtime
                                                                                                • Sail
                                                                                                • Sample
                                                                                                • Scry
                                                                                                • Senate
                                                                                                • Ship
                                                                                                • Slam
                                                                                                • Spider
                                                                                                • Sponsor
                                                                                                • Star
                                                                                                • String
                                                                                                • Subject Oriented Programming
                                                                                                • Subject
                                                                                                • Subscription
                                                                                                • Tape
                                                                                                • Thread
                                                                                                • Trap
                                                                                                • Udon
                                                                                                • Upgrade Proposal
                                                                                                • Userspace
                                                                                                • Vane
                                                                                                • Vase
                                                                                                • Vere
                                                                                                • Voting
                                                                                                • Warm atom
                                                                                                • Wet Gate
                                                                                                • Wing
                                                                                                • Wire
                                                                                                • Wrapper
                                                                                                • ~zod
                                                                                                • Zuse
                                                                                                • Additional

                                                                                                  • Cryptography
                                                                                                  • Mips (Maps of Maps)
                                                                                                  • Software Distribution

                                                                                                    • Overview
                                                                                                    • Docket File
                                                                                                    • Glob
                                                                                                    • Docs App

                                                                                                      • Overview
                                                                                                      • File Format
                                                                                                      • Index File
                                                                                                      • Suggested Structure
                                                                                                      • Auth Server

                                                                                                        • Overview
                                                                                                        • Subscriptions
                                                                                                        • Scry Paths
                                                                                                        • Types
                                                                                                      Reference/Additional/Auth Server

                                                                                                      Types

                                                                                                      logs

                                                                                                      A list of requests, their ids, and their current results. These are given in the various initialization updates.

                                                                                                      Example

                                                                                                      [
                                                                                                      {
                                                                                                      "id": "7e16a2f5-b955-47c3-b921-da349c0e2c24",
                                                                                                      "request": {
                                                                                                      "ship": "zod",
                                                                                                      "turf": "localhost",
                                                                                                      "user": "foobar123",
                                                                                                      "code": 123456,
                                                                                                      "msg": "blah blah blah",
                                                                                                      "expire": 1679820698574,
                                                                                                      "time": 1679819798574
                                                                                                      },
                                                                                                      "result": "yes"
                                                                                                      },
                                                                                                      {
                                                                                                      "id": "d63971cc-453f-49a8-868f-02e2ff768ed2",
                                                                                                      "request": {
                                                                                                      "ship": "zod",
                                                                                                      "turf": "localhost",
                                                                                                      "user": "xyz",
                                                                                                      "code": 123456,
                                                                                                      "msg": null,
                                                                                                      "expire": 1679820699556,
                                                                                                      "time": 1679819799556
                                                                                                      },
                                                                                                      "result": "yes"
                                                                                                      },
                                                                                                      {
                                                                                                      "id": "587f6be9-1dca-4310-9239-ea541943f0e0",
                                                                                                      "request": {
                                                                                                      "ship": "zod",
                                                                                                      "turf": "localhost",
                                                                                                      "user": null,
                                                                                                      "code": null,
                                                                                                      "msg": "blah blah blah",
                                                                                                      "expire": 1679820700233,
                                                                                                      "time": 1679819800233
                                                                                                      },
                                                                                                      "result": "no"
                                                                                                      }
                                                                                                      ]

                                                                                                      manifest

                                                                                                      An array of proofs. This is published at <domain>/.well-known/appspecific/org.urbit.auth.json, and then Auth Client uses it to validate requests.

                                                                                                      Example

                                                                                                      [
                                                                                                      {
                                                                                                      "turf": "example.com",
                                                                                                      "life": 1,
                                                                                                      "ship": "zod",
                                                                                                      "sign": "jtvkTK0JMizoY12Kw51R11OSKzmtCt2WHB3ev32R+k32O+Y6rJ7jHtrRizm0/0aKwJIO8X5PbDHwdti296XLCQ=="
                                                                                                      }
                                                                                                      ]

                                                                                                      proof

                                                                                                      An attestation that a ship is an agent of a site. An array of such proofs are published at <domain>/.well-known/appspecific/org.urbit.auth.json in a manifest, and then Auth Client uses them to validate requests.

                                                                                                      Example

                                                                                                      {
                                                                                                      "turf": "example.com",
                                                                                                      "life": 1,
                                                                                                      "ship": "zod",
                                                                                                      "sign": "jtvkTK0JMizoY12Kw51R11OSKzmtCt2WHB3ev32R+k32O+Y6rJ7jHtrRizm0/0aKwJIO8X5PbDHwdti296XLCQ=="
                                                                                                      }

                                                                                                      request

                                                                                                      An authorization request. The user, code and msg fields are all optional and may be null if not used. The expire field is the date-time that the request should expire, as milliseconds since the Unix Epoch. The time field is the timestamp of the request - you'd typically use now.

                                                                                                      Examples

                                                                                                      {
                                                                                                      "ship": "zod",
                                                                                                      "turf": "example.com",
                                                                                                      "user": "foo123",
                                                                                                      "code": 1234,
                                                                                                      "msg": "blah blah blah",
                                                                                                      "expire": 1679820700233,
                                                                                                      "time" 1679819800233,
                                                                                                      }
                                                                                                      {
                                                                                                      "ship": "zod",
                                                                                                      "turf": "example.com",
                                                                                                      "user": null,
                                                                                                      "code": null,
                                                                                                      "msg": null,
                                                                                                      "expire": 1679820700233,
                                                                                                      "time" 1679819800233,
                                                                                                      }

                                                                                                      result

                                                                                                      The status of an authorization request. It may be one of:

                                                                                                      • "yes" - The request was approved.
                                                                                                      • "no" - The request was denied.
                                                                                                      • "expire" - The request expired without the user approving or denying it.
                                                                                                      • "got" - The user's ship received the request, but they have not yet approved or denied it.
                                                                                                      • "sent" - Auth Server has sent the request; the user's ship has not yet confirmed receipt.
                                                                                                      • "abort" - You have given Auth Server a cancel action, so the request has been cancelled.
                                                                                                      • "error" - The request failed. This will occur if the user's ship rejected the request (nack'd the poke) or Auth Server was unable to subscribe to their ship for the result. This should not normally occur.

                                                                                                      The typical flow is "sent" -> "got" -> "yes" or "no". At any point in that flow, it may expire in which case you'll get "expire" and nothing further. The transitional states are therefore "sent" and "got", with the remaining being terminal.


                                                                                                      ship

                                                                                                      An Urbit ship. The ship is a string and does not include the leading ~.

                                                                                                      Examples

                                                                                                      "zod"
                                                                                                      "sampel-palnet"
                                                                                                      "livbes-minwyn-sicmev-halner--soplyt-nimfyl-widnyd-difwyx"

                                                                                                      sign

                                                                                                      Ed25519 signature of the domain name with the ship's keys, encoded in a string as Base64.

                                                                                                      This is used in a proof to attest that a particular ship is an agent of a particular site.

                                                                                                      Example

                                                                                                      "jtvkTK0JMizoY12Kw51R11OSKzmtCt2WHB3ev32R+k32O+Y6rJ7jHtrRizm0/0aKwJIO8X5PbDHwdti296XLCQ=="

                                                                                                      id

                                                                                                      A request ID. The id field is a random unique ID for the request, and must be a v4 UUID (variant 1, RFC 4122/DCE 1.1).

                                                                                                      Note this is decoded into a 122-bit @ux atom by %auth-server - the UUID form is only used in JSON, scry paths and subscription paths.

                                                                                                      Example

                                                                                                      "6360904f-7645-4747-91a1-8d7844f11d18"

                                                                                                      turf

                                                                                                      A domain. This must be just the domain like localhost, example.com, foo.bar.baz, etc, without any protocol, forward slashes, port, paths, etc.


                                                                                                      Actions

                                                                                                      Ask Auth Server to either initiate a new authorization request, or cancel an existing one. These are given to Auth Server as pokes.

                                                                                                      new

                                                                                                      Initiate a new authorization request. The new action contains a request structure and a request id.

                                                                                                      Example

                                                                                                      {
                                                                                                      "new": {
                                                                                                      "id": "6360904f-7645-4747-91a1-8d7844f11d18",
                                                                                                      "request": {
                                                                                                      "ship": "zod",
                                                                                                      "turf": "localhost",
                                                                                                      "user": "foobar123",
                                                                                                      "code": 123456,
                                                                                                      "msg": "blah blah blah",
                                                                                                      "expire": 1679820700233,
                                                                                                      "time" 1679819800233
                                                                                                      }
                                                                                                      }
                                                                                                      }

                                                                                                      cancel

                                                                                                      Cancel an existing request. The id in the ID of the request you want to cancel.

                                                                                                      Example

                                                                                                      {"cancel": {"id": "6360904f-7645-4747-91a1-8d7844f11d18"}}

                                                                                                      Updates

                                                                                                      The types of event/update that Auth Server can send back to you.

                                                                                                      entry

                                                                                                      This will be sent back to you whenever you make a new request with a new action. It contains the request id, request and initial result. The initial result will typically be sent, unless you specified an expiration time before the current time, in which case it'll be expire.

                                                                                                      Example

                                                                                                      {
                                                                                                      "entry": {
                                                                                                      "id": "6360904f-7645-4747-91a1-8d7844f11d18",
                                                                                                      "request": {
                                                                                                      "code": 123456,
                                                                                                      "turf": "localhost",
                                                                                                      "ship": "zod",
                                                                                                      "msg": "blah blah blah",
                                                                                                      "user": "@user123",
                                                                                                      "expire": 1679820700233,
                                                                                                      "time" 1679819800233
                                                                                                      },
                                                                                                      "result": "sent"
                                                                                                      }
                                                                                                      }

                                                                                                      status

                                                                                                      A status update will be sent back whenever the status of a request changes, for example if the user receives the request, the user approves or denies the request, the request expires, etc. It contains a request id and a result.

                                                                                                      Examples

                                                                                                      {
                                                                                                      "status": {
                                                                                                      "id": "6360904f-7645-4747-91a1-8d7844f11d18",
                                                                                                      "result": "yes"
                                                                                                      }
                                                                                                      }
                                                                                                      {
                                                                                                      "status": {
                                                                                                      "id": "6360904f-7645-4747-91a1-8d7844f11d18",
                                                                                                      "result": "got"
                                                                                                      }
                                                                                                      }

                                                                                                      initAll

                                                                                                      This is sent as the inital update when you first subscribe to one of the /init/all/... paths. It's also returned by some of the scry paths. It contains existing entries, possibly limited to entries before or after a specific timestamp.

                                                                                                      It contains a logs field with the entries themselves, and also before and after fields which will either contain Unix millisecond times or else be null if no such limits were specified.

                                                                                                      Example

                                                                                                      {
                                                                                                      "initAll": {
                                                                                                      "since": null,
                                                                                                      "before": null,
                                                                                                      "logs": [
                                                                                                      {
                                                                                                      "id": "0782ebea-e8d3-4c6a-bf1c-5c336c82a0d3",
                                                                                                      "request": {
                                                                                                      "code": 123456,
                                                                                                      "turf": "localhost",
                                                                                                      "ship": "zod",
                                                                                                      "msg": "blah blah",
                                                                                                      "user": "foobar123",
                                                                                                      "expire": 1679827515744,
                                                                                                      "time": 1679826615744
                                                                                                      },
                                                                                                      "result": "yes"
                                                                                                      },
                                                                                                      {
                                                                                                      "id": "4c54c5d9-6584-4d3b-ab62-e55f5f2033c4",
                                                                                                      "request": {
                                                                                                      "code": 123456,
                                                                                                      "turf": "localhost",
                                                                                                      "ship": "zod",
                                                                                                      "msg": "foo bar baz",
                                                                                                      "user": null,
                                                                                                      "expire": 1679827571421,
                                                                                                      "time": 1679826671421
                                                                                                      },
                                                                                                      "result": "no"
                                                                                                      },
                                                                                                      ]
                                                                                                      }
                                                                                                      }

                                                                                                      initTurf

                                                                                                      This is sent as the inital update when you first subscribe to one of the /init/turf/... paths. It's also returned by some of the scry paths. It contains existing entries for a specific turf (domain), possibly limited to entries before or after a specific timestamp.

                                                                                                      It contains a turf field showing which domain it's for, a logs field with the entries themselves, and also before and after fields which will either contain Unix millisecond timestamps or else be null if no such limits were specified.

                                                                                                      Example

                                                                                                      {
                                                                                                      "initTurf": {
                                                                                                      "turf": "localhost",
                                                                                                      "since": null,
                                                                                                      "before": null,
                                                                                                      "logs": [
                                                                                                      {
                                                                                                      "id": "0782ebea-e8d3-4c6a-bf1c-5c336c82a0d3",
                                                                                                      "request": {
                                                                                                      "code": 123456,
                                                                                                      "turf": "localhost",
                                                                                                      "ship": "zod",
                                                                                                      "msg": "blah blah",
                                                                                                      "user": "foobar123",
                                                                                                      "expire": 1679827515744,
                                                                                                      "time": 1679826615744
                                                                                                      },
                                                                                                      "result": "yes"
                                                                                                      },
                                                                                                      {
                                                                                                      "id": "4c54c5d9-6584-4d3b-ab62-e55f5f2033c4",
                                                                                                      "request": {
                                                                                                      "code": 123456,
                                                                                                      "turf": "localhost",
                                                                                                      "ship": "zod",
                                                                                                      "msg": "foo bar baz",
                                                                                                      "user": null,
                                                                                                      "expire": 1679827571421,
                                                                                                      "time": 1679826671421
                                                                                                      },
                                                                                                      "result": "no"
                                                                                                      },
                                                                                                      ]
                                                                                                      }
                                                                                                      }

                                                                                                      initShip

                                                                                                      This is sent as the inital update when you first subscribe to one of the /init/ship/... paths. It's also returned by some of the scry paths. It contains existing entries for a specific ship, possibly limited to entries before or after a specific timestamp.

                                                                                                      It contains a ship field showing which ship it's for, a logs field with the entries themselves, and also before and after fields which will either contain Unix millisecond timestamps or else be null if no such limits were specified.

                                                                                                      Example

                                                                                                      {
                                                                                                      "initShip": {
                                                                                                      "ship": "zod",
                                                                                                      "since": null,
                                                                                                      "before": null,
                                                                                                      "logs": [
                                                                                                      {
                                                                                                      "id": "0782ebea-e8d3-4c6a-bf1c-5c336c82a0d3",
                                                                                                      "request": {
                                                                                                      "code": 123456,
                                                                                                      "turf": "localhost",
                                                                                                      "ship": "zod",
                                                                                                      "msg": "blah blah",
                                                                                                      "user": "foobar123",
                                                                                                      "expire": 1679827515744,
                                                                                                      "time": 1679826615744
                                                                                                      },
                                                                                                      "result": "yes"
                                                                                                      },
                                                                                                      {
                                                                                                      "id": "4c54c5d9-6584-4d3b-ab62-e55f5f2033c4",
                                                                                                      "request": {
                                                                                                      "code": 123456,
                                                                                                      "turf": "localhost",
                                                                                                      "ship": "zod",
                                                                                                      "msg": "foo bar baz",
                                                                                                      "user": null,
                                                                                                      "expire": 1679827571421,
                                                                                                      "time": 1679826671421
                                                                                                      },
                                                                                                      "result": "no"
                                                                                                      },
                                                                                                      ]
                                                                                                      }
                                                                                                      }

                                                                                                      <-

                                                                                                      Scry Paths

                                                                                                      Edit this page on GitHub

                                                                                                      Last modified September 22, 2023