Validate API key
curl --request GET \
--url https://integrations.wellows.com/api/v1/validate \
--header 'X-API-Key: <api-key>'import requests
url = "https://integrations.wellows.com/api/v1/validate"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://integrations.wellows.com/api/v1/validate', 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://integrations.wellows.com/api/v1/validate",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-Key: <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"
"net/http"
"io"
)
func main() {
url := "https://integrations.wellows.com/api/v1/validate"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://integrations.wellows.com/api/v1/validate")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://integrations.wellows.com/api/v1/validate")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"success": true,
"message": "API key is valid",
"code": 200,
"data": {
"valid": true,
"key_level": "USER",
"user_id": 123,
"project_id": null,
"expiry": "2025-12-31T23:59:59Z"
},
"errors": {},
"meta_data": {}
}{
"success": false,
"message": "Invalid API key",
"code": 401,
"data": {},
"errors": {
"error": "unauthorized",
"detail": "API key is invalid or has expired"
},
"meta_data": {}
}Endpoint examples
Validate API Key
Validate an API key and return its details.
Use this endpoint to verify that an API key is valid.
GET
/
validate
Validate API key
curl --request GET \
--url https://integrations.wellows.com/api/v1/validate \
--header 'X-API-Key: <api-key>'import requests
url = "https://integrations.wellows.com/api/v1/validate"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://integrations.wellows.com/api/v1/validate', 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://integrations.wellows.com/api/v1/validate",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-Key: <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"
"net/http"
"io"
)
func main() {
url := "https://integrations.wellows.com/api/v1/validate"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://integrations.wellows.com/api/v1/validate")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://integrations.wellows.com/api/v1/validate")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"success": true,
"message": "API key is valid",
"code": 200,
"data": {
"valid": true,
"key_level": "USER",
"user_id": 123,
"project_id": null,
"expiry": "2025-12-31T23:59:59Z"
},
"errors": {},
"meta_data": {}
}{
"success": false,
"message": "Invalid API key",
"code": 401,
"data": {},
"errors": {
"error": "unauthorized",
"detail": "API key is invalid or has expired"
},
"meta_data": {}
}Authorizations
Your API key from the API Keys page
Headers
Project ID (optional - used to validate access to a specific project)
⌘I

