Contap Social Event API Documentation
For exclusive use and reference of our event partners.
AuthenticationGetting Started
POSThttps://api.contapsocial.com/api/account/user/signup_v2/
Signup on Contap
Parameters
Name | Description |
---|---|
Request body *
(body)
|
{ "email": "email address", "phone_number": "phone number with country code i.e. - +13129780000", "country_code": "country code i.e. - +1", "first_name": "First Name of User", "last_name": "Last Name of User", } |
Response body *
(Success response)
|
{ "success": "true", "message": "Authentication code has been sent successfully." } |
Code | Description |
200 |
Success |
400 |
Failure |
POSThttps://api.contapsocial.com/api/account/user/login_v2/
LoginIn Contap
Parameters
Name | Description |
---|---|
Request body *
(body)
|
{ "email": "email address", "phone_number": "phone number with country code i.e. - +13129780000", "country_code": "country code i.e. - +1", "otp": "enter received authentication code on given phone number from contap", } |
Response body *
(Success response)
|
{ "success": "true address", "token": "API token", "security_token": "security-token", "user": "user details", } |
Code | Description |
200 |
Success |
400 |
Failure |
Create Contap EventsFull API Docs
POSThttps://api.contapsocial.com/api/event/event/
Create Event
Parameters
Name | Description |
---|---|
Request body *
(body)
|
{ "name": "event name", "start_date": "event start date in UTC i.e.- 2019-01-25T09:32:00Z", "end_date": "event end date in UTC i.e.- 2019-01-25T09:32:00Z", "event_display_date_time": "event display date time i.e.- “Friday, January 25, 2019, 4:02 AM - 4:12 AM" , "event_type": "public", "origin": "api", "description": "event URL", "latitude": "event venue latitude i.e.- 23.0608932", "longitude": "event venue longitude i.e.- 72.51930609999999", "email": "event organizer’s email address i.e.- [email protected]", "creator": "user resource URI i.e.- /api/account/user/1", "category": "Event Category”, "location": “Event Venue”, "address": “Event Venue Address”, "city": “Event Venue City”, "tags": List of comma separated tags of Event” i.e. - ["Network", "Sport", "Fitness"], "event_image": { "file": "base64 string of Image i.e.- iVBORw0KGgoAAAA……..", "name": "file name i.e.- test_image.png" "content_type": "image content type i.e.- image/png" } "invite_attendees": List of attendees email IDs” i.e.- ["[email protected]", "[email protected]"], "host": [ { "website": "host 1 website URL", "name": “host name 1” "email": "host 1 email address” i.e.- “[email protected]" "host_image": { "file": "base64 string of Image i.e.- iVBORw0KGgoAAAA……..", "name": "file name i.e.- test_image.png" "content_type": "image content type i.e.- image/png" } "sponsor": [ { "website": "Sponsor 1 website URL", "name": "sponsor name" "description": "Sponsor 1 Description" "location": "Sponsor Location" "sort_order": "1" "sponsorship_level": "gold" "sponsor_image": { "file": "base64 string of Image i.e.- iVBORw0KGgoAAAA……..", "name": "file name i.e.- test_image.png" "content_type": "image content type i.e.- image/png" } } |
Responses
Code | Description |
201 |
Success |
400 |
Failure |
Edit EventsInstantly push edits
PATCHhttps://apidev2.contap.me/api/event/event/ID
Update Event
Parameters
Name | Description |
---|---|
Request body *
(body)
|
{ "name": "event name", "start_date": "event start date in UTC i.e.- 2019-01-25T09:32:00Z", "end_date": "event end date in UTC i.e.- 2019-01-25T09:32:00Z", "event_display_date_time": "event display date time i.e.- “Friday, January 25, 2019, 4:02 AM - 4:12 AM" , "event_type": "public", "origin": "api", "description": "event URL", "latitude": "event venue latitude i.e.- 23.0608932", "longitude": "event venue longitude i.e.- 72.51930609999999", "email": "event organizer’s email address i.e.- [email protected]", "creator": "user resource URI i.e.- /api/account/user/1", "category": "Event Category”, "location": “Event Venue”, "address": “Event Venue Address”, "city": “Event Venue City”, "tags": List of comma separated tags of Event” i.e. - ["Network", "Sport", "Fitness"], "event_image": { "file": "base64 string of Image i.e.- iVBORw0KGgoAAAA……..", "name": "file name i.e.- test_image.png" "content_type": "image content type i.e.- image/png" } "invite_attendees": List of attendees email IDs” i.e.- ["[email protected]", "[email protected]"], "host": [ { "website": "host 1 website URL", "name": “host name 1” "email": "host 1 email address” i.e.- “[email protected]" "host_image": { "file": "base64 string of Image i.e.- iVBORw0KGgoAAAA……..", "name": "file name i.e.- test_image.png" "content_type": "image content type i.e.- image/png" } "sponsor": [ { "website": "Sponsor 1 website URL", "name": "sponsor name" "description": "Sponsor 1 Description" "location": "Sponsor Location" "sort_order": "1" "sponsorship_level": "gold" "sponsor_image": { "file": "base64 string of Image i.e.- iVBORw0KGgoAAAA……..", "name": "file name i.e.- test_image.png" "content_type": "image content type i.e.- image/png" } } |
Code | Description |
201 |
Success |
400 |
Failure |