Skip to main content
POST
Generate a rule document

Body

application/json
prompt
string
required

The description of the rule, in the words of the user. At most 500 characters after the trim of white space.

Required string length: 1 - 500
siweMessage
string
required

The EIP-4361 message that the user signed, byte for byte. The route verifies these exact bytes.

signature
string
required

The 65-byte personal_sign signature over siweMessage, as 0x hex.

aa
string

The account that the rule is for, so that "my wallet" in the description resolves. Optional.

currentYaml
string

The document that the user edits now, at most 8 KiB. A document with text asks for an edit. An absent or blank value asks for a new document.

now
string

The clock of the user as RFC 3339 with an offset. Send it together with timezone. Without both, a description that needs a date is refused.

timezone
string

The IANA timezone of the user, for example Europe/Berlin. Send it together with now.

Maximum string length: 64

Response

The generated document.

yaml
string
required

The generated rule document. Nothing is committed.