Intents

Preview an intent without proposing it

Changed on

Runs every check POST /intents runs — the action's feature flag, resource type and id, token binding, who may propose, and the handler's own validation — and returns what the reviewer would read, without minting anything. The draft step for agents: admitted by any proposing scope or read:explore, and the action's own scope is not required, so a user can shape the text before granting the write permission. Same request body as POST /intents (without idempotency_key). Errors are the same as POST /intents would give.

post/intents/preview

Request

  • Base URL: https://api.wefunder.com
  • URL: https://api.wefunder.com/intents/preview
  • Auth: one of:
    • OAuth 2 (authorization code, authorization URL https://wefunder.com/oauth/authorize, token URL https://api.wefunder.com/oauth/token; client credentials, token URL https://api.wefunder.com/oauth/token, scopes: read:explore)
    • OAuth 2 (authorization code, authorization URL https://wefunder.com/oauth/authorize, token URL https://api.wefunder.com/oauth/token; client credentials, token URL https://api.wefunder.com/oauth/token, scopes: write:syndicates)
    • OAuth 2 (authorization code, authorization URL https://wefunder.com/oauth/authorize, token URL https://api.wefunder.com/oauth/token; client credentials, token URL https://api.wefunder.com/oauth/token, scopes: write:comments)

Request body

action_namestring required
resource_typestring required
resource_idstring required
paramsobject

Response

The proposal would be accepted.

Changes

    • info

      the security scope read:explore was added to the endpoint's security scheme bearerAuth

    • info

      the security scope write:comments was removed from the endpoint's security scheme bearerAuth

    • info

      endpoint added