{"command":{"effect":"write","timeoutSeconds":30,"inputSchema":{"type":"object","description":"Mints a new relay-scoped token and adds it to the relay's accepted-auth\nregistry. The token value (secret) is shown once in the response. A relay\nmay hold up to 10 tokens; creating an 11th is rejected.\n","properties":{"path":{"type":"object","properties":{"account_id":{"$ref":"#/definitions/moq_account_identifier","description":"Cloudflare account identifier."},"relay_id":{"type":"string","pattern":"^[0-9a-f]{32}$","examples":["a1b2c3d4e5f67890a1b2c3d4e5f67890"],"description":"Relay unique identifier (32 hex characters)."}},"required":["account_id","relay_id"],"additionalProperties":false},"body":{"type":"object","properties":{"expires":{"description":"Optional expiry (RFC 3339). Defaults to 1 year from creation;\nrejected if more than 1 year in the future.\n","type":"string","format":"date-time","examples":["2027-03-27T15:00:00Z"]},"label":{"description":"Optional, customer-set label.","type":"string","examples":["primary-encoder"]},"operations":{"description":"Non-empty subset of the V1 roles the token is allowed to\nperform. Signed into the token.\n","type":"array","items":{"enum":["publish","subscribe"],"type":"string"},"minItems":1,"examples":[["publish","subscribe"]]}},"required":["operations"]}},"required":["path","body"],"additionalProperties":false,"definitions":{"moq_account_identifier":{"description":"Cloudflare account identifier.","type":"string","examples":["023e105f4ecef8ad9ca31a8372d0c353"]}}},"name":"Create a token","id":"cloudflare.moq-relays-tokens-create","example":{"path":{"account_id":"023e105f4ecef8ad9ca31a8372d0c353","relay_id":"a1b2c3d4e5f67890a1b2c3d4e5f67890"},"body":{"operations":["publish","subscribe"]}},"maxRequests":1,"summary":false}}