Adding Creators and Making Drop Links:
The Laylo API can be consumed in graphql or rest format. The main endpoint is https://laylo.com/api/graphql
To get your API Key, email [email protected] with the Subject: Laylo API KEY
Authorization
Simply add your API Key as the Authorization header with any request
Headers: { Authorization: API_KEY }
Testing
Download any GraphIQL app and begin consuming the API by plugging in the endpoint and your API Key
Features
Add a creator account to the enterprise
mutation($username:String!, $displayName:String, $imageUrl:String, $enterpriseId:ID){
addUserToAccount(
username: $username
displayName:$displayName
imageUrl: $imageUrl
enterpriseId: $enterpriseId
){
user{
id
}
}
}
Ex. response
{ user: { id: "xyzxyzyxzyxyz" } }
Create a drop
mutation($dropId: ID, $title:String!, $description:String, $imageUrl:String, $userId:ID!, $dropDayMessage:String!, $dropDate: Float){
createDrop(
dropId: $dropId
title: $username
description:$description
imageUrl: $imageUrl
userId: $userId
dropDayMessage: $dropDayMessage
dropDate: $dropDate
)
}
Ex. response
"https://laylo.com/[username]/[slug]"
Update a drop
mutation($dropId: ID, $title:String!, $description:String, $imageUrl:String, $userId:ID!, $dropDayMessage:String!, $dropDate: Float){
updateDrop(
dropId: $dropId
title: $username
description:$description
imageUrl: $imageUrl
userId: $userId
dropDayMessage: $dropDayMessage
dropDate: $dropDate
)
}
Ex. response
Adding Fan Data to a Creator’s Laylo Account
Make a call to this endpoint to opt-in a user to a subscription. Note that when a user is opted-in programmatically, it must include compliant legal language. For transactional messages, you must include a transactional opt-in unit.
How to use the Laylo API to add emails / phone numbers to your CRM
Get an API key from us by emailing [email protected] with the Subject: Laylo API KEY
Use this rest request request and plug in an email address or phone number accordingly
Phone Number
var query = `mutation subscribeToUser($phoneNumber: String!) {
subscribeToUser(phone: $phoneNumber)
}`;
var queryVariables = { phone: "+18888888888" };
try {
await fetch("https://laylo.com/api/graphql", {
method: "POST",
headers: {
"Content-Type": "application/json",
Authorization: `Bearer ${layloKey}`,
},
body: JSON.stringify({
query,
variables: queryVariables,
}),
});
Email Address
var query = `mutation subscribeToUser($email: String!) {
subscribeToUser(email: $email)
}`;
var queryVariables = { email: "[email protected]" };
try {
await fetch("https://laylo.com/api/graphql", {
method: "POST",
headers: {
"Content-Type": "application/json",
Authorization: `Bearer ${layloKey}`,
},
body: JSON.stringify({
query,
variables: queryVariables,
}),
});
Instagram Messenger API
Laylo Page Id: 793614957434796
access_token: EAAFskyyT5A0BAKVHAbLGZBZCD6qJgs0lLO8p4XwT2bc3G1WXYFHy4f3hP9SwyquvL1tRp8vTIFHrYDCimcZCvA3pVoJItRaT2FJK81oSQlOJmGLVnYgsG5nZBvBiWEJuCaS85R9lTLby6UOCPE906FN0yw3mwAObpXOnXuM0kmZBwhmOdUuCZANYSV8wwcjssZD
Ice Breakers and Quick replies:
Follow (only if the user hasn't followed the creator)
Show Drops
Create a Drop
Notification Setting
Integration for Platforms
Many creators add their Laylo links directly on their L.I.B pages
Use a Laylo Iframe anywhere you can paste html code
Find your link: https://laylo.com/[username]/profile/embed
Add ?theme=dark if you want a dark theme
Pricing
Option A: Our standard pay-as-you-go pricing (laylo.com/pricing)
Option B: API + Unlimited plan. This includes access to all of our API endpoints. Unlimited messaging across SMS, IG dms and Messenger starting at $1,000/month up to 25k contacts. This scales up by $150 per 2.5k contacts above that, so $1,150 up to 27.5k contacts, $1,250 up to 30k contacts etc.