Skip to main content

Adding a pattern to a song

Full API reference

Now that you've got your song's foundation in place, it's time to add a pattern! To do this, make a POST request to the /getPattern endpoint with the following parameters:

Add a pattern
POST /getPattern HTTP/1.1
Host: staging.casperaki.com
Content-Type: application/json
{
"genre": "pop",
"busyness": 3
}

This will give you a pattern based on your specified genre and busyness level. You can use this API to add a unique pattern to your song that reflects your artistic vision. Note: The Authorization header specifies the JWT token used for authentication.