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

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