📘
Sinch | Documentation Global
  • Introduction
  • Glossary
  • GETTING STARTED - MENU
    • Sinch Messaging Platform
      • Login, Language & Menu
      • Account & Settings
      • Dashboard
      • Contacts
      • Groups
  • Credits and limits
    • Signing of plans
    • Limits
  • Send a message
    • Send a fast message
    • How to Send a Message
    • How to Set Up a File
    • Mapped errors
    • Campaigns
    • Correlation ID
    • Tracking Sent Messages
    • Cancelling a Message
    • Character Limit Setting
    • MM2: New Report: Chat (MT + MO)
    • SMS Report > RCS
  • Reports
    • Viewing & Exporting Reports
      • New WhatsApp Conversation report
      • Getting to know the new reports
    • Saved Reports
    • WhatsApp Lists
    • Billing Report
  • Permission
    • System User Role
    • Managing Customers | Subaccounts
    • Permission Levels
    • Subaccounts & Users
    • IP Restriction
    • Two-step Verification
  • SMS
    • SMS Template
    • SMS BOT
  • RCS
    • RCS (Native)
  • WHATSAPP
    • WhatsApp Embedded Signup
      • Prerequisites
      • Registering your WhatsApp Number
      • Verifying your Company on Business Manager
      • Potential Errors During the Embedded Signup Flow
    • Human Assistance Policy
    • WhatsApp Guidelines
    • Instructions & Good Practices
      • Channel Rules
      • Learn More About Tiers
      • Good Practices
    • WA Template - What Is It?
    • Registering a Template
    • Deleting a WA Template
    • WhatsApp Account Settings
    • WhatsApp Dashboard
    • Tech Providers - What is it and how does it work?
  • IA CONVERSATIONAL
    • Planning your bot
    • Creating a new bot
    • Adding content to your bot
      • Detecting information in expressions
      • Asking user info through input validation
      • Flow navigation with variables
    • Bot dialogs
      • Bot message
      • Go To
      • Input Validation
      • Action
    • Publishing & platform URLs FAQ
  • TECHNICAL DOCUMENTATION
    • API & Integrations
      • Introduction - Integrations
      • SMS API
      • Email API
      • Fallback API
      • WhatsApp API
      • WhatsApp Groups API
      • Listing Message Templates
      • WhatsApp Interactive API
      • WhatsApp Lists via API
      • WhatsApp Messaging via SFTP
      • Campaigns API
      • TTL - Time to Live
      • Webhook
  • SUPPORT
    • Status
    • Glossary - Status Page Components
    • Support
  • STATUS PAGE
    • Components status page
      • Integrations
        • SMPP
        • Web service API
        • Web Interface
      • Callback / Delivery Report
        • Webhook DLR (delivery to handset)
        • SMPP DLR (delivery to handset)
        • SMPP Callback (delivery to carrier)
        • Webhook Callback (delivery to carrier)
      • OPERATORS
      • WhatsApp Sending messages to the user (MT)
        • Internal Queues MT
      • WhatsApp Receiving User Messages (MO)
        • Internal Queues (MO)
Powered by GitBook
On this page
  • Authentication
  • Connection Details
  • Listing Campaigns
  • QueryString Parameters
  • Informing the total number of campaigns there are and Displaying right below:
  • Showing
  • Requesting for a Campaign
  • Creating a Campaign
  • JSON Parameters
  • Changing a Campaign
  • JSON Parameters
  • Deleting a Campaign

Was this helpful?

  1. TECHNICAL DOCUMENTATION
  2. API & Integrations

Campaigns API

Technical Documentation: Campaigns API

Authentication

Authentication for queries via API has a standard format, and you must provide a valid username (email) associated with authentication token (see how to access your data). You must add the following headers to the request:

Field

Details

Data Type

UserName

Valid e-mail subscribed in ChatClub Platform.

String

AutenticaçãoToken

String

Connection Details

Hostname

apigw.wavy.global

Port

443 (https)

Protocol

HTTPS (TLS encryption)

Authentication

username + token

Encoding

UTF-8

Listing Campaigns

List of campaigns already registered in the platform. You can page results or filter by campaign name.

GET https://apigw.wavy.global/api/v1/campaigns

QueryString Parameters

* Required field

Field

Details

Type

name

Campaign’s name to be used as a filter for listing

String

page

Page to be listed

Integer

page_size

Total campaigns per page

Integer

Positive response

HEADERS:

page-number: 1
per-page: 10
total: 2
total-pages: 1

Informing the total number of campaigns there are and Displaying right below:

{
 "status": {
 "error": false
 },
 "campaigns": [
 {
 "name": "My first campaign",
 "id": 1,
 "alias": "first"
 },
 {
 "name": "My second campaign",
 "id": 2,
 "alias": "second"
 }
 ]
}

Showing

Requesting for a Campaign

Requests for the data of a campaign by registration ID

You need to know the registration ID in advance

GET https://apigw.wavy.global/api/v1/campaign/{id}

Creating a Campaign

Example of campaign creation:

Creating a new campaign with name and alias. The campaign alias should be a simple name to make it easier to use with the API. It is recommended to be short and do not use special characters.

POST https://apigw.wavy.global/api/v1/campaigns

JSON Parameters

* Required field

Field

Details

Type

name*

Campaign name

String

alias

Campaign identifier to be used in the API

String

Call


{
 "campaign" : {
 "name": "My Campaign2019",
 "alias": "mycampaign2019"
 }
 }
Response
{
 "status": {
 "error": false
 },
 "campaign": {
 "name": "My Campaign",
 "id": 1234,
 "alias": "mycampaign"
 }
}

Changing a Campaign

Changing a campaign by modifying its name and/or alias.

PUT https://apigw.wavy.global/api/v1/campaigns/{id}

You must include the {id} of the campaign you wish to change

JSON Parameters

* Required field

Field

Details

Type

name*

Campaign name

String

alias

Campaign identifier to be used in the API

String

Call

{
 "campaign" : {
 "name": "My Campaign",
 "alias": "mycampaign"
 }
 }
Response
{
 "status": {
 "error": false
 },
 "campaign": {
 "name": "My Campaign",
 "id": 1234,
 "alias": "mycampaign"
 }
}

Deleting a Campaign

Deleting a campaign by its ID.

DELETE https://apigw.wavy.global/api/v1/campaigns/{id}

You must include the {id} of the campaign you wish to change

PreviousWhatsApp Messaging via SFTPNextTTL - Time to Live

Last updated 3 years ago

Was this helpful?

Authentication token generated by our platform. Find it ​ or check our support.

here
Graphical user interface Description automatically generated