Create a project
curl --request POST \
--url https://roughy-api-staging.fly.dev/v1/projects \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "Episode 42"
}
'import requests
url = "https://roughy-api-staging.fly.dev/v1/projects"
payload = { "name": "Episode 42" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({name: 'Episode 42'})
};
fetch('https://roughy-api-staging.fly.dev/v1/projects', 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://roughy-api-staging.fly.dev/v1/projects",
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([
'name' => 'Episode 42'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$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://roughy-api-staging.fly.dev/v1/projects"
payload := strings.NewReader("{\n \"name\": \"Episode 42\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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://roughy-api-staging.fly.dev/v1/projects")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"Episode 42\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://roughy-api-staging.fly.dev/v1/projects")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"Episode 42\"\n}"
response = http.request(request)
puts response.read_body{
"id": "019de7f5-7e21-7402-92a8-1c0e1fa84411",
"name": "Episode 42",
"state": "active",
"archived_at": null,
"created_at": "2026-05-02T08:54:52.423000Z",
"updated_at": "2026-05-02T08:54:52.423000Z",
"last_activity_at": "2026-05-14T17:31:08.902000Z"
}{
"error": {
"code": "validation_error",
"message": "Request validation failed.",
"fields": [
{
"field": "body.name",
"message": "Field required"
}
]
}
}{
"error": {
"code": "rate_limited",
"message": "Per-user rate limit exceeded; honour `Retry-After`."
}
}Create a project
Create a project to hold your assets.
POST
/
v1
/
projects
Create a project
curl --request POST \
--url https://roughy-api-staging.fly.dev/v1/projects \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "Episode 42"
}
'import requests
url = "https://roughy-api-staging.fly.dev/v1/projects"
payload = { "name": "Episode 42" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({name: 'Episode 42'})
};
fetch('https://roughy-api-staging.fly.dev/v1/projects', 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://roughy-api-staging.fly.dev/v1/projects",
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([
'name' => 'Episode 42'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$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://roughy-api-staging.fly.dev/v1/projects"
payload := strings.NewReader("{\n \"name\": \"Episode 42\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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://roughy-api-staging.fly.dev/v1/projects")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"Episode 42\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://roughy-api-staging.fly.dev/v1/projects")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"Episode 42\"\n}"
response = http.request(request)
puts response.read_body{
"id": "019de7f5-7e21-7402-92a8-1c0e1fa84411",
"name": "Episode 42",
"state": "active",
"archived_at": null,
"created_at": "2026-05-02T08:54:52.423000Z",
"updated_at": "2026-05-02T08:54:52.423000Z",
"last_activity_at": "2026-05-14T17:31:08.902000Z"
}{
"error": {
"code": "validation_error",
"message": "Request validation failed.",
"fields": [
{
"field": "body.name",
"message": "Field required"
}
]
}
}{
"error": {
"code": "rate_limited",
"message": "Per-user rate limit exceeded; honour `Retry-After`."
}
}Authorizations
Pass your API key as Authorization: Bearer sk_…. Mint a key from your dashboard's API-keys page.
Body
application/json
Project to create.
Display name for the project. Up to 256 characters.
Required string length:
1 - 256Response
The newly-created project.
A project.
Project id.
Display name.
Lifecycle state.
Available options:
active, archived When the project was archived.
When the project was created.
When the project row last changed.
When the user last changed the project's content — an upload, an asset deletion, a cut, or a render being started. Background jobs finishing do not move it, and neither does renaming an asset. Projects are listed most recently active first. Accurate to about 30 seconds; intended for display and ordering.