Add image to project gallery
curl --request POST \
--url https://api.opensource-together.com/projects/{id}/images \
--header 'Content-Type: multipart/form-data' \
--form file='@example-file'import requests
url = "https://api.opensource-together.com/projects/{id}/images"
files = { "file": ("example-file", open("example-file", "rb")) }
response = requests.post(url, files=files)
print(response.text)const form = new FormData();
form.append('file', '<string>');
const options = {method: 'POST'};
options.body = form;
fetch('https://api.opensource-together.com/projects/{id}/images', 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.opensource-together.com/projects/{id}/images",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => "-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"file\"; filename=\"example-file\"\r\nContent-Type: application/octet-stream\r\n\r\n<string>\r\n-----011000010111000001101001--",
CURLOPT_HTTPHEADER => [
"Content-Type: multipart/form-data"
],
]);
$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.opensource-together.com/projects/{id}/images"
payload := strings.NewReader("-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"file\"; filename=\"example-file\"\r\nContent-Type: application/octet-stream\r\n\r\n<string>\r\n-----011000010111000001101001--")
req, _ := http.NewRequest("POST", url, payload)
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.opensource-together.com/projects/{id}/images")
.body("-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"file\"; filename=\"example-file\"\r\nContent-Type: application/octet-stream\r\n\r\n<string>\r\n-----011000010111000001101001--")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.opensource-together.com/projects/{id}/images")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request.body = "-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"file\"; filename=\"example-file\"\r\nContent-Type: application/octet-stream\r\n\r\n<string>\r\n-----011000010111000001101001--"
response = http.request(request)
puts response.read_body{
"data": {
"id": "pjt_c54b633eb12f4900b92b34e222096449",
"title": "My Awesome Project",
"description": "A revolutionary web application",
"repoUrl": "https://github.com/username/repository",
"provider": "GITHUB",
"image": "https://example.com/image.jpg",
"logoUrl": "https://example.com/logo.png",
"published": true,
"trending": true,
"githubUrl": "https://github.com/username/repository",
"gitlabUrl": "https://gitlab.com/username/repository",
"twitterUrl": "https://twitter.com/username",
"linkedinUrl": "https://linkedin.com/in/username",
"discordUrl": "https://discord.gg/server",
"websiteUrl": "https://example.com",
"imagesUrls": [
"<string>"
],
"projectTechStacks": [
{
"id": "tst_c54b633eb12f4900b92b34e222096449",
"name": "React",
"iconUrl": "https://cdn.jsdelivr.net/gh/devicons/devicon@latest/icons/react/react-original.svg",
"type": "TECH"
}
],
"projectCategories": [
{
"id": "cat_c54b633eb12f4900b92b34e222096449",
"name": "API & Microservices"
}
]
},
"timestamp": "2025-09-03T13:04:43.353Z"
}{
"error": {
"message": "<string>",
"code": "<string>",
"details": {}
},
"timestamp": "2023-11-07T05:31:56Z"
}{
"error": {
"message": "<string>",
"code": "<string>",
"details": {}
},
"timestamp": "2023-11-07T05:31:56Z"
}{
"error": {
"message": "<string>",
"code": "<string>",
"details": {}
},
"timestamp": "2023-11-07T05:31:56Z"
}Project
Add image to project gallery
Upload an image to the project gallery (maximum 5 images per project). Accepts PNG, JPEG, or WEBP format. Maximum file size: 10MB.
POST
/
projects
/
{id}
/
images
Add image to project gallery
curl --request POST \
--url https://api.opensource-together.com/projects/{id}/images \
--header 'Content-Type: multipart/form-data' \
--form file='@example-file'import requests
url = "https://api.opensource-together.com/projects/{id}/images"
files = { "file": ("example-file", open("example-file", "rb")) }
response = requests.post(url, files=files)
print(response.text)const form = new FormData();
form.append('file', '<string>');
const options = {method: 'POST'};
options.body = form;
fetch('https://api.opensource-together.com/projects/{id}/images', 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.opensource-together.com/projects/{id}/images",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => "-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"file\"; filename=\"example-file\"\r\nContent-Type: application/octet-stream\r\n\r\n<string>\r\n-----011000010111000001101001--",
CURLOPT_HTTPHEADER => [
"Content-Type: multipart/form-data"
],
]);
$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.opensource-together.com/projects/{id}/images"
payload := strings.NewReader("-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"file\"; filename=\"example-file\"\r\nContent-Type: application/octet-stream\r\n\r\n<string>\r\n-----011000010111000001101001--")
req, _ := http.NewRequest("POST", url, payload)
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.opensource-together.com/projects/{id}/images")
.body("-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"file\"; filename=\"example-file\"\r\nContent-Type: application/octet-stream\r\n\r\n<string>\r\n-----011000010111000001101001--")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.opensource-together.com/projects/{id}/images")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request.body = "-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"file\"; filename=\"example-file\"\r\nContent-Type: application/octet-stream\r\n\r\n<string>\r\n-----011000010111000001101001--"
response = http.request(request)
puts response.read_body{
"data": {
"id": "pjt_c54b633eb12f4900b92b34e222096449",
"title": "My Awesome Project",
"description": "A revolutionary web application",
"repoUrl": "https://github.com/username/repository",
"provider": "GITHUB",
"image": "https://example.com/image.jpg",
"logoUrl": "https://example.com/logo.png",
"published": true,
"trending": true,
"githubUrl": "https://github.com/username/repository",
"gitlabUrl": "https://gitlab.com/username/repository",
"twitterUrl": "https://twitter.com/username",
"linkedinUrl": "https://linkedin.com/in/username",
"discordUrl": "https://discord.gg/server",
"websiteUrl": "https://example.com",
"imagesUrls": [
"<string>"
],
"projectTechStacks": [
{
"id": "tst_c54b633eb12f4900b92b34e222096449",
"name": "React",
"iconUrl": "https://cdn.jsdelivr.net/gh/devicons/devicon@latest/icons/react/react-original.svg",
"type": "TECH"
}
],
"projectCategories": [
{
"id": "cat_c54b633eb12f4900b92b34e222096449",
"name": "API & Microservices"
}
]
},
"timestamp": "2025-09-03T13:04:43.353Z"
}{
"error": {
"message": "<string>",
"code": "<string>",
"details": {}
},
"timestamp": "2023-11-07T05:31:56Z"
}{
"error": {
"message": "<string>",
"code": "<string>",
"details": {}
},
"timestamp": "2023-11-07T05:31:56Z"
}{
"error": {
"message": "<string>",
"code": "<string>",
"details": {}
},
"timestamp": "2023-11-07T05:31:56Z"
}