Legacy (v0)
Get the company subdomain
Looks up a servable company by subdomain across companies and returns only public identity, branding, default country, legal URLs and support contact fields. Pass the subdomain in the subdomain query parameter. Requires a Bearer token; no additional permission is checked. The company object is returned at the top level, with no envelope and no meta.
GET
/
api
/
company
/
subdomain
Get the company subdomain
curl --request GET \
--url https://api.fluid.app/api/company/subdomain \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.fluid.app/api/company/subdomain"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.fluid.app/api/company/subdomain', 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.fluid.app/api/company/subdomain",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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://api.fluid.app/api/company/subdomain"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.fluid.app/api/company/subdomain")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.fluid.app/api/company/subdomain")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"id": 1405,
"name": "Dunder Mifflin Paper Company",
"subdomain": "dunder-mifflin",
"logo_url": "https://cdn.fluid.app/companies/1405/logo/dunder-mifflin-logo.png",
"icon_url": "https://cdn.fluid.app/companies/1405/icon/dunder-mifflin-icon.png",
"color": "#1B4F8A",
"base_url": "https://shop.dundermifflin.com",
"default_country": {
"id": 233,
"iso": "US",
"iso3": "USA",
"name": "United States",
"currency_code": "USD"
},
"privacy_url": "https://shop.dundermifflin.com/privacy",
"terms_url": "https://shop.dundermifflin.com/terms",
"support_email": "support@dundermifflin.com"
}{
"message": "<string>"
}"company not found."Query Parameters
Response
Success
Public company identity, branding, legal URLs and support contact, returned as the top-level object with no envelope.
⌘I
Get the company subdomain
curl --request GET \
--url https://api.fluid.app/api/company/subdomain \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.fluid.app/api/company/subdomain"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.fluid.app/api/company/subdomain', 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.fluid.app/api/company/subdomain",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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://api.fluid.app/api/company/subdomain"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.fluid.app/api/company/subdomain")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.fluid.app/api/company/subdomain")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"id": 1405,
"name": "Dunder Mifflin Paper Company",
"subdomain": "dunder-mifflin",
"logo_url": "https://cdn.fluid.app/companies/1405/logo/dunder-mifflin-logo.png",
"icon_url": "https://cdn.fluid.app/companies/1405/icon/dunder-mifflin-icon.png",
"color": "#1B4F8A",
"base_url": "https://shop.dundermifflin.com",
"default_country": {
"id": 233,
"iso": "US",
"iso3": "USA",
"name": "United States",
"currency_code": "USD"
},
"privacy_url": "https://shop.dundermifflin.com/privacy",
"terms_url": "https://shop.dundermifflin.com/terms",
"support_email": "support@dundermifflin.com"
}{
"message": "<string>"
}"company not found."