Verify endpoints
Get profile data
Returns basic profile data of the user’s exchange account. Available data varies by exchange and linked account.
POST
/
api
/
v1
/
exchange
/
verify
Get profile data
curl --request POST \
--url https://integration-api.meshconnect.com/api/v1/exchange/verify \
--header 'Content-Type: application/json' \
--header 'X-Client-Id: <api-key>' \
--header 'X-Client-Secret: <api-key>' \
--data '
{
"authToken": "Secret authentication token",
"integrationId": "4d3364d9-fa09-4382-ad4e-5cab2e355fd4",
"accountInfo": [
"companyName",
"firstName",
"lastName"
]
}
'import requests
url = "https://integration-api.meshconnect.com/api/v1/exchange/verify"
payload = {
"authToken": "Secret authentication token",
"integrationId": "4d3364d9-fa09-4382-ad4e-5cab2e355fd4",
"accountInfo": ["companyName", "firstName", "lastName"]
}
headers = {
"X-Client-Secret": "<api-key>",
"X-Client-Id": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'X-Client-Secret': '<api-key>',
'X-Client-Id': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
authToken: 'Secret authentication token',
integrationId: '4d3364d9-fa09-4382-ad4e-5cab2e355fd4',
accountInfo: ['companyName', 'firstName', 'lastName']
})
};
fetch('https://integration-api.meshconnect.com/api/v1/exchange/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://integration-api.meshconnect.com/api/v1/exchange/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([
'authToken' => 'Secret authentication token',
'integrationId' => '4d3364d9-fa09-4382-ad4e-5cab2e355fd4',
'accountInfo' => [
'companyName',
'firstName',
'lastName'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-Client-Id: <api-key>",
"X-Client-Secret: <api-key>"
],
]);
$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://integration-api.meshconnect.com/api/v1/exchange/verify"
payload := strings.NewReader("{\n \"authToken\": \"Secret authentication token\",\n \"integrationId\": \"4d3364d9-fa09-4382-ad4e-5cab2e355fd4\",\n \"accountInfo\": [\n \"companyName\",\n \"firstName\",\n \"lastName\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-Client-Secret", "<api-key>")
req.Header.Add("X-Client-Id", "<api-key>")
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://integration-api.meshconnect.com/api/v1/exchange/verify")
.header("X-Client-Secret", "<api-key>")
.header("X-Client-Id", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"authToken\": \"Secret authentication token\",\n \"integrationId\": \"4d3364d9-fa09-4382-ad4e-5cab2e355fd4\",\n \"accountInfo\": [\n \"companyName\",\n \"firstName\",\n \"lastName\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://integration-api.meshconnect.com/api/v1/exchange/verify")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-Client-Secret"] = '<api-key>'
request["X-Client-Id"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"authToken\": \"Secret authentication token\",\n \"integrationId\": \"4d3364d9-fa09-4382-ad4e-5cab2e355fd4\",\n \"accountInfo\": [\n \"companyName\",\n \"firstName\",\n \"lastName\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"content": {
"integrationName": "Coinbase",
"firstName": "Firstname",
"middleName": "Midlename",
"lastName": "Lastname",
"accountNumber": "1234567",
"email": "[email protected]",
"mobileNumber": "123456798",
"companyName": "MyCorp Inc.",
"countryCode": "GB",
"city": "City Name",
"postalCode": "4251",
"idType": "idCard",
"idNumber": "123",
"dateOfBirth": 574732800
},
"status": "ok",
"message": "",
"errorHash": "0d469941",
"teamCode": "P4",
"errorType": ""
}{
"status": "badRequest",
"message": "Error message",
"displayMessage": "Optional display message",
"errorHash": "7dcbb73d",
"teamCode": "P4",
"errorType": "missingField"
}Authorizations
Body
application/json
Exchange account info request.
Response
Successfully returns account details.
Was this page helpful?
⌘I
Get profile data
curl --request POST \
--url https://integration-api.meshconnect.com/api/v1/exchange/verify \
--header 'Content-Type: application/json' \
--header 'X-Client-Id: <api-key>' \
--header 'X-Client-Secret: <api-key>' \
--data '
{
"authToken": "Secret authentication token",
"integrationId": "4d3364d9-fa09-4382-ad4e-5cab2e355fd4",
"accountInfo": [
"companyName",
"firstName",
"lastName"
]
}
'import requests
url = "https://integration-api.meshconnect.com/api/v1/exchange/verify"
payload = {
"authToken": "Secret authentication token",
"integrationId": "4d3364d9-fa09-4382-ad4e-5cab2e355fd4",
"accountInfo": ["companyName", "firstName", "lastName"]
}
headers = {
"X-Client-Secret": "<api-key>",
"X-Client-Id": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'X-Client-Secret': '<api-key>',
'X-Client-Id': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
authToken: 'Secret authentication token',
integrationId: '4d3364d9-fa09-4382-ad4e-5cab2e355fd4',
accountInfo: ['companyName', 'firstName', 'lastName']
})
};
fetch('https://integration-api.meshconnect.com/api/v1/exchange/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://integration-api.meshconnect.com/api/v1/exchange/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([
'authToken' => 'Secret authentication token',
'integrationId' => '4d3364d9-fa09-4382-ad4e-5cab2e355fd4',
'accountInfo' => [
'companyName',
'firstName',
'lastName'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-Client-Id: <api-key>",
"X-Client-Secret: <api-key>"
],
]);
$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://integration-api.meshconnect.com/api/v1/exchange/verify"
payload := strings.NewReader("{\n \"authToken\": \"Secret authentication token\",\n \"integrationId\": \"4d3364d9-fa09-4382-ad4e-5cab2e355fd4\",\n \"accountInfo\": [\n \"companyName\",\n \"firstName\",\n \"lastName\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-Client-Secret", "<api-key>")
req.Header.Add("X-Client-Id", "<api-key>")
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://integration-api.meshconnect.com/api/v1/exchange/verify")
.header("X-Client-Secret", "<api-key>")
.header("X-Client-Id", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"authToken\": \"Secret authentication token\",\n \"integrationId\": \"4d3364d9-fa09-4382-ad4e-5cab2e355fd4\",\n \"accountInfo\": [\n \"companyName\",\n \"firstName\",\n \"lastName\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://integration-api.meshconnect.com/api/v1/exchange/verify")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-Client-Secret"] = '<api-key>'
request["X-Client-Id"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"authToken\": \"Secret authentication token\",\n \"integrationId\": \"4d3364d9-fa09-4382-ad4e-5cab2e355fd4\",\n \"accountInfo\": [\n \"companyName\",\n \"firstName\",\n \"lastName\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"content": {
"integrationName": "Coinbase",
"firstName": "Firstname",
"middleName": "Midlename",
"lastName": "Lastname",
"accountNumber": "1234567",
"email": "[email protected]",
"mobileNumber": "123456798",
"companyName": "MyCorp Inc.",
"countryCode": "GB",
"city": "City Name",
"postalCode": "4251",
"idType": "idCard",
"idNumber": "123",
"dateOfBirth": 574732800
},
"status": "ok",
"message": "",
"errorHash": "0d469941",
"teamCode": "P4",
"errorType": ""
}{
"status": "badRequest",
"message": "Error message",
"displayMessage": "Optional display message",
"errorHash": "7dcbb73d",
"teamCode": "P4",
"errorType": "missingField"
}