Ask a question

Ask a Question
Back to All

Creating a new registrant from Facebook Leads

Hi there,

I try to have a new registrant added to a session after he filled out a facebook leadform.

So I make a POST Request to https://api.livestorm.co/v1/sessions/{id}/people

To try out I just added the sample code from the API reference but I keep hitting the error message:

"[400] Title: Missing Parameter, Detail: The required parameter, data, is missing., Status: 400"

Can you tell me what I am doing wrong?

{
"data": {
"type": "people",
"attributes": {
"fields": [{
"id": "first_name",
"value": "Jean-Baptiste"
},
{
"id": "last_name",
"value": "Smith"
},
{
"id": "email",
"value": "[email protected]"
}
]
}
}
}