To call the API, use the APIKeyID
and APIKeySecret
headers that you created when creating an API key pair.
Each endpoint begins with https://api.postinseconds.com/v1/branchup/
. For example, to get all of the BranchUp users, you would call https://api.postinseconds.com/v1/branchup/users
.
To use the dev version of the API, create an API key pair and select "Dev" when prompted after clicking "Create API Key Pair".
Likewise, to use the prod version, follow the same steps but select "Prod" instead.
All of the endpoints, formats, etc. are exactly the same, but the databases are separate.
Modifies a user in our database. Creates the user if it does not already exist.
user_id required | string The ID of the user. Must be a maximum length of 60 characters and contain only alphanumeric characters, dashes, and underscores. |
User object to update. Only the fields that are being updated need to be included in the request body.
has_premium | boolean Whether the user has an active premium subscription. |
personal_name | string | null The name of the user. Maximum of 60 characters. |
business_name | string | null The name of the business. Maximum of 60 characters. |
contact_email | string | null Email Format: |
contact_phone | string | null Phone Number Format: |
call_to_action | string | null The call to action of the user. Used in videos to tell the viewer what further action they should take (e.g., "I can plan your dream vacation. Link in bio."). Maximum of 60 characters. |
focus_regions | Array of strings (Region) Items Enum: "USA/Canada" "Mexico" "Caribbean" "Central/South America/Antarctica" "Europe" "Africa/Middle East" "Asia" "Australia/New Zealand/South Pacific" The regions that the user focuses on. |
focus_travel_types | Array of strings (TravelType) Items Enum: "Adventure/Soft Adv/Expedition" "All-Inclusive" "Business Travel" "Cultural/Experiential Travel" "Cruise Ocean" "Cruise River" "Diving" "Escorted Vacations" "Family/Multi-Generational Vacations" "Golf" "Group Vacations" "Honeymoon/Wedding/Romantic" "Independent Travel" "Luxury" "Rail Travel" "Religious/Faith Travel" "Ski Vacations" "Vacation Rentals" "Wellness/Health/Spa" The travel types that the user focuses on. |
blocked_video_topics | Array of strings (VideoTopic) Items Enum: "general" "weather" "landmark" "food_to_eat" "hiking_trail" "species" "lighthouse" "things_to_do" "places_to_see" The video topics that the user has blocked. This list will expand over time, and new topics will be default allowed, unless they are specifically blocked. |
{- "has_premium": true,
- "personal_name": "John Doe",
- "business_name": "John Doe Travel",
- "contact_email": "johndoe@travel.com",
- "contact_phone": null,
- "call_to_action": "I can plan your dream vacation. Link in bio.",
- "focus_regions": [
- "USA/Canada",
- "Asia",
- "Africa/Middle East"
], - "focus_travel_types": [
- "Cruise Ocean",
- "Cruise River",
- "Diving"
], - "blocked_video_topics": [
- "lighthouse"
]
}
{- "uid": "ambiSgN0u4htjNFEXrjLD2Jk3Iv1",
- "has_premium": true,
- "personal_name": "John Doe",
- "business_name": "John Doe Travel",
- "contact_email": "johndoe@travel.com",
- "contact_phone": null,
- "call_to_action": "I can plan your dream vacation. Link in bio.",
- "focus_regions": [
- "USA/Canada",
- "Asia",
- "Africa/Middle East"
], - "focus_travel_types": [
- "Cruise Ocean",
- "Cruise River",
- "Diving"
], - "blocked_video_topics": [
- "lighthouse"
]
}
Gets a user from our database.
user_id required | string The ID of the user |
{- "uid": "ambiSgN0u4htjNFEXrjLD2Jk3Iv1",
- "has_premium": true,
- "personal_name": "John Doe",
- "business_name": "John Doe Travel",
- "contact_email": "johndoe@travel.com",
- "contact_phone": null,
- "call_to_action": "I can plan your dream vacation. Link in bio.",
- "focus_regions": [
- "USA/Canada",
- "Asia",
- "Africa/Middle East"
], - "focus_travel_types": [
- "Cruise Ocean",
- "Cruise River",
- "Diving"
], - "blocked_video_topics": [
- "lighthouse"
]
}
Lists all videos for a specific user in our database.
user_id required | string The ID of the user |
page_index | integer The index of the page of users that was returned. Starts at 0. Default is 0. |
page_limit | integer The maximum number of users that were returned per page. Default is 100. |
Filter videos by regions, travel types, and creation time.
regions | Array of strings (Region) Items Enum: "USA/Canada" "Mexico" "Caribbean" "Central/South America/Antarctica" "Europe" "Africa/Middle East" "Asia" "Australia/New Zealand/South Pacific" Filter by regions |
travel_types | Array of strings (TravelType) Items Enum: "Adventure/Soft Adv/Expedition" "All-Inclusive" "Business Travel" "Cultural/Experiential Travel" "Cruise Ocean" "Cruise River" "Diving" "Escorted Vacations" "Family/Multi-Generational Vacations" "Golf" "Group Vacations" "Honeymoon/Wedding/Romantic" "Independent Travel" "Luxury" "Rail Travel" "Religious/Faith Travel" "Ski Vacations" "Vacation Rentals" "Wellness/Health/Spa" Filter by travel types |
start_time_created | number | null Filter by the earliest video creation time |
end_time_created | number | null Filter by the latest video creation time |
{- "regions": [
- "Alaska",
- "Atlantic Islands",
- "West Africa",
- "Mexico"
], - "travel_types": [
- "Cruise Ocean",
- "Cruise River",
- "Diving",
- "Religious/Faith Travel"
], - "start_time_created": 1691216800,
- "end_time_created": 1693216800
}
{- "page_index": 0,
- "page_limit": 100,
- "videos": [
- {
- "video_title": "Aguascalientes, Aguascalientes, Mexico",
- "region": "Mexico",
- "travel_type": "Religious/Faith Travel",
- "video_description": "🌴🌵 Calling all spiritual seekers! 🙏✨ Join us on a journey to Aguascalientes, Aguascalientes, Mexico, where an oasis of tranquility awaits! 🌺🌿\n🏞️ Discover the ancient spiritual site that will leave you in awe 🌅✨. Each stone and tree carries a sacred energy that will uplift your soul. 🌳❤️\n🧘♀️ Embrace the serenity of spiritual traditions as you immerse yourself in this mystical destination. 🙌✨ Let the peaceful vibes guide you towards self-discovery and inner peace. 🕉️🕊️\n🌎 Pack your bags and embark on a spiritual journey like no other! 🚀✈️ Don't miss out on this opportunity to connect with yourself and the divine. 🌌🌠\n\\#Aguascalientes #Mexico #SpiritualJourney #SacredEnergy #InnerPeace #MysticalDestination #TravelAgent #SelfDiscovery #Tranquility #TravelGoals 🌍🌸\n",
- "video_topic": "general",
- "expiration_stamp": 1698531792,
- "time_created": 1693216800
}
]
}
Returns a pre-signed URL to AWS S3 that you can use to upload the logo to. You can see AWS documentation here. The maximum content size per file is 5MB. The image will be auto-cropped to a square in the center, so it is suggested to enforce cropping on the frontend to a square.
user_id required | string The ID of the user |
{- "fields": {
- "acl": "public-read",
- "content-length-range": "0,5242880",
- "key": "branchup_users/sample_user/logo_image.png",
- "AWSAccessKeyId": "AKIATIPH2VUYZUADP3V5",
- "policy": "eyJleHBpcmF0aW9uIjogIjIwMjMtMDgtMjlUMTU6NTA6MjZaIiwgImNvbmRpdGlvbnMiOiBbeyJidWNrZXQiOiAicG9zdGluc2Vjb25kcy1zZWN1cmUtc3RvcmFnZSJ9LCB7ImtleSI6ICJicmFuY2h1cF91c2Vycy9zYW1wbGVfdXNlci9wcm9maWxlX2ltYWdlLnBuZyJ9XX0",
- "signature": "5bbbQrfA203l1B7PEsWeEzH0sc="
}
}
Returns a pre-signed URL to AWS S3 that you can use to upload the profile image to. You can see AWS documentation here. The maximum content size per file is 5MB. The image will be auto-cropped to a square in the center, so it is suggested to enforce cropping on the frontend to a square.
user_id required | string The ID of the user |
{- "fields": {
- "acl": "public-read",
- "content-length-range": "0,5242880",
- "key": "branchup_users/sample_user/profile_image.png",
- "AWSAccessKeyId": "AKIATIPH2VUYZUADP3V5",
- "policy": "eyJleHBpcmF0aW9uIjogIjIwMjMtMDgtMjlUMTU6NTA6MjZaIiwgImNvbmRpdGlvbnMiOiBbeyJidWNrZXQiOiAicG9zdGluc2Vjb25kcy1zZWN1cmUtc3RvcmFnZSJ9LCB7ImtleSI6ICJicmFuY2h1cF91c2Vycy9zYW1wbGVfdXNlci9wcm9maWxlX2ltYWdlLnBuZyJ9XX0",
- "signature": "5bbbQrfA203l1B7PEsWeEzH0sc="
}
}
Lists all users in our database.
page_index | integer The index of the page of users that was returned. Starts at 0. Default is 0. |
page_limit | integer The maximum number of users that were returned per page. Default is 100. |
{- "page_index": 0,
- "page_limit": 100,
- "users": [
- {
- "uid": "ambiSgN0u4htjNFEXrjLD2Jk3Iv1",
- "personal_name": "John Doe",
- "business_name": "John Doe Travel",
- "contact_email": "johndoe@travel.com",
- "contact_phone": null,
- "call_to_action": "I can plan your dream vacation. Link in bio.",
- "focus_regions": [
- "USA/Canada",
- "Asia",
- "Africa/Middle East"
], - "focus_travel_types": [
- "Cruise Ocean",
- "Cruise River",
- "Diving"
], - "blocked_video_topics": [
- "lighthouse"
]
}
]
}