curl --request POST \
--url https://dev.moderationapi.com/api/v1/authors \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"profile_picture": "<string>",
"external_link": "<string>",
"name": "<string>",
"email": "jsmith@example.com",
"metadata": {
"email_verified": true,
"phone_verified": true,
"identity_verified": true
},
"manual_trust_level": 1.5,
"externalId": "<string>"
}'
{
"id": "<string>",
"external_id": "<string>",
"profile_picture": "<string>",
"external_link": "<string>",
"name": "<string>",
"email": "jsmith@example.com",
"first_seen": "<string>",
"last_seen": "<string>",
"last_incident": "<string>",
"status": "enabled",
"trust_level": {
"level": 123,
"manual": true
},
"block": {
"until": "<string>",
"reason": "<string>"
},
"risk_evaluation": {
"risk_level": 50
},
"metrics": {
"total_content": 123,
"flagged_content": 123,
"average_sentiment": 123
},
"metadata": {
"email_verified": true,
"phone_verified": true,
"identity_verified": true
}
}
curl --request POST \
--url https://dev.moderationapi.com/api/v1/authors \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"profile_picture": "<string>",
"external_link": "<string>",
"name": "<string>",
"email": "jsmith@example.com",
"metadata": {
"email_verified": true,
"phone_verified": true,
"identity_verified": true
},
"manual_trust_level": 1.5,
"externalId": "<string>"
}'
{
"id": "<string>",
"external_id": "<string>",
"profile_picture": "<string>",
"external_link": "<string>",
"name": "<string>",
"email": "jsmith@example.com",
"first_seen": "<string>",
"last_seen": "<string>",
"last_incident": "<string>",
"status": "enabled",
"trust_level": {
"level": 123,
"manual": true
},
"block": {
"until": "<string>",
"reason": "<string>"
},
"risk_evaluation": {
"risk_level": 50
},
"metrics": {
"total_content": 123,
"flagged_content": 123,
"average_sentiment": 123
},
"metadata": {
"email_verified": true,
"phone_verified": true,
"identity_verified": true
}
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Successful response
The response is of type object
.
Was this page helpful?