Send contact form message
Send a message to Sidings Media
application/json
Request Body required
name string required
Users name from contact form
email email required
Users email from contact form
subject string required
Message subject
message string required
Actual message from user
Responses
- 204
- 400
- 429
- 5XX
Created
Request was invalid or malformed
application/json
Schema
Example (from schema)
Example
Schema
oneOf
GeneralError
BadRequest
code integer
HTTP response code
message string
Human readable error message
code integer
HTTP response code
message string
Human readable error message
fields object[]
{}
{
"code": 400,
"message": "Request was malformed",
"fields": [
{
"field": "email",
"condition": "email"
},
{
"field": "name",
"condition": "required"
}
]
}
The rate limit has been exceeded
Response Headers
application/json
Schema
Example (from schema)
Example
Schema
code integer
HTTP response code
message string
Human readable error message
{
"code": 0,
"message": "string"
}
{
"code": 429,
"message": "Too many requests"
}
An unexpected server error
application/json
Schema
Example (from schema)
Example
Schema
code integer
HTTP response code
message string
Human readable error message
{
"code": 0,
"message": "string"
}
{
"code": 500,
"message": "Unexpected error"
}
POST /messaging/contact
Request
Request
curl / cURL
curl -L -X POST 'https://api.sidingsmedia.com/messaging/contact' \
-H 'Content-Type: application/json' \
--data-raw '{
"name": "string",
"email": "user@example.com",
"subject": "string",
"message": "string"
}'
python / requests
curl -L -X POST 'https://api.sidingsmedia.com/messaging/contact' \
-H 'Content-Type: application/json' \
--data-raw '{
"name": "string",
"email": "user@example.com",
"subject": "string",
"message": "string"
}'
go / native
curl -L -X POST 'https://api.sidingsmedia.com/messaging/contact' \
-H 'Content-Type: application/json' \
--data-raw '{
"name": "string",
"email": "user@example.com",
"subject": "string",
"message": "string"
}'
nodejs / axios
curl -L -X POST 'https://api.sidingsmedia.com/messaging/contact' \
-H 'Content-Type: application/json' \
--data-raw '{
"name": "string",
"email": "user@example.com",
"subject": "string",
"message": "string"
}'
ruby / Net::HTTP
curl -L -X POST 'https://api.sidingsmedia.com/messaging/contact' \
-H 'Content-Type: application/json' \
--data-raw '{
"name": "string",
"email": "user@example.com",
"subject": "string",
"message": "string"
}'
csharp / RestSharp
curl -L -X POST 'https://api.sidingsmedia.com/messaging/contact' \
-H 'Content-Type: application/json' \
--data-raw '{
"name": "string",
"email": "user@example.com",
"subject": "string",
"message": "string"
}'
php / cURL
curl -L -X POST 'https://api.sidingsmedia.com/messaging/contact' \
-H 'Content-Type: application/json' \
--data-raw '{
"name": "string",
"email": "user@example.com",
"subject": "string",
"message": "string"
}'
java / OkHttp
curl -L -X POST 'https://api.sidingsmedia.com/messaging/contact' \
-H 'Content-Type: application/json' \
--data-raw '{
"name": "string",
"email": "user@example.com",
"subject": "string",
"message": "string"
}'
powershell / RestMethod
curl -L -X POST 'https://api.sidingsmedia.com/messaging/contact' \
-H 'Content-Type: application/json' \
--data-raw '{
"name": "string",
"email": "user@example.com",
"subject": "string",
"message": "string"
}'