Skip to content

Register Subscriber

Request

Register Subscriber

Security
sessionAuth
Path
company_idinteger, (int32)required

Company Id of the application

Bodyapplication/json
idinteger, (int32)
namestring
webhook_urlstring
associationobject(Association)
custom_headersobject
statusstring(SubscriberStatus)
  • active: Status is active
  • inactive: Status is inactive
  • blocked: Subscriber is blocked by system due to multiple failed delivery attempts
Enum:"active""inactive""blocked"
email_idstring
auth_metaobject(AuthMeta)
event_idArray of integers, (int32)
curl -i -X POST \
  'https://api.aipim.fynd.com/service/panel/webhook/v1.0/company/{company_id}/subscriber' \
  -H 'Content-Type: application/json' \
  -b cc.session=YOUR_API_KEY_HERE \
  -d '{
    "id": 0,
    "name": "string",
    "webhook_url": "string",
    "association": {
      "company_id": 0,
      "application_id": [
        "string"
      ],
      "extension_id": "string",
      "criteria": "ALL"
    },
    "custom_headers": {},
    "status": "active",
    "email_id": "string",
    "auth_meta": {
      "type": "string",
      "secret": "string"
    },
    "event_id": [
      0
    ]
  }'

Responses

Success

Bodyapplication/json
idinteger, (int32)
namestring
webhook_urlstring
associationobject(Association)
custom_headersobject
statusstring(SubscriberStatus)
  • active: Status is active
  • inactive: Status is inactive
  • blocked: Subscriber is blocked by system due to multiple failed delivery attempts
Enum:"active""inactive""blocked"
email_idstring
auth_metaobject(AuthMeta)
event_idArray of integers, (int32)
Response
{ "id": 0, "name": "string", "webhook_url": "string", "association": { "company_id": 0, "application_id": [ … ], "extension_id": "string", "criteria": "ALL" }, "custom_headers": {}, "status": "active", "email_id": "string", "auth_meta": { "type": "string", "secret": "string" }, "event_id": [ 0 ] }