curl --request GET \
--url https://api.ionworks.com/organizations/{organization_id}/logoimport requests
url = "https://api.ionworks.com/organizations/{organization_id}/logo"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.ionworks.com/organizations/{organization_id}/logo', 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.ionworks.com/organizations/{organization_id}/logo",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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.ionworks.com/organizations/{organization_id}/logo"
req, _ := http.NewRequest("GET", url, nil)
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.ionworks.com/organizations/{organization_id}/logo")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.ionworks.com/organizations/{organization_id}/logo")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"url": "<string>",
"expires_in": 123
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Fetch a signed URL for the organization logo
Return a short-lived signed URL for the organization’s logo.
variant selects the preferred mark and falls back to the other when it
is unset, so a client can ask for the dark logo without first checking
whether one exists. 404 means the organization has no mark at all.
Deliberately JSON rather than a 307 to the signed URL. A redirect reads like
the natural fit for an <img src>, but an <img> tag cannot send an
Authorization header, so the request arrives unauthenticated, is
rejected, and the browser blocks the cross-origin response (ORB) before the
redirect is ever followed. The client fetches this endpoint with its normal
authenticated transport and puts the returned storage URL in the tag; that
URL carries its own signature and needs no header.
curl --request GET \
--url https://api.ionworks.com/organizations/{organization_id}/logoimport requests
url = "https://api.ionworks.com/organizations/{organization_id}/logo"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.ionworks.com/organizations/{organization_id}/logo', 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.ionworks.com/organizations/{organization_id}/logo",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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.ionworks.com/organizations/{organization_id}/logo"
req, _ := http.NewRequest("GET", url, nil)
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.ionworks.com/organizations/{organization_id}/logo")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.ionworks.com/organizations/{organization_id}/logo")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"url": "<string>",
"expires_in": 123
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Path Parameters
Query Parameters
Which mark to address: 'light' (the default) or 'dark'. On the GET, an unset variant falls back to the other one.
light, dark Response
Successful Response
A signed URL for reading an organization's logo.
Was this page helpful?