Skip to main content
POST
/
api
/
v1
/
event-subscriptions
Subscribe To Event
curl --request POST \
  --url http://localhost:8000/api/v1/event-subscriptions/ \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "event_type": "local_seo"
}
'
{
  "event_type": "local_seo",
  "id": 123,
  "user": {
    "id": 123,
    "email": "[email protected]",
    "profile": {
      "first_name": "<string>",
      "last_name": "<string>",
      "phone_number": "<string>"
    },
    "is_google_recaptcha_response_valid": true
  },
  "date_added": "2023-11-07T05:31:56Z",
  "date_updated": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Body

application/json

The schema used to create an Event Subscription.

event_type
enum<string>
required
Available options:
local_seo,
meta_ads,
email_marketing,
website_seo,
website_analytics

Response

Successful Response

The schema for the Event Subscriptions API.

event_type
enum<string>
required
Available options:
local_seo,
meta_ads,
email_marketing,
website_seo,
website_analytics
id
integer
required
user
The User who subscribed. · object
required

The schema for a user.

date_added
string<date-time>
required
date_updated
string<date-time>
required