API reference / Problem reports
Report a problem
POST/v1/problem-reports
Tells Blitframe support about a problem, optionally with the render or version it concerns. message is at most 2,000 characters. A workspace can send 10 reports an hour.
Request
curl -s -X POST $BLITFRAME/problem-reports \
-H "Authorization: Bearer $BLITFRAME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"renderId": "0f8e6d4c-2b1a-4c3d-9e8f-7a6b5c4d3e2f",
"message": "The logo flickers between 0:03 and 0:05."
}'
import os, requests
response = requests.post(
f"{os.environ['BLITFRAME']}/problem-reports",
headers={"Authorization": f"Bearer {os.environ['BLITFRAME_API_KEY']}"},
json={
"renderId": "0f8e6d4c-2b1a-4c3d-9e8f-7a6b5c4d3e2f",
"message": "The logo flickers between 0:03 and 0:05.",
},
)
print(response.json())
const response = await fetch(`${process.env.BLITFRAME}/problem-reports`, {
method: "POST",
headers: { Authorization: `Bearer ${process.env.BLITFRAME_API_KEY}`, "Content-Type": "application/json" },
body: JSON.stringify({
renderId: "0f8e6d4c-2b1a-4c3d-9e8f-7a6b5c4d3e2f",
message: "The logo flickers between 0:03 and 0:05.",
}),
});
console.log(await response.json());
<?php
$request = curl_init(getenv("BLITFRAME") . "/problem-reports");
curl_setopt_array($request, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer " . getenv("BLITFRAME_API_KEY"),
"Content-Type: application/json",
],
CURLOPT_POSTFIELDS => '{
"renderId": "0f8e6d4c-2b1a-4c3d-9e8f-7a6b5c4d3e2f",
"message": "The logo flickers between 0:03 and 0:05."
}',
]);
$response = curl_exec($request);
echo $response;
require "net/http"
uri = URI(ENV["BLITFRAME"] + '/problem-reports')
request = Net::HTTP::Post.new(uri)
request["Authorization"] = "Bearer " + ENV["BLITFRAME_API_KEY"]
request["Content-Type"] = "application/json"
request.body = '{
"renderId": "0f8e6d4c-2b1a-4c3d-9e8f-7a6b5c4d3e2f",
"message": "The logo flickers between 0:03 and 0:05."
}'
response = Net::HTTP.start(uri.hostname, uri.port, use_ssl: uri.scheme == "https") { |http| http.request(request) }
puts response.body
package main
import (
"fmt"
"io"
"net/http"
"os"
"strings"
)
func main() {
body := strings.NewReader(`{
"renderId": "0f8e6d4c-2b1a-4c3d-9e8f-7a6b5c4d3e2f",
"message": "The logo flickers between 0:03 and 0:05."
}`)
request, err := http.NewRequest("POST", os.Getenv("BLITFRAME")+"/problem-reports", body)
if err != nil {
panic(err)
}
request.Header.Set("Authorization", "Bearer "+os.Getenv("BLITFRAME_API_KEY"))
request.Header.Set("Content-Type", "application/json")
response, err := http.DefaultClient.Do(request)
if err != nil {
panic(err)
}
defer response.Body.Close()
text, _ := io.ReadAll(response.Body)
fmt.Println(string(text))
}
using System.Net.Http.Headers;
using System.Text;
using var client = new HttpClient();
using var request = new HttpRequestMessage(HttpMethod.Post,
Environment.GetEnvironmentVariable("BLITFRAME") + "/problem-reports");
request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("BLITFRAME_API_KEY"));
request.Content = new StringContent(
"""
{
"renderId": "0f8e6d4c-2b1a-4c3d-9e8f-7a6b5c4d3e2f",
"message": "The logo flickers between 0:03 and 0:05."
}
""", Encoding.UTF8, "application/json");
using var response = await client.SendAsync(request);
Console.WriteLine(await response.Content.ReadAsStringAsync());
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
public class Example {
public static void main(String[] args) throws Exception {
var request = HttpRequest.newBuilder(URI.create(System.getenv("BLITFRAME") + "/problem-reports"))
.header("Authorization", "Bearer " + System.getenv("BLITFRAME_API_KEY"))
.header("Content-Type", "application/json")
.method("POST", HttpRequest.BodyPublishers.ofString("""
{
"renderId": "0f8e6d4c-2b1a-4c3d-9e8f-7a6b5c4d3e2f",
"message": "The logo flickers between 0:03 and 0:05."
}
"""))
.build();
var response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
}
}
Headers
AuthorizationBearer Blitframe API keyrequiredAPI key from the developer console.
Body
application/json · required · CreateProblemReportRequest
messagestring or nullrequiredrenderIdstring (uuid) or nullversionIdstring (uuid) or null
Responses
- 201 Created
application/json · ProblemReportDto
idstring (uuid)renderIdstring (uuid) or nullversionIdstring (uuid) or nullmessagestringstatusProblemReportStatusOne of
openresolvedcreatedAtstring (date-time)resolvedAtstring (date-time) or nullresolutionstring or null
Errors
- 400 Bad Request
- 401 Unauthorized
- 404 Not Found
- 429 Too Many Requests
application/json · ErrorResponse
errorApiErrorApiError fields
codestringmessagestring
Errors lists the error codes and says when to retry.