curl --request POST \
--url https://api.mintfax.com/v1/account/register/verify \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"email": "jsmith@example.com",
"code": "<string>"
}
'import requests
url = "https://api.mintfax.com/v1/account/register/verify"
payload = {
"email": "jsmith@example.com",
"code": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({email: 'jsmith@example.com', code: '<string>'})
};
fetch('https://api.mintfax.com/v1/account/register/verify', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.mintfax.com/v1/account/register/verify",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'email' => 'jsmith@example.com',
'code' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.mintfax.com/v1/account/register/verify"
payload := strings.NewReader("{\n \"email\": \"jsmith@example.com\",\n \"code\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.mintfax.com/v1/account/register/verify")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"email\": \"jsmith@example.com\",\n \"code\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.mintfax.com/v1/account/register/verify")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"email\": \"jsmith@example.com\",\n \"code\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"account": {
"id": "<string>",
"name": "<string>"
},
"user": {
"email": "jsmith@example.com"
},
"environment": {
"id": "<string>",
"name": "<string>"
},
"api_key": "<string>",
"api_key_account": "<string>"
}{
"error": "validation_failed",
"message": "The request failed validation.",
"action": "fix_request",
"docs": "https://mintfax.com/docs/errors/validation-failed",
"context": {
"errors": {
"to": [
"The to field is required."
],
"file": [
"The file field is required."
]
}
}
}{
"error": "internal_server_error",
"message": "An unexpected error occurred. Please retry; if the problem persists, contact support.",
"action": "retry_or_contact_support",
"docs": "https://mintfax.com/docs/errors/internal-server-error"
}Verify Registration Code
Completes registration by verifying the activation code sent to the provided email. On success, creates the account, user, sandbox environment, and API key in a single transaction.
The API key is only shown once - store it securely.
This endpoint does not require authentication.
curl --request POST \
--url https://api.mintfax.com/v1/account/register/verify \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"email": "jsmith@example.com",
"code": "<string>"
}
'import requests
url = "https://api.mintfax.com/v1/account/register/verify"
payload = {
"email": "jsmith@example.com",
"code": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({email: 'jsmith@example.com', code: '<string>'})
};
fetch('https://api.mintfax.com/v1/account/register/verify', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.mintfax.com/v1/account/register/verify",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'email' => 'jsmith@example.com',
'code' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.mintfax.com/v1/account/register/verify"
payload := strings.NewReader("{\n \"email\": \"jsmith@example.com\",\n \"code\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.mintfax.com/v1/account/register/verify")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"email\": \"jsmith@example.com\",\n \"code\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.mintfax.com/v1/account/register/verify")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"email\": \"jsmith@example.com\",\n \"code\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"account": {
"id": "<string>",
"name": "<string>"
},
"user": {
"email": "jsmith@example.com"
},
"environment": {
"id": "<string>",
"name": "<string>"
},
"api_key": "<string>",
"api_key_account": "<string>"
}{
"error": "validation_failed",
"message": "The request failed validation.",
"action": "fix_request",
"docs": "https://mintfax.com/docs/errors/validation-failed",
"context": {
"errors": {
"to": [
"The to field is required."
],
"file": [
"The file field is required."
]
}
}
}{
"error": "internal_server_error",
"message": "An unexpected error occurred. Please retry; if the problem persists, contact support.",
"action": "retry_or_contact_support",
"docs": "https://mintfax.com/docs/errors/internal-server-error"
}Authorizations
API key as Bearer token. Use an account key (mfx_acct_...) for
/account/* endpoints, and an environment key (mfx_test_... for
sandbox, mfx_live_... for live) for /environment/*, /faxes,
/webhooks, and /events.
Body
Response
RegistrationCompleteResource
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Plain-text sandbox API key (only shown once at registration).
"mfx_test_abc123def456..."
Plain-text account-management API key (only shown once at registration).
"mfx_acct_qpr456stv789..."