Messages

Predict are made of in Protocol — they are the basic building blocks of your conversations with your Protocol contacts. On this page, we'll dive into the different message endpoints you can use to manage messages programmatically. We'll look at how to query, send, update, and delete messages.

The message model

The message model contains all the information about the messages and attachments you send to your contacts and groups, including how your contacts have reacted to them.

Properties

  • Name
    data
    Type
    dict
    Description

    A map containing an array of arrays with the key payload.


POST/username/model_name

Predict a data point

This endpoint allows you to retrieve a prediction of datapoints by providing the input data under a payload.

Request

POST
https://api.domain_name/username/my_model_name
curl --location 'https://api.neurodeploy.com/username/my_model_name' \
    --header 'api-key: null' \
    --header 'Content-Type: application/json' \
    --data '{
        "payload": [[1, 2, 3, 4, 5]]
    }'

Response

{
"output": [
    [
        9.991751670837402
    ]
]
}