Submit a contact request
package main
import ( "fmt" "strings" "net/http" "io")
func main() {
url := "https://api.feitpay.com/v1/public/contact"
payload := strings.NewReader("{ \"name\": \"example\", \"email\": \"hello@example.com\", \"company\": \"example\", \"topic\": \"sales\", \"message\": \"example\", \"consent\": true, \"website\": \"example\" }")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close() body, _ := io.ReadAll(res.Body)
fmt.Println(res) fmt.Println(string(body))
}const url = 'https://api.feitpay.com/v1/public/contact';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"name":"example","email":"hello@example.com","company":"example","topic":"sales","message":"example","consent":true,"website":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.feitpay.com/v1/public/contact \ --header 'Content-Type: application/json' \ --data '{ "name": "example", "email": "hello@example.com", "company": "example", "topic": "sales", "message": "example", "consent": true, "website": "example" }'Rate limited per client IP (burst 3, then one request per minute).
Request Bodyrequired
Section titled “Request Bodyrequired”object
Honeypot. Must be empty.
Responses
Section titled “Responses”Received and routed to the support queue.
object
Example
{ "object": "contact_request", "status": "received"}Authenticated but not permitted. Any route may also answer request_blocked when abuse protection has blocked the client IP for a while.
object
object
Stable machine-readable reason. Known values are listed in ErrorCode; clients localize by code and show message (English) only for a code they do not know. New codes may be added at any time.
Human-readable explanation in English.
Example
{ "error": { "type": "invalid_request_error" }}Validation failed.
object
object
Stable machine-readable reason. Known values are listed in ErrorCode; clients localize by code and show message (English) only for a code they do not know. New codes may be added at any time.
Human-readable explanation in English.
Example
{ "error": { "type": "invalid_request_error" }}Too many requests. See Retry-After.
object
object
Stable machine-readable reason. Known values are listed in ErrorCode; clients localize by code and show message (English) only for a code they do not know. New codes may be added at any time.
Human-readable explanation in English.
Example
{ "error": { "type": "invalid_request_error" }}