Subscriptions
Use to manage notifications subscriptions.
Get current users subscriptions
Bearer authentication
A Subscription
Unauthorized
Forbidden
The specified resource was not found
unexpected error
unexpected error
unexpected error
GET /api/v1/subscriptions HTTP/1.1
Host: app.run.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
[
{
"events": [
{
"category": "cat1",
"types": [
"type1",
"type2"
]
},
{
"category": "cat2",
"types": [
"type3",
"type4"
]
}
],
"channels": [
"email",
"email1"
],
"id": "text"
}
]Create user subscription
Bearer authentication
Subscription created successfully
Bad request.
Unauthorized
Forbidden
The specified resource was not found
unexpected error
unexpected error
unexpected error
POST /api/v1/subscriptions HTTP/1.1
Host: app.run.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 144
{
"id": 1234,
"events": [
{
"category": "cat1",
"types": [
"type1",
"type2"
]
},
{
"category": "cat2",
"types": [
"type3",
"type4"
]
}
],
"channels": [
"email",
"email1"
]
}{
"id": 1234,
"events": [
{
"category": "cat1",
"types": [
"type1",
"type2"
]
},
{
"category": "cat2",
"types": [
"type3",
"type4"
]
}
],
"channels": [
"email",
"email1"
]
}Update user subscription
Bearer authentication
Subscription id
Subscription created successfully
Bad request.
Unauthorized
Forbidden
The specified resource was not found
unexpected error
unexpected error
unexpected error
PUT /api/v1/subscriptions/{id} HTTP/1.1
Host: app.run.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 134
{
"events": [
{
"category": "cat1",
"types": [
"type1",
"type2"
]
},
{
"category": "cat2",
"types": [
"type3",
"type4"
]
}
],
"channels": [
"email",
"email1"
]
}{
"id": 1234,
"events": [
{
"category": "cat1",
"types": [
"type1",
"type2"
]
},
{
"category": "cat2",
"types": [
"type3",
"type4"
]
}
],
"channels": [
"email",
"email1"
]
}Delete user subscription
Bearer authentication
Subscription id
Subscription deleted successfully
No content
Bad request.
Unauthorized
Forbidden
The specified resource was not found
unexpected error
unexpected error
unexpected error
DELETE /api/v1/subscriptions/{id} HTTP/1.1
Host: app.run.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
No content
Last updated