Create Application
curl --request POST \
--url https://auth.contra.id/v1/organizations/me/{org_id}/applicationsimport requests
url = "https://auth.contra.id/v1/organizations/me/{org_id}/applications"
response = requests.post(url)
print(response.text)const options = {method: 'POST'};
fetch('https://auth.contra.id/v1/organizations/me/{org_id}/applications', 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://auth.contra.id/v1/organizations/me/{org_id}/applications",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
]);
$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://auth.contra.id/v1/organizations/me/{org_id}/applications"
req, _ := http.NewRequest("POST", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://auth.contra.id/v1/organizations/me/{org_id}/applications")
.asString();require 'uri'
require 'net/http'
url = URI("https://auth.contra.id/v1/organizations/me/{org_id}/applications")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
response = http.request(request)
puts response.read_bodyAuth API (Programmatic)
Create Application
Spin up a new application under your organization — each one gets its own api_key, webhook config, and billing scope.
POST
/
v1
/
organizations
/
me
/
{org_id}
/
applications
Create Application
curl --request POST \
--url https://auth.contra.id/v1/organizations/me/{org_id}/applicationsimport requests
url = "https://auth.contra.id/v1/organizations/me/{org_id}/applications"
response = requests.post(url)
print(response.text)const options = {method: 'POST'};
fetch('https://auth.contra.id/v1/organizations/me/{org_id}/applications', 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://auth.contra.id/v1/organizations/me/{org_id}/applications",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
]);
$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://auth.contra.id/v1/organizations/me/{org_id}/applications"
req, _ := http.NewRequest("POST", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://auth.contra.id/v1/organizations/me/{org_id}/applications")
.asString();require 'uri'
require 'net/http'
url = URI("https://auth.contra.id/v1/organizations/me/{org_id}/applications")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
response = http.request(request)
puts response.read_bodyMulti-tenancy lives at the application level. Create one per environment (
Each application is a clean data + billing boundary — sessions, workflows, webhooks, and credit usage are scoped to its
dev / staging / prod) or per customer.
Request
curl -X POST https://auth.contra.id/v1/organizations/me/$ORG_ID/applications \
-H "Authorization: Bearer $ACCESS_TOKEN" -H "Content-Type: application/json" \
-d '{
"name": "production",
"environment": "live"
}'
| Body | Type | Required | Description |
|---|---|---|---|
name | string | yes | Display name. |
environment | enum | no | "live" (default) · "test". |
Response · 201
{
"uuid": "app_5b9c…",
"client_id": "cli_…",
"api_key": "ctr_…",
"name": "production",
"environment": "live",
"created_at": 1748566800
}
api_key.⌘I