Validate a Docker image
curl --request POST \
--url https://api.brimble.io/core/v1/projects/validate-image \
--header 'Content-Type: application/json' \
--header 'x-brimble-key: <api-key>' \
--data '
{
"image_uri": "<string>",
"credentials": {
"username": "<string>",
"token": "<string>"
}
}
'import requests
url = "https://api.brimble.io/core/v1/projects/validate-image"
payload = {
"image_uri": "<string>",
"credentials": {
"username": "<string>",
"token": "<string>"
}
}
headers = {
"x-brimble-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-brimble-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({image_uri: '<string>', credentials: {username: '<string>', token: '<string>'}})
};
fetch('https://api.brimble.io/core/v1/projects/validate-image', 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.brimble.io/core/v1/projects/validate-image",
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([
'image_uri' => '<string>',
'credentials' => [
'username' => '<string>',
'token' => '<string>'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-brimble-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"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.brimble.io/core/v1/projects/validate-image"
payload := strings.NewReader("{\n \"image_uri\": \"<string>\",\n \"credentials\": {\n \"username\": \"<string>\",\n \"token\": \"<string>\"\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-brimble-key", "<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://api.brimble.io/core/v1/projects/validate-image")
.header("x-brimble-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"image_uri\": \"<string>\",\n \"credentials\": {\n \"username\": \"<string>\",\n \"token\": \"<string>\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.brimble.io/core/v1/projects/validate-image")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-brimble-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"image_uri\": \"<string>\",\n \"credentials\": {\n \"username\": \"<string>\",\n \"token\": \"<string>\"\n }\n}"
response = http.request(request)
puts response.read_body{
"message": "Docker image validated successfully",
"data": {
"isValid": true
}
}{
"errors": [
{
"type": "field",
"value": "<unknown>",
"msg": "Invalid value",
"path": "name",
"location": "body"
}
]
}{
"message": "Project not found",
"data": {}
}{
"message": "Project not found",
"data": {}
}{
"message": "Project not found",
"data": {}
}Projects
Validate a Docker image
API key scope: project.read
POST
/
v1
/
projects
/
validate-image
Validate a Docker image
curl --request POST \
--url https://api.brimble.io/core/v1/projects/validate-image \
--header 'Content-Type: application/json' \
--header 'x-brimble-key: <api-key>' \
--data '
{
"image_uri": "<string>",
"credentials": {
"username": "<string>",
"token": "<string>"
}
}
'import requests
url = "https://api.brimble.io/core/v1/projects/validate-image"
payload = {
"image_uri": "<string>",
"credentials": {
"username": "<string>",
"token": "<string>"
}
}
headers = {
"x-brimble-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-brimble-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({image_uri: '<string>', credentials: {username: '<string>', token: '<string>'}})
};
fetch('https://api.brimble.io/core/v1/projects/validate-image', 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.brimble.io/core/v1/projects/validate-image",
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([
'image_uri' => '<string>',
'credentials' => [
'username' => '<string>',
'token' => '<string>'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-brimble-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"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.brimble.io/core/v1/projects/validate-image"
payload := strings.NewReader("{\n \"image_uri\": \"<string>\",\n \"credentials\": {\n \"username\": \"<string>\",\n \"token\": \"<string>\"\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-brimble-key", "<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://api.brimble.io/core/v1/projects/validate-image")
.header("x-brimble-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"image_uri\": \"<string>\",\n \"credentials\": {\n \"username\": \"<string>\",\n \"token\": \"<string>\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.brimble.io/core/v1/projects/validate-image")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-brimble-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"image_uri\": \"<string>\",\n \"credentials\": {\n \"username\": \"<string>\",\n \"token\": \"<string>\"\n }\n}"
response = http.request(request)
puts response.read_body{
"message": "Docker image validated successfully",
"data": {
"isValid": true
}
}{
"errors": [
{
"type": "field",
"value": "<unknown>",
"msg": "Invalid value",
"path": "name",
"location": "body"
}
]
}{
"message": "Project not found",
"data": {}
}{
"message": "Project not found",
"data": {}
}{
"message": "Project not found",
"data": {}
}Authorizations
ApiKeyAuthBearerAuth
API key created in the dashboard under Settings → API keys. Each key carries permission scopes; every endpoint lists the scope it needs.
Last modified on October 10, 2026
Was this page helpful?