The Laylo API can be consumed in graphql or rest format. The main endpoint is https://laylo.com/api/graphql
Simply add your API Key as the Authorization header with any request
Headers: { Authorization: API_KEY }
Download any GraphIQL app and begin consuming the API by plugging in the endpoint and your API Key
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" } }
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