Subscriptions

Create subscription for project.

Changed on

Creates a subscription for the given project.

This object represents the subscription where the project owner has subscribed to.

post/v1/subscriptions

Request

  • Base URL: https://api.openfort.io
  • URL: https://api.openfort.io/v1/subscriptions
  • Auth: one of:
    • HTTP bearer
    • HTTP bearer

Request body

topic'transaction_intent.broadcast' | 'transaction_intent.successful' | 'transaction_intent.cancelled' | 'transaction_intent.failed' | 'balance.project' | 'balance.contract' | 'balance.dev_account' | 'test' | 'user.created' | 'user.updated' | 'user.deleted' | 'account.created' | 'solana_transaction.broadcast' | 'solana_transaction.successful' | 'solana_transaction.failed' | 'funding.session.updated' required

Example request

{
  "triggers": [
    {
      "target": "https://example.com",
      "subscription": "sub_6f6c9067-89fa-4fc8-ac72-c242a268c584"
    }
  ]
}

Response

Successful response.

idstring required
object'subscription' required
createdAtinteger required
topic'transaction_intent.broadcast' | 'transaction_intent.successful' | 'transaction_intent.cancelled' | 'transaction_intent.failed' | 'balance.project' | 'balance.contract' | 'balance.dev_account' | 'test' | 'user.created' | 'user.updated' | 'user.deleted' | 'account.created' | 'solana_transaction.broadcast' | 'solana_transaction.successful' | 'solana_transaction.failed' | 'funding.session.updated' required
updatedAtnumber double

Changes

    • info

      added the new funding.session.updated enum value to the request property

    • info

      the security scope subscriptions:write was added to the endpoint's security scheme sk

    • info

      added the new solana_transaction.broadcast enum value to the request property

    • info

      added the new solana_transaction.failed enum value to the request property

    • info

      added the new solana_transaction.successful enum value to the request property