Api Reference

Create invoice

post

Creates a new invoice with the specified rate and period for the authenticated application.

Authorizations
X-API-KeystringRequired

API Key needed to access the endpoints

Body
messagestring · nullableOptional
ratenumber · doubleOptional
periodstring · enumOptionalPossible values:
metadataobject · nullableOptionalExample: {}
Responses
chevron-right
200

Invoice created successfully

application/json
idinteger · int64Optional
ratenumber · doubleOptional
createdAtstring · date-timeOptional
botUrlstring · nullableOptional
post
/api/invoice

Get invoice by id

get

Retrieves a specific invoice by its ID, ensuring it belongs to the authenticated application.

Authorizations
X-API-KeystringRequired

API Key needed to access the endpoints

Path parameters
idinteger · int64Required
Responses
chevron-right
200

Invoice created successfully

idinteger · int64Optional
recipientstring · nullableOptional
ratenumber · doubleOptional
createdAtstring · date-timeOptional
isPaidbooleanOptional
metadataobject · nullableOptionalExample: {}
botUrlstring · nullableOptional
get
/api/invoice/{id}

Get all subscriptions

get

Retrieves all subscriptions for the authenticated application with pagination support.

Authorizations
X-API-KeystringRequired

API Key needed to access the endpoints

Query parameters
pageinteger · int32OptionalDefault: 1
limitinteger · int32OptionalDefault: 50
Responses
chevron-right
200

Returns paginated list of subscriptions

application/json

A paginated response containing items and pagination metadata

totalCountinteger · int32Optional

Total number of items across all pages

pageinteger · int32Optional

Current page number (1-indexed)

limitinteger · int32Optional

Number of items per page

totalPagesinteger · int32Optional

Total number of pages

get
/api/subscriptions

Get subscription by ID

get

Retrieves a specific subscription by its ID, ensuring it belongs to the authenticated application.

Authorizations
X-API-KeystringRequired

API Key needed to access the endpoints

Path parameters
idinteger · int64Required
Responses
chevron-right
200

Returns the requested subscription

application/json

Subscription data model for API responses

idinteger · int64Optional

Unique identifier for the subscription

chainIdinteger · int32Optional

Blockchain chain ID where the subscription is registered

tokenNamestring · nullableOptional

Name of the token used for the subscription payments

txstring · nullableOptional

Transaction hash of the subscription payment

tgUserIdinteger · int64Optional

Telegram user ID associated with the subscription

userAddressstring · nullableOptional

User's wallet address associated with the subscription

createdAtstring · date-timeOptional

Creation timestamp of the subscription

isActiveboolean · booleanOptional

Indicates whether the subscription is currently active

get
/api/subscriptions/{id}

Last updated