Hyphen Engine
v1.0.0Hyphen Engine API explorer
https://api.hyphen.ai
OAuth2
Get a user login for the given client id and scope. The user login will generate a code challenge and redirect to the auth provider login page for the user to complete the login. The Login will also set the callback url to the token exchange endpoint.
| Name | Type | In | Description |
|---|---|---|---|
| scope | string | query | The scopes of the token to be generated. You can request multiple scopes by separating them with a space. |
| state | string | query | The state to be passed back to client. |
| prompt | string | query | The oauth2 prompt. |
curl -X GET "https://api.hyphen.ai/api/auth/login?scope={scope}&state={state}&prompt={prompt}"
const response = await fetch('https://api.hyphen.ai/api/auth/login?scope={scope}&state={state}&prompt={prompt}', {
method: 'GET'
});
const data = await response.json();
import requests
response = requests.get(
'https://api.hyphen.ai/api/auth/login',
params={
'scope': '{scope}',
'state': '{state}',
'prompt': '{prompt}'
}
)
data = response.json()
| Name | Type | In | Description |
|---|---|---|---|
| code | string | query | The code from the auth provider login. |
| state * | string | query | The state from the auth provider login. |
curl -X GET "https://api.hyphen.ai/api/auth/token-exchange?code={code}&state={state}"
const response = await fetch('https://api.hyphen.ai/api/auth/token-exchange?code={code}&state={state}', {
method: 'GET'
});
const data = await response.json();
import requests
response = requests.get(
'https://api.hyphen.ai/api/auth/token-exchange',
params={
'code': '{code}',
'state': '{state}'
}
)
data = response.json()
Create a token refresh. This will use a refresh token from the cookies set in the token exchange and return a new token with a new expiration.
curl -X POST "https://api.hyphen.ai/api/auth/jwt-refresh"
const response = await fetch('https://api.hyphen.ai/api/auth/jwt-refresh', {
method: 'POST'
});
const data = await response.json();
import requests
response = requests.post('https://api.hyphen.ai/api/auth/jwt-refresh')
data = response.json()
Get a user logout. This will clear the cookies and redirect to the auth provider logout page.
curl -X GET "https://api.hyphen.ai/api/auth/logout"
const response = await fetch('https://api.hyphen.ai/api/auth/logout', {
method: 'GET'
});
const data = await response.json();
import requests
response = requests.get('https://api.hyphen.ai/api/auth/logout')
data = response.json()
Create a m2m token using the client id and client secret.
{
"clientId": "string",
"clientSecret": "string"
}
{
"access_token": "string",
"id_token": "string",
"token_type": "string",
"access_token_expires_in": 0,
"access_token_expires_at": 0
}
curl -X POST "https://api.hyphen.ai/api/auth/m2m" \
-H "Content-Type: application/json" \
-d '{ "clientId": "string", "clientSecret": "string"}'
const response = await fetch('https://api.hyphen.ai/api/auth/m2m', {
method: 'POST',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify({ "clientId": "string", "clientSecret": "string"})
});
const data = await response.json();
import requests
response = requests.post(
'https://api.hyphen.ai/api/auth/m2m',
headers={
'Content-Type': 'application/json'
},
json={ "clientId": "string", "clientSecret": "string"}
)
data = response.json()
Billing Accounts
| Name | Type | In | Description |
|---|---|---|---|
| pageNum | integer | query | The page number. |
| pageSize | integer | query | The page size. |
{
"total": 0,
"pageNum": 0,
"pageSize": 0,
"data": [
{
"id": "string",
"name": "string",
"email": "string",
"phone": "string",
"address": {
"streetAddress": "string",
"locality": "string",
"region": "string",
"postalCode": "string",
"country": "US"
},
"provider": "Stripe",
"providerId": "string",
"paymentMethods": [
{
"providerId": "string",
"type": "Card",
"last4": "string",
"cardType": "Visa",
"expiration": "string",
"isDefault": true
}
],
"subscription": {
"providerId": "string",
"startDate": "string",
"status": "string",
"cycles": [
{
"id": 0,
"startDate": "string",
"endDate": "string",
"invoicePreviewAmountDue": 0
}
],
"isDelinquent": true
},
"owners": [
{
"userId": "string",
"name": "string",
"email": "string"
}
],
"invoices": [
{
"providerId": "string",
"amount": 0,
"createdDate": "string",
"subTotal": 0,
"total": 0,
"discount": 0,
"credit": 0,
"status": "Draft",
"periodEnd": "string",
"periodStart": "string",
"cycleId": 0,
"tax": 0,
"dueDate": "string"
}
]
}
]
}
{
"message": "Unable to validate JWT. Please make sure a valid JWT is sent as an Authorization header or access token cookie.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "Resource with id 'a1b2c3d4' not found or you do not have permission to access it.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "An unknown error occurred",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
curl -X GET "https://api.hyphen.ai/api/billing-accounts/?pageNum={pageNum}&pageSize={pageSize}"
const response = await fetch('https://api.hyphen.ai/api/billing-accounts/?pageNum={pageNum}&pageSize={pageSize}', {
method: 'GET'
});
const data = await response.json();
import requests
response = requests.get(
'https://api.hyphen.ai/api/billing-accounts/',
params={
'pageNum': '{pageNum}',
'pageSize': '{pageSize}'
}
)
data = response.json()
| Name | Type | In | Description |
|---|---|---|---|
| billingAccountId * | string | path | The billing account Id. |
{
"id": "string",
"name": "string",
"email": "string",
"phone": "string",
"address": {
"streetAddress": "string",
"locality": "string",
"region": "string",
"postalCode": "string",
"country": "US"
},
"provider": "Stripe",
"providerId": "string",
"paymentMethods": [
{
"providerId": "string",
"type": "Card",
"last4": "string",
"cardType": "Visa",
"expiration": "string",
"isDefault": true
}
],
"subscription": {
"providerId": "string",
"startDate": "string",
"status": "string",
"cycles": [
{
"id": 0,
"startDate": "string",
"endDate": "string",
"invoicePreviewAmountDue": 0
}
],
"isDelinquent": true
},
"owners": [
{
"userId": "string",
"name": "string",
"email": "string"
}
],
"invoices": [
{
"providerId": "string",
"amount": 0,
"createdDate": "string",
"subTotal": 0,
"total": 0,
"discount": 0,
"credit": 0,
"status": "Draft",
"periodEnd": "string",
"periodStart": "string",
"cycleId": 0,
"tax": 0,
"dueDate": "string"
}
]
}
{
"message": "Unable to validate JWT. Please make sure a valid JWT is sent as an Authorization header or access token cookie.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "Resource with id 'a1b2c3d4' not found or you do not have permission to access it.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "An unknown error occurred",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
curl -X GET "https://api.hyphen.ai/api/billing-accounts/{billingAccountId}/"
const response = await fetch('https://api.hyphen.ai/api/billing-accounts/{billingAccountId}/', {
method: 'GET'
});
const data = await response.json();
import requests
response = requests.get('https://api.hyphen.ai/api/billing-accounts/{billingAccountId}/')
data = response.json()
| Name | Type | In | Description |
|---|---|---|---|
| billingAccountId * | string | path | The billing account Id. |
{
"name": "string",
"email": "string",
"phone": "string",
"address": {
"streetAddress": "string",
"locality": "string",
"region": "string",
"postalCode": "string",
"country": "US"
},
"promoCodes": [
"string"
]
}
{
"id": "string",
"name": "string",
"email": "string",
"phone": "string",
"address": {
"streetAddress": "string",
"locality": "string",
"region": "string",
"postalCode": "string",
"country": "US"
},
"provider": "Stripe",
"providerId": "string",
"paymentMethods": [
{
"providerId": "string",
"type": "Card",
"last4": "string",
"cardType": "Visa",
"expiration": "string",
"isDefault": true
}
],
"subscription": {
"providerId": "string",
"startDate": "string",
"status": "string",
"cycles": [
{
"id": 0,
"startDate": "string",
"endDate": "string",
"invoicePreviewAmountDue": 0
}
],
"isDelinquent": true
},
"owners": [
{
"userId": "string",
"name": "string",
"email": "string"
}
],
"invoices": [
{
"providerId": "string",
"amount": 0,
"createdDate": "string",
"subTotal": 0,
"total": 0,
"discount": 0,
"credit": 0,
"status": "Draft",
"periodEnd": "string",
"periodStart": "string",
"cycleId": 0,
"tax": 0,
"dueDate": "string"
}
]
}
{
"message": "Unable to validate JWT. Please make sure a valid JWT is sent as an Authorization header or access token cookie.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "Resource with id 'a1b2c3d4' not found or you do not have permission to access it.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "An unknown error occurred",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
curl -X PATCH "https://api.hyphen.ai/api/billing-accounts/{billingAccountId}/" \
-H "Content-Type: application/json" \
-d '{ "name": "string", "email": "string", "phone": "string", "address": { "streetAddress": "string", "locality": "string", "region": "string", "postalCode": "string", "country": "US" }, "promoCodes": [ "string" ]}'
const response = await fetch('https://api.hyphen.ai/api/billing-accounts/{billingAccountId}/', {
method: 'PATCH',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify({ "name": "string", "email": "string", "phone": "string", "address": { "streetAddress": "string", "locality": "string", "region": "string", "postalCode": "string", "country": "US" }, "promoCodes": [ "string" ]})
});
const data = await response.json();
import requests
response = requests.patch(
'https://api.hyphen.ai/api/billing-accounts/{billingAccountId}/',
headers={
'Content-Type': 'application/json'
},
json={ "name": "string", "email": "string", "phone": "string", "address": { "streetAddress": "string", "locality": "string", "region": "string", "postalCode": "string", "country": "US" }, "promoCodes": [ "string" ]}
)
data = response.json()
| Name | Type | In | Description |
|---|---|---|---|
| billingCycle | number | query | The billing cycle number. |
| billingAccountId * | string | path | The billing account id |
{
"billingCycle": 1,
"totalDays": 30,
"remainingDays": 15,
"startDate": "2021-01-01T00:00:00Z",
"endDate": "2021-01-31T23:59:59Z",
"lastUpdated": "2021-01-01T00:00:00Z",
"organizations": [
{
"organization": {
"id": "string",
"name": "string"
},
"lastUpdated": "2021-01-01T00:00:00Z",
"total": {
"user": {
"active": 100
},
"seat": {
"total": 100,
"open": 50
},
"env": {
"pull": 100,
"push": 100
},
"link": {
"created": 100
},
"netInfo": {
"requests": 100
},
"toggle": {
"evaluations": 100
},
"deploy": {
"seconds": 1000
},
"agent": {
"seconds": 1000
}
}
}
],
"total": {
"user": {
"active": 100
},
"seat": {
"total": 100,
"open": 50
},
"env": {
"pull": 100,
"push": 100
},
"link": {
"created": 100
},
"netInfo": {
"requests": 100
},
"toggle": {
"evaluations": 100
},
"deploy": {
"seconds": 1000
},
"agent": {
"seconds": 1000
}
}
}
{
"message": "Unable to validate JWT. Please make sure a valid JWT is sent as an Authorization header or access token cookie.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "Resource with id 'a1b2c3d4' not found or you do not have permission to access it.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "An unknown error occurred",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
curl -X GET "https://api.hyphen.ai/api/billing-accounts/{billingAccountId}/usage?billingCycle={billingCycle}"
const response = await fetch('https://api.hyphen.ai/api/billing-accounts/{billingAccountId}/usage?billingCycle={billingCycle}', {
method: 'GET'
});
const data = await response.json();
import requests
response = requests.get(
'https://api.hyphen.ai/api/billing-accounts/{billingAccountId}/usage',
params={
'billingCycle': '{billingCycle}'
}
)
data = response.json()
| Name | Type | In | Description |
|---|---|---|---|
| billingAccountId * | string | path | The billing account Id. |
{
"status": "Active"
}
{
"message": "Unable to validate JWT. Please make sure a valid JWT is sent as an Authorization header or access token cookie.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "Resource with id 'a1b2c3d4' not found or you do not have permission to access it.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "An unknown error occurred",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
curl -X PUT "https://api.hyphen.ai/api/billing-accounts/{billingAccountId}/subscription/status" \
-H "Content-Type: application/json" \
-d '{ "status": "Active"}'
const response = await fetch('https://api.hyphen.ai/api/billing-accounts/{billingAccountId}/subscription/status', {
method: 'PUT',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify({ "status": "Active"})
});
const data = await response.json();
import requests
response = requests.put(
'https://api.hyphen.ai/api/billing-accounts/{billingAccountId}/subscription/status',
headers={
'Content-Type': 'application/json'
},
json={ "status": "Active"}
)
data = response.json()
| Name | Type | In | Description |
|---|---|---|---|
| billingAccountId * | string | path | The billing account Id. |
| invoiceProviderId * | string | path | The invoice provider Id. |
{
"http": null,
"pdf": null
}
curl -X GET "https://api.hyphen.ai/api/billing-accounts/{billingAccountId}/invoices/{invoiceProviderId}/urls"
const response = await fetch('https://api.hyphen.ai/api/billing-accounts/{billingAccountId}/invoices/{invoiceProviderId}/urls', {
method: 'GET'
});
const data = await response.json();
import requests
response = requests.get('https://api.hyphen.ai/api/billing-accounts/{billingAccountId}/invoices/{invoiceProviderId}/urls')
data = response.json()
| Name | Type | In | Description |
|---|---|---|---|
| pageNum | integer | query | The page number. |
| pageSize | integer | query | The page size. |
| billingAccountId * | string | path | The billing account Id. |
{
"total": 0,
"pageNum": 0,
"pageSize": 0,
"data": [
{
"id": "string",
"name": "string",
"logoUrl": "string",
"defaultEnvironments": [
{
"name": "string",
"alternateId": "string",
"color": "string",
"type": "development"
}
],
"billingAccount": {
"id": "string",
"name": "string"
}
}
]
}
{
"message": "Unable to validate JWT. Please make sure a valid JWT is sent as an Authorization header or access token cookie.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "Resource with id 'a1b2c3d4' not found or you do not have permission to access it.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "An unknown error occurred",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
curl -X GET "https://api.hyphen.ai/api/billing-accounts/{billingAccountId}/organizations/?pageNum={pageNum}&pageSize={pageSize}"
const response = await fetch('https://api.hyphen.ai/api/billing-accounts/{billingAccountId}/organizations/?pageNum={pageNum}&pageSize={pageSize}', {
method: 'GET'
});
const data = await response.json();
import requests
response = requests.get(
'https://api.hyphen.ai/api/billing-accounts/{billingAccountId}/organizations/',
params={
'pageNum': '{pageNum}',
'pageSize': '{pageSize}'
}
)
data = response.json()
| Name | Type | In | Description |
|---|---|---|---|
| billingAccountId * | string | path | The billing account Id. |
{
"email": "string"
}
{
"userId": "string",
"name": "string",
"email": "string"
}
{
"message": "Unable to validate JWT. Please make sure a valid JWT is sent as an Authorization header or access token cookie.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "Resource with id 'a1b2c3d4' not found or you do not have permission to access it.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "The resource could not be created because of a conflict.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "An unknown error occurred",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
curl -X POST "https://api.hyphen.ai/api/billing-accounts/{billingAccountId}/owners/" \
-H "Content-Type: application/json" \
-d '{ "email": "string"}'
const response = await fetch('https://api.hyphen.ai/api/billing-accounts/{billingAccountId}/owners/', {
method: 'POST',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify({ "email": "string"})
});
const data = await response.json();
import requests
response = requests.post(
'https://api.hyphen.ai/api/billing-accounts/{billingAccountId}/owners/',
headers={
'Content-Type': 'application/json'
},
json={ "email": "string"}
)
data = response.json()
| Name | Type | In | Description |
|---|---|---|---|
| billingAccountId * | string | path | The billing account Id. |
| userId * | string | path | The user Id. |
{
"message": "Unable to validate JWT. Please make sure a valid JWT is sent as an Authorization header or access token cookie.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "Resource with id 'a1b2c3d4' not found or you do not have permission to access it.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "The resource could not be created because of a conflict.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "An unknown error occurred",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
curl -X DELETE "https://api.hyphen.ai/api/billing-accounts/{billingAccountId}/owners/{userId}/"
const response = await fetch('https://api.hyphen.ai/api/billing-accounts/{billingAccountId}/owners/{userId}/', {
method: 'DELETE'
});
const data = await response.json();
import requests
response = requests.delete('https://api.hyphen.ai/api/billing-accounts/{billingAccountId}/owners/{userId}/')
data = response.json()
| Name | Type | In | Description |
|---|---|---|---|
| billingAccountId * | string | path | The billing account Id. |
{
"confirmationToken": "string"
}
{
"providerId": "string",
"type": "Card",
"last4": "string",
"cardType": "Visa",
"expiration": "string",
"isDefault": true
}
{
"message": "Unable to validate JWT. Please make sure a valid JWT is sent as an Authorization header or access token cookie.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "Resource with id 'a1b2c3d4' not found or you do not have permission to access it.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "The resource could not be created because of a conflict.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "An unknown error occurred",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
curl -X POST "https://api.hyphen.ai/api/billing-accounts/{billingAccountId}/payment-methods/" \
-H "Content-Type: application/json" \
-d '{ "confirmationToken": "string"}'
const response = await fetch('https://api.hyphen.ai/api/billing-accounts/{billingAccountId}/payment-methods/', {
method: 'POST',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify({ "confirmationToken": "string"})
});
const data = await response.json();
import requests
response = requests.post(
'https://api.hyphen.ai/api/billing-accounts/{billingAccountId}/payment-methods/',
headers={
'Content-Type': 'application/json'
},
json={ "confirmationToken": "string"}
)
data = response.json()
| Name | Type | In | Description |
|---|---|---|---|
| billingAccountId * | string | path | The billing account Id. |
| providerId * | string | path | The payment method provider Id. |
{
"message": "Unable to validate JWT. Please make sure a valid JWT is sent as an Authorization header or access token cookie.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "Resource with id 'a1b2c3d4' not found or you do not have permission to access it.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "The resource could not be created because of a conflict.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "An unknown error occurred",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
curl -X DELETE "https://api.hyphen.ai/api/billing-accounts/{billingAccountId}/payment-methods/{providerId}/"
const response = await fetch('https://api.hyphen.ai/api/billing-accounts/{billingAccountId}/payment-methods/{providerId}/', {
method: 'DELETE'
});
const data = await response.json();
import requests
response = requests.delete('https://api.hyphen.ai/api/billing-accounts/{billingAccountId}/payment-methods/{providerId}/')
data = response.json()
| Name | Type | In | Description |
|---|---|---|---|
| billingAccountId * | string | path | The billing account Id. |
| providerId * | string | path | The payment method provider Id. |
{
"isDefault": true
}
{
"providerId": "string",
"type": "Card",
"last4": "string",
"cardType": "Visa",
"expiration": "string",
"isDefault": true
}
{
"message": "Unable to validate JWT. Please make sure a valid JWT is sent as an Authorization header or access token cookie.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "Resource with id 'a1b2c3d4' not found or you do not have permission to access it.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "The resource could not be created because of a conflict.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "An unknown error occurred",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
curl -X PATCH "https://api.hyphen.ai/api/billing-accounts/{billingAccountId}/payment-methods/{providerId}/" \
-H "Content-Type: application/json" \
-d '{ "isDefault": true}'
const response = await fetch('https://api.hyphen.ai/api/billing-accounts/{billingAccountId}/payment-methods/{providerId}/', {
method: 'PATCH',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify({ "isDefault": true})
});
const data = await response.json();
import requests
response = requests.patch(
'https://api.hyphen.ai/api/billing-accounts/{billingAccountId}/payment-methods/{providerId}/',
headers={
'Content-Type': 'application/json'
},
json={ "isDefault": true}
)
data = response.json()
| Name | Type | In | Description |
|---|---|---|---|
| organizationId * | string | path | The organization Id. |
{
"id": "string",
"name": "string",
"email": "string",
"phone": "string",
"address": {
"streetAddress": "string",
"locality": "string",
"region": "string",
"postalCode": "string",
"country": "US"
},
"provider": "Stripe",
"providerId": "string",
"paymentMethods": [
{
"providerId": "string",
"type": "Card",
"last4": "string",
"cardType": "Visa",
"expiration": "string",
"isDefault": true
}
],
"subscription": {
"providerId": "string",
"startDate": "string",
"status": "string",
"cycles": [
{
"id": 0,
"startDate": "string",
"endDate": "string",
"invoicePreviewAmountDue": 0
}
],
"isDelinquent": true
},
"owners": [
{
"userId": "string",
"name": "string",
"email": "string"
}
],
"invoices": [
{
"providerId": "string",
"amount": 0,
"createdDate": "string",
"subTotal": 0,
"total": 0,
"discount": 0,
"credit": 0,
"status": "Draft",
"periodEnd": "string",
"periodStart": "string",
"cycleId": 0,
"tax": 0,
"dueDate": "string"
}
]
}
{
"message": "Unable to validate JWT. Please make sure a valid JWT is sent as an Authorization header or access token cookie.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "Resource with id 'a1b2c3d4' not found or you do not have permission to access it.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "An unknown error occurred",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
curl -X GET "https://api.hyphen.ai/api/organizations/{organizationId}/billing-account/"
const response = await fetch('https://api.hyphen.ai/api/organizations/{organizationId}/billing-account/', {
method: 'GET'
});
const data = await response.json();
import requests
response = requests.get('https://api.hyphen.ai/api/organizations/{organizationId}/billing-account/')
data = response.json()
| Name | Type | In | Description |
|---|---|---|---|
| organizationId * | string | path | The organization Id. |
| invoiceProviderId * | string | path | The invoice provider Id. |
{
"http": null,
"pdf": null
}
curl -X GET "https://api.hyphen.ai/api/organizations/{organizationId}/billing-account/invoices/{invoiceProviderId}/urls"
const response = await fetch('https://api.hyphen.ai/api/organizations/{organizationId}/billing-account/invoices/{invoiceProviderId}/urls', {
method: 'GET'
});
const data = await response.json();
import requests
response = requests.get('https://api.hyphen.ai/api/organizations/{organizationId}/billing-account/invoices/{invoiceProviderId}/urls')
data = response.json()
Package Download
| Name | Type | In | Description |
|---|---|---|---|
| os | string | query | |
| packageName * | string | path | |
| version * | string | path |
{
"message": "Unable to validate JWT. Please make sure a valid JWT is sent as an Authorization header or access token cookie.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "Resource with id 'a1b2c3d4' not found or you do not have permission to access it.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
"Error: Internal Server Error"
curl -X GET "https://api.hyphen.ai/api/downloads/{packageName}/{version}?os={os}"
const response = await fetch('https://api.hyphen.ai/api/downloads/{packageName}/{version}?os={os}', {
method: 'GET'
});
const data = await response.json();
import requests
response = requests.get(
'https://api.hyphen.ai/api/downloads/{packageName}/{version}',
params={
'os': '{os}'
}
)
data = response.json()
| Name | Type | In | Description |
|---|---|---|---|
| latest | string | query | |
| packageName * | string | path |
{
"data": [
{
"packageName": "something",
"version": "1.0.0",
"latest": true,
"published": "2024-05-30"
},
{
"packageName": "something",
"version": "0.9.0",
"latest": false,
"published": "2024-05-29"
}
]
}
"Package not found"
"Error: Internal Server Error"
curl -X GET "https://api.hyphen.ai/api/downloads/{packageName}/versions?latest={latest}"
const response = await fetch('https://api.hyphen.ai/api/downloads/{packageName}/versions?latest={latest}', {
method: 'GET'
});
const data = await response.json();
import requests
response = requests.get(
'https://api.hyphen.ai/api/downloads/{packageName}/versions',
params={
'latest': '{latest}'
}
)
data = response.json()
Events
| Name | Type | In | Description |
|---|---|---|---|
| organizationId * | string | path | The organization Id. |
{
"types": [
"DATABASE"
],
"references": [
{
"id": "string",
"type": "string",
"view": {
"key": "value"
}
}
],
"referenceOperation": "AND",
"startDate": "string",
"endDate": "string",
"pageSize": 0,
"pageCursor": "evnt_60b3b3f4c4b3f00001f3b3f4"
}
{
"data": [
{
"id": "evnt_60b3b3f4c4b3f00001f3b3f4",
"type": "ORGANIZATION.CREATE",
"timestamp": "2021-09-14T15:00:00Z",
"organization": {
"id": "org_66bf99b72a0043f841769880",
"name": "My Org"
},
"requestId": "12345",
"references": [
{
"id": "usr_60b3b3f4c4b3f00001f3b3f4",
"type": "User",
"view": {
"name": "John Doe",
"email": "[email protected]"
}
}
],
"actor": {
"id": "ca1c9bbd-9dd4-4119-81df-6a8ceea5dea0",
"name": "John Doe"
},
"user": {
"id": "mem_66bf99b72a0043f841769880",
"name": "John Doe"
},
"data": {
"id": "org_66bf99b72a0043f841769880",
"name": "My Org"
}
}
],
"pageSize": 0,
"nextPageCursor": "evnt_60b3b3f4c4b3f00001f3b3f4"
}
{
"message": "Unable to validate JWT. Please make sure a valid JWT is sent as an Authorization header or access token cookie.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "Resource with id 'a1b2c3d4' not found or you do not have permission to access it.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "An unknown error occurred",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
curl -X POST "https://api.hyphen.ai/api/events/{organizationId}/search" \
-H "Content-Type: application/json" \
-d '{ "types": [ "DATABASE" ], "references": [ { "id": "string", "type": "string", "view": { "key": "value" } } ], "referenceOperation": "AND", "startDate": "string", "endDate": "string", "pageSize": 0, "pageCursor": "evnt_60b3b3f4c4b3f00001f3b3f4"}'
const response = await fetch('https://api.hyphen.ai/api/events/{organizationId}/search', {
method: 'POST',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify({ "types": [ "DATABASE" ], "references": [ { "id": "string", "type": "string", "view": { "key": "value" } } ], "referenceOperation": "AND", "startDate": "string", "endDate": "string", "pageSize": 0, "pageCursor": "evnt_60b3b3f4c4b3f00001f3b3f4"})
});
const data = await response.json();
import requests
response = requests.post(
'https://api.hyphen.ai/api/events/{organizationId}/search',
headers={
'Content-Type': 'application/json'
},
json={ "types": [ "DATABASE" ], "references": [ { "id": "string", "type": "string", "view": { "key": "value" } } ], "referenceOperation": "AND", "startDate": "string", "endDate": "string", "pageSize": 0, "pageCursor": "evnt_60b3b3f4c4b3f00001f3b3f4"}
)
data = response.json()
Integrations
{
"data": [
{
"type": "hyphenCloud",
"name": "string",
"description": "string",
"image": "string",
"backgroundImage": "string",
"provides": [
{
"connectionType": "DistributionList",
"for": [
"Organization"
]
}
]
}
]
}
curl -X GET "https://api.hyphen.ai/api/integrations/"
const response = await fetch('https://api.hyphen.ai/api/integrations/', {
method: 'GET'
});
const data = await response.json();
import requests
response = requests.get('https://api.hyphen.ai/api/integrations/')
data = response.json()
Users
{
"isImpersonating": true,
"isHyphenInternal": true,
"decodedIdToken": {
"email_verified": true,
"name": "string",
"preferred_username": "string",
"given_name": "string",
"family_name": "string",
"email": "string"
},
"accessTokenExpiresIn": 0,
"accessTokenExpiresAt": 0,
"decodedToken": {
"exp": 0,
"iat": 0,
"iss": "string",
"aud": "string",
"sub": "string",
"scope": "string",
"email_verified": true,
"name": "string",
"preferred_username": "string",
"given_name": "string",
"family_name": "string",
"email": "string"
},
"memberships": [
{
"id": "string",
"firstName": "string",
"lastName": "string",
"email": "string",
"nickname": "string",
"connectedAccounts": [
{
"identifier": "string",
"type": "idp",
"email": "string",
"profileUrl": "string"
}
],
"organization": {
"id": "string",
"name": "string",
"isOrganizationAdmin": true
},
"favorites": [
{
"key": "value"
}
],
"teams": [
{
"id": "string",
"name": "string"
}
],
"resources": [
{}
],
"organizationRoles": [
"OrganizationAdmin"
]
}
]
}
{
"message": "Unable to validate JWT. Please make sure a valid JWT is sent as an Authorization header or access token cookie.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "An unknown error occurred",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
curl -X GET "https://api.hyphen.ai/api/me/"
const response = await fetch('https://api.hyphen.ai/api/me/', {
method: 'GET'
});
const data = await response.json();
import requests
response = requests.get('https://api.hyphen.ai/api/me/')
data = response.json()
Organizations
| Name | Type | In | Description |
|---|---|---|---|
| name | string | query | Filter by organization name starts with (case insensitive) |
| pageNum | integer | query | The page number. |
| pageSize | integer | query | The page size. |
{
"total": 0,
"pageNum": 0,
"pageSize": 0,
"data": [
{
"id": "string",
"name": "string",
"logoUrl": "string",
"defaultEnvironments": [
{
"name": "string",
"alternateId": "string",
"color": "string",
"type": "development"
}
],
"billingAccount": {
"id": "string",
"name": "string"
}
}
]
}
{
"message": "Unable to validate JWT. Please make sure a valid JWT is sent as an Authorization header or access token cookie.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "An unknown error occurred",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
curl -X GET "https://api.hyphen.ai/api/organizations/?name={name}&pageNum={pageNum}&pageSize={pageSize}"
const response = await fetch('https://api.hyphen.ai/api/organizations/?name={name}&pageNum={pageNum}&pageSize={pageSize}', {
method: 'GET'
});
const data = await response.json();
import requests
response = requests.get(
'https://api.hyphen.ai/api/organizations/',
params={
'name': '{name}',
'pageNum': '{pageNum}',
'pageSize': '{pageSize}'
}
)
data = response.json()
{
"name": "string",
"defaultEnvironments": [
{
"name": "string",
"alternateId": "string",
"color": "string",
"type": "development"
}
],
"billingAccount": null,
"createDefaultProject": true
}
{
"id": "string",
"name": "string",
"logoUrl": "string",
"defaultEnvironments": [
{
"name": "string",
"alternateId": "string",
"color": "string",
"type": "development"
}
],
"billingAccount": {
"id": "string",
"name": "string"
}
}
{
"message": "Unable to validate JWT. Please make sure a valid JWT is sent as an Authorization header or access token cookie.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "An unknown error occurred",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
curl -X POST "https://api.hyphen.ai/api/organizations/" \
-H "Content-Type: application/json" \
-d '{ "name": "string", "defaultEnvironments": [ { "name": "string", "alternateId": "string", "color": "string", "type": "development" } ], "billingAccount": null, "createDefaultProject": true}'
const response = await fetch('https://api.hyphen.ai/api/organizations/', {
method: 'POST',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify({ "name": "string", "defaultEnvironments": [ { "name": "string", "alternateId": "string", "color": "string", "type": "development" } ], "billingAccount": null, "createDefaultProject": true})
});
const data = await response.json();
import requests
response = requests.post(
'https://api.hyphen.ai/api/organizations/',
headers={
'Content-Type': 'application/json'
},
json={ "name": "string", "defaultEnvironments": [ { "name": "string", "alternateId": "string", "color": "string", "type": "development" } ], "billingAccount": null, "createDefaultProject": true}
)
data = response.json()
| Name | Type | In | Description |
|---|---|---|---|
| organizationId * | string | path | The organization Id. |
{
"id": "string",
"name": "string",
"logoUrl": "string",
"defaultEnvironments": [
{
"name": "string",
"alternateId": "string",
"color": "string",
"type": "development"
}
],
"billingAccount": {
"id": "string",
"name": "string"
}
}
{
"message": "Unable to validate JWT. Please make sure a valid JWT is sent as an Authorization header or access token cookie.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "Resource with id 'a1b2c3d4' not found or you do not have permission to access it.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "An unknown error occurred",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
curl -X GET "https://api.hyphen.ai/api/organizations/{organizationId}/"
const response = await fetch('https://api.hyphen.ai/api/organizations/{organizationId}/', {
method: 'GET'
});
const data = await response.json();
import requests
response = requests.get('https://api.hyphen.ai/api/organizations/{organizationId}/')
data = response.json()
| Name | Type | In | Description |
|---|---|---|---|
| organizationId * | string | path | The organization Id. |
{
"name": "string",
"defaultEnvironments": [
{
"name": "string",
"alternateId": "string",
"color": "string",
"type": "development"
}
]
}
{
"id": "string",
"name": "string",
"logoUrl": "string",
"defaultEnvironments": [
{
"name": "string",
"alternateId": "string",
"color": "string",
"type": "development"
}
],
"billingAccount": {
"id": "string",
"name": "string"
}
}
curl -X PATCH "https://api.hyphen.ai/api/organizations/{organizationId}/" \
-H "Content-Type: application/json" \
-d '{ "name": "string", "defaultEnvironments": [ { "name": "string", "alternateId": "string", "color": "string", "type": "development" } ]}'
const response = await fetch('https://api.hyphen.ai/api/organizations/{organizationId}/', {
method: 'PATCH',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify({ "name": "string", "defaultEnvironments": [ { "name": "string", "alternateId": "string", "color": "string", "type": "development" } ]})
});
const data = await response.json();
import requests
response = requests.patch(
'https://api.hyphen.ai/api/organizations/{organizationId}/',
headers={
'Content-Type': 'application/json'
},
json={ "name": "string", "defaultEnvironments": [ { "name": "string", "alternateId": "string", "color": "string", "type": "development" } ]}
)
data = response.json()
| Name | Type | In | Description |
|---|---|---|---|
| organizationId * | string | path | The organization Id. |
{
"logo": "string"
}
{
"logoUrl": "string"
}
{
"message": "Unable to validate JWT. Please make sure a valid JWT is sent as an Authorization header or access token cookie.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "Resource with id 'a1b2c3d4' not found or you do not have permission to access it.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "An unknown error occurred",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
curl -X PUT "https://api.hyphen.ai/api/organizations/{organizationId}/logo" \
-H "Content-Type: multipart/form-data" \
-d '{ "logo": "string"}'
const response = await fetch('https://api.hyphen.ai/api/organizations/{organizationId}/logo', {
method: 'PUT',
headers: {
'Content-Type': 'multipart/form-data'
},
body: JSON.stringify({ "logo": "string"})
});
const data = await response.json();
import requests
response = requests.put(
'https://api.hyphen.ai/api/organizations/{organizationId}/logo',
headers={
'Content-Type': 'multipart/form-data'
},
json={ "logo": "string"}
)
data = response.json()
| Name | Type | In | Description |
|---|---|---|---|
| billingCycle | number | query | The billing cycle number. |
| organizationId * | string | path | The organization Id. |
{
"billingCycle": 1,
"totalDays": 30,
"remainingDays": 15,
"startDate": "2021-01-01T00:00:00Z",
"endDate": "2021-01-31T23:59:59Z",
"lastUpdated": "2021-01-01T00:00:00Z",
"total": {
"user": {
"active": 100
},
"seat": {
"total": 100,
"open": 10
},
"env": {
"pull": 100,
"push": 100
},
"link": {
"created": 100
},
"netInfo": {
"requests": 100
},
"toggle": {
"evaluations": 100
},
"deploy": {
"seconds": 7200
},
"agent": {
"seconds": 7200
}
},
"organization": {
"id": "string",
"name": "string"
}
}
{
"message": "Unable to validate JWT. Please make sure a valid JWT is sent as an Authorization header or access token cookie.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "Resource with id 'a1b2c3d4' not found or you do not have permission to access it.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "An unknown error occurred",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
curl -X GET "https://api.hyphen.ai/api/organizations/{organizationId}/usage?billingCycle={billingCycle}"
const response = await fetch('https://api.hyphen.ai/api/organizations/{organizationId}/usage?billingCycle={billingCycle}', {
method: 'GET'
});
const data = await response.json();
import requests
response = requests.get(
'https://api.hyphen.ai/api/organizations/{organizationId}/usage',
params={
'billingCycle': '{billingCycle}'
}
)
data = response.json()
| Name | Type | In | Description |
|---|---|---|---|
| pageNum | integer | query | The page number. |
| pageSize | integer | query | The page size. |
| organizationId * | string | path | The organization Id. |
{
"total": 0,
"pageNum": 0,
"pageSize": 0,
"data": [
{
"id": "string",
"organization": {
"id": "string",
"name": "string"
},
"alternateId": "string",
"name": "string",
"taskQueue": "string",
"state": "unknown",
"cloudProvider": "googleCloud",
"source": "horizon",
"kubernetes": {
"clusterUid": "string",
"identitySource": "kube-system-namespace-uid"
},
"temporal": {
"namespace": "string",
"address": "string",
"serviceAccountId": "string",
"serviceAccountName": "string",
"apiKeyId": "string",
"apiKeyExpiresAt": "string"
},
"lastSeenAt": "string",
"meta": {
"createdAt": "2024-07-08T15:58:34.219+00:00",
"createdBy": "string",
"modifiedAt": "2024-07-08T15:58:34.219+00:00",
"modifiedBy": "string",
"deletedAt": "2024-07-08T15:58:34.219+00:00",
"deletedBy": "string"
}
}
]
}
{
"message": "Unable to validate JWT. Please make sure a valid JWT is sent as an Authorization header or access token cookie.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "Resource with id 'a1b2c3d4' not found or you do not have permission to access it.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "An unknown error occurred",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
curl -X GET "https://api.hyphen.ai/api/organizations/{organizationId}/kubernetes/clusters?pageNum={pageNum}&pageSize={pageSize}"
const response = await fetch('https://api.hyphen.ai/api/organizations/{organizationId}/kubernetes/clusters?pageNum={pageNum}&pageSize={pageSize}', {
method: 'GET'
});
const data = await response.json();
import requests
response = requests.get(
'https://api.hyphen.ai/api/organizations/{organizationId}/kubernetes/clusters',
params={
'pageNum': '{pageNum}',
'pageSize': '{pageSize}'
}
)
data = response.json()
| Name | Type | In | Description |
|---|---|---|---|
| organizationId * | string | path | The organization Id. |
| clusterId * | string | path | The Kubernetes cluster Id. |
{
"id": "string",
"organization": {
"id": "string",
"name": "string"
},
"alternateId": "string",
"name": "string",
"taskQueue": "string",
"state": "unknown",
"cloudProvider": "googleCloud",
"source": "horizon",
"kubernetes": {
"clusterUid": "string",
"identitySource": "kube-system-namespace-uid"
},
"temporal": {
"namespace": "string",
"address": "string",
"serviceAccountId": "string",
"serviceAccountName": "string",
"apiKeyId": "string",
"apiKeyExpiresAt": "string"
},
"lastSeenAt": "string",
"meta": {
"createdAt": "2024-07-08T15:58:34.219+00:00",
"createdBy": "string",
"modifiedAt": "2024-07-08T15:58:34.219+00:00",
"modifiedBy": "string",
"deletedAt": "2024-07-08T15:58:34.219+00:00",
"deletedBy": "string"
}
}
{
"message": "Unable to validate JWT. Please make sure a valid JWT is sent as an Authorization header or access token cookie.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "Resource with id 'a1b2c3d4' not found or you do not have permission to access it.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "An unknown error occurred",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
curl -X GET "https://api.hyphen.ai/api/organizations/{organizationId}/kubernetes/clusters/{clusterId}"
const response = await fetch('https://api.hyphen.ai/api/organizations/{organizationId}/kubernetes/clusters/{clusterId}', {
method: 'GET'
});
const data = await response.json();
import requests
response = requests.get('https://api.hyphen.ai/api/organizations/{organizationId}/kubernetes/clusters/{clusterId}')
data = response.json()
| Name | Type | In | Description |
|---|---|---|---|
| organizationId * | string | path | The organization Id. |
| clusterId * | string | path | The Kubernetes cluster Id. |
{
"workflowId": "string",
"runId": "string",
"namespace": "string",
"workflowTaskQueue": "string",
"clusterTaskQueue": "string",
"alreadyDeleted": true
}
{
"message": "Unable to validate JWT. Please make sure a valid JWT is sent as an Authorization header or access token cookie.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "Resource with id 'a1b2c3d4' not found or you do not have permission to access it.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "An unknown error occurred",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
curl -X DELETE "https://api.hyphen.ai/api/organizations/{organizationId}/kubernetes/clusters/{clusterId}"
const response = await fetch('https://api.hyphen.ai/api/organizations/{organizationId}/kubernetes/clusters/{clusterId}', {
method: 'DELETE'
});
const data = await response.json();
import requests
response = requests.delete('https://api.hyphen.ai/api/organizations/{organizationId}/kubernetes/clusters/{clusterId}')
data = response.json()
| Name | Type | In | Description |
|---|---|---|---|
| pageNum | integer | query | The page number. |
| pageSize | integer | query | The page size. |
| organizationId * | string | path | The organization Id. |
| clusterId * | string | path | The Kubernetes cluster Id. |
{
"total": 0,
"pageNum": 0,
"pageSize": 0,
"data": [
{
"id": "string",
"organization": {
"id": "string",
"name": "string"
},
"cluster": {
"id": "string",
"name": "string"
},
"collectedAt": "string",
"storedAt": "string",
"workflow": {
"workflowId": "string",
"runId": "string"
}
}
]
}
{
"message": "Unable to validate JWT. Please make sure a valid JWT is sent as an Authorization header or access token cookie.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "Resource with id 'a1b2c3d4' not found or you do not have permission to access it.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "An unknown error occurred",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
curl -X GET "https://api.hyphen.ai/api/organizations/{organizationId}/kubernetes/clusters/{clusterId}/inventory?pageNum={pageNum}&pageSize={pageSize}"
const response = await fetch('https://api.hyphen.ai/api/organizations/{organizationId}/kubernetes/clusters/{clusterId}/inventory?pageNum={pageNum}&pageSize={pageSize}', {
method: 'GET'
});
const data = await response.json();
import requests
response = requests.get(
'https://api.hyphen.ai/api/organizations/{organizationId}/kubernetes/clusters/{clusterId}/inventory',
params={
'pageNum': '{pageNum}',
'pageSize': '{pageSize}'
}
)
data = response.json()
| Name | Type | In | Description |
|---|---|---|---|
| organizationId * | string | path | The organization Id. |
| clusterId * | string | path | The Kubernetes cluster Id. |
| snapshotId * | string (ObjectId) | path | The Kubernetes inventory snapshot ID. |
{
"id": "string",
"organization": {
"id": "string",
"name": "string"
},
"cluster": {
"id": "string",
"name": "string"
},
"collectedAt": "string",
"storedAt": "string",
"workflow": {
"workflowId": "string",
"runId": "string"
},
"inventory": {
"key": "value"
}
}
{
"message": "Invalid request body or query parameters",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "Unable to validate JWT. Please make sure a valid JWT is sent as an Authorization header or access token cookie.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "Resource with id 'a1b2c3d4' not found or you do not have permission to access it.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "An unknown error occurred",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
curl -X GET "https://api.hyphen.ai/api/organizations/{organizationId}/kubernetes/clusters/{clusterId}/inventory/{snapshotId}"
const response = await fetch('https://api.hyphen.ai/api/organizations/{organizationId}/kubernetes/clusters/{clusterId}/inventory/{snapshotId}', {
method: 'GET'
});
const data = await response.json();
import requests
response = requests.get('https://api.hyphen.ai/api/organizations/{organizationId}/kubernetes/clusters/{clusterId}/inventory/{snapshotId}')
data = response.json()
| Name | Type | In | Description |
|---|---|---|---|
| organizationId * | string | path | The organization Id. |
| clusterId * | string | path | The Kubernetes cluster Id. |
{
"workflowId": "string",
"runId": "string",
"namespace": "string",
"workflowTaskQueue": "string",
"clusterTaskQueue": "string"
}
{
"message": "Unable to validate JWT. Please make sure a valid JWT is sent as an Authorization header or access token cookie.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "Resource with id 'a1b2c3d4' not found or you do not have permission to access it.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "An unknown error occurred",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
curl -X POST "https://api.hyphen.ai/api/organizations/{organizationId}/kubernetes/clusters/{clusterId}/inventory/refresh"
const response = await fetch('https://api.hyphen.ai/api/organizations/{organizationId}/kubernetes/clusters/{clusterId}/inventory/refresh', {
method: 'POST'
});
const data = await response.json();
import requests
response = requests.post('https://api.hyphen.ai/api/organizations/{organizationId}/kubernetes/clusters/{clusterId}/inventory/refresh')
data = response.json()
| Name | Type | In | Description |
|---|---|---|---|
| organizationId * | string | path | The organization Id. |
| clusterId * | string | path | The Kubernetes cluster Id. |
{
"agentTaskId": "string",
"runId": "string",
"workflowId": "string",
"status": "queued"
}
{
"message": "Invalid request body or query parameters",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "Unable to validate JWT. Please make sure a valid JWT is sent as an Authorization header or access token cookie.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "Resource with id 'a1b2c3d4' not found or you do not have permission to access it.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "The resource could not be created because of a conflict.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "An unknown error occurred",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
curl -X POST "https://api.hyphen.ai/api/organizations/{organizationId}/kubernetes/clusters/{clusterId}/upgrade-plans"
const response = await fetch('https://api.hyphen.ai/api/organizations/{organizationId}/kubernetes/clusters/{clusterId}/upgrade-plans', {
method: 'POST'
});
const data = await response.json();
import requests
response = requests.post('https://api.hyphen.ai/api/organizations/{organizationId}/kubernetes/clusters/{clusterId}/upgrade-plans')
data = response.json()
| Name | Type | In | Description |
|---|---|---|---|
| organizationId * | string | path |
{
"promoCodes": [
{
"code": "string",
"description": "string"
}
]
}
{
"message": "Unable to validate JWT. Please make sure a valid JWT is sent as an Authorization header or access token cookie.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "An unknown error occurred",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
curl -X GET "https://api.hyphen.ai/api/organizations/{organizationId}/saleskit/promocodes/"
const response = await fetch('https://api.hyphen.ai/api/organizations/{organizationId}/saleskit/promocodes/', {
method: 'GET'
});
const data = await response.json();
import requests
response = requests.get('https://api.hyphen.ai/api/organizations/{organizationId}/saleskit/promocodes/')
data = response.json()
Access
| Name | Type | In | Description |
|---|---|---|---|
| pageNum | integer | query | The page number. |
| pageSize | integer | query | The page size. |
| entityIds | array(any) | query | The entity Ids. |
| assignmentIds | array(any) | query | The assignment Ids. |
| organizationId * | string | path | The organization Id. |
{
"total": 0,
"pageNum": 0,
"pageSize": 0,
"data": [
null
]
}
{
"message": "Unable to validate JWT. Please make sure a valid JWT is sent as an Authorization header or access token cookie.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "Resource with id 'a1b2c3d4' not found or you do not have permission to access it.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "An unknown error occurred",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
curl -X GET "https://api.hyphen.ai/api/organizations/{organizationId}/access/?pageNum={pageNum}&pageSize={pageSize}&entityIds={entityIds}&assignmentIds={assignmentIds}"
const response = await fetch('https://api.hyphen.ai/api/organizations/{organizationId}/access/?pageNum={pageNum}&pageSize={pageSize}&entityIds={entityIds}&assignmentIds={assignmentIds}', {
method: 'GET'
});
const data = await response.json();
import requests
response = requests.get(
'https://api.hyphen.ai/api/organizations/{organizationId}/access/',
params={
'pageNum': '{pageNum}',
'pageSize': '{pageSize}',
'entityIds': '{entityIds}',
'assignmentIds': '{assignmentIds}'
}
)
data = response.json()
| Name | Type | In | Description |
|---|---|---|---|
| organizationId * | string | path | The organization Id. |
{}
null
{
"message": "Unable to validate JWT. Please make sure a valid JWT is sent as an Authorization header or access token cookie.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "Resource with id 'a1b2c3d4' not found or you do not have permission to access it.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "An unknown error occurred",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
curl -X POST "https://api.hyphen.ai/api/organizations/{organizationId}/access/" \
-H "Content-Type: application/json" \
-d '{}'
const response = await fetch('https://api.hyphen.ai/api/organizations/{organizationId}/access/', {
method: 'POST',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify({})
});
const data = await response.json();
import requests
response = requests.post(
'https://api.hyphen.ai/api/organizations/{organizationId}/access/',
headers={
'Content-Type': 'application/json'
},
json={}
)
data = response.json()
| Name | Type | In | Description |
|---|---|---|---|
| organizationId * | string | path | The organization Id. |
| accessId * | string | path | The access Id. |
null
{
"message": "Unable to validate JWT. Please make sure a valid JWT is sent as an Authorization header or access token cookie.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "Resource with id 'a1b2c3d4' not found or you do not have permission to access it.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "An unknown error occurred",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
curl -X GET "https://api.hyphen.ai/api/organizations/{organizationId}/access/{accessId}/"
const response = await fetch('https://api.hyphen.ai/api/organizations/{organizationId}/access/{accessId}/', {
method: 'GET'
});
const data = await response.json();
import requests
response = requests.get('https://api.hyphen.ai/api/organizations/{organizationId}/access/{accessId}/')
data = response.json()
| Name | Type | In | Description |
|---|---|---|---|
| organizationId * | string | path | The organization Id. |
| accessId * | string | path | The access Id. |
{
"message": "Unable to validate JWT. Please make sure a valid JWT is sent as an Authorization header or access token cookie.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "Resource with id 'a1b2c3d4' not found or you do not have permission to access it.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "An unknown error occurred",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
curl -X DELETE "https://api.hyphen.ai/api/organizations/{organizationId}/access/{accessId}/"
const response = await fetch('https://api.hyphen.ai/api/organizations/{organizationId}/access/{accessId}/', {
method: 'DELETE'
});
const data = await response.json();
import requests
response = requests.delete('https://api.hyphen.ai/api/organizations/{organizationId}/access/{accessId}/')
data = response.json()
| Name | Type | In | Description |
|---|---|---|---|
| organizationId * | string | path | The organization Id. |
| accessId * | string | path | The access Id. |
{
"roles": null
}
null
{
"message": "Unable to validate JWT. Please make sure a valid JWT is sent as an Authorization header or access token cookie.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "Resource with id 'a1b2c3d4' not found or you do not have permission to access it.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "The resource could not be created because of a conflict.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "An unknown error occurred",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
curl -X PATCH "https://api.hyphen.ai/api/organizations/{organizationId}/access/{accessId}/" \
-H "Content-Type: application/json" \
-d '{ "roles": null}'
const response = await fetch('https://api.hyphen.ai/api/organizations/{organizationId}/access/{accessId}/', {
method: 'PATCH',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify({ "roles": null})
});
const data = await response.json();
import requests
response = requests.patch(
'https://api.hyphen.ai/api/organizations/{organizationId}/access/{accessId}/',
headers={
'Content-Type': 'application/json'
},
json={ "roles": null}
)
data = response.json()
Agent Tasks
| Name | Type | In | Description |
|---|---|---|---|
| pageNum | integer | query | The page number. |
| pageSize | integer | query | The page size. |
| status | string | query | Filter by agent task status. |
| startsAfter | string (date-time) | query | Filter for tasks that will run after this date. |
| endsBefore | string (date-time) | query | Filter for tasks that will run before this date. |
| organizationId * | string | path | The organization Id. |
{
"total": 0,
"pageNum": 0,
"pageSize": 0,
"data": [
{
"id": "string",
"name": "string",
"conversation": [
{
"role": "user",
"message": "string",
"sentAt": "string"
}
],
"description": "string",
"scheduledStart": "string",
"scheduledEnd": "string",
"recurring": {
"cron": "string",
"timezone": "string",
"startAt": "string",
"endAt": "string"
},
"status": "pending",
"source": "policy",
"policyId": "string",
"organization": {
"id": "string",
"name": "string"
},
"references": [
{
"type": "Lead",
"id": "string"
}
],
"chatSessionId": "string",
"type": "Event",
"config": {}
}
]
}
{
"message": "Unable to validate JWT. Please make sure a valid JWT is sent as an Authorization header or access token cookie.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "An unknown error occurred",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
curl -X GET "https://api.hyphen.ai/api/organizations/{organizationId}/agent-tasks/?pageNum={pageNum}&pageSize={pageSize}&status={status}&startsAfter={startsAfter}&endsBefore={endsBefore}"
const response = await fetch('https://api.hyphen.ai/api/organizations/{organizationId}/agent-tasks/?pageNum={pageNum}&pageSize={pageSize}&status={status}&startsAfter={startsAfter}&endsBefore={endsBefore}', {
method: 'GET'
});
const data = await response.json();
import requests
response = requests.get(
'https://api.hyphen.ai/api/organizations/{organizationId}/agent-tasks/',
params={
'pageNum': '{pageNum}',
'pageSize': '{pageSize}',
'status': '{status}',
'startsAfter': '{startsAfter}',
'endsBefore': '{endsBefore}'
}
)
data = response.json()
| Name | Type | In | Description |
|---|---|---|---|
| organizationId * | string | path | The organization Id. |
{
"tasks": [
{}
]
}
{
"tasks": [
{
"id": "string",
"name": "string",
"conversation": [
{
"role": "user",
"message": "string",
"sentAt": "string"
}
],
"description": "string",
"scheduledStart": "string",
"scheduledEnd": "string",
"recurring": {
"cron": "string",
"timezone": "string",
"startAt": "string",
"endAt": "string"
},
"status": "pending",
"source": "policy",
"policyId": "string",
"organization": {
"id": "string",
"name": "string"
},
"references": [
{
"type": "Lead",
"id": "string"
}
],
"chatSessionId": "string",
"type": "Event",
"config": {}
}
]
}
{
"message": "Invalid request body or query parameters",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "Unable to validate JWT. Please make sure a valid JWT is sent as an Authorization header or access token cookie.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "Resource with id 'a1b2c3d4' not found or you do not have permission to access it.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "The resource could not be created because of a conflict.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "An unknown error occurred",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
curl -X POST "https://api.hyphen.ai/api/organizations/{organizationId}/agent-tasks/" \
-H "Content-Type: application/json" \
-d '{ "tasks": [ {} ]}'
const response = await fetch('https://api.hyphen.ai/api/organizations/{organizationId}/agent-tasks/', {
method: 'POST',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify({ "tasks": [ {} ]})
});
const data = await response.json();
import requests
response = requests.post(
'https://api.hyphen.ai/api/organizations/{organizationId}/agent-tasks/',
headers={
'Content-Type': 'application/json'
},
json={ "tasks": [ {} ]}
)
data = response.json()
| Name | Type | In | Description |
|---|---|---|---|
| organizationId * | string | path | The organization Id. |
| agentTaskId * | string | path | The agentTask ID. |
{
"id": "string",
"name": "string",
"conversation": [
{
"role": "user",
"message": "string",
"sentAt": "string"
}
],
"description": "string",
"scheduledStart": "string",
"scheduledEnd": "string",
"recurring": {
"cron": "string",
"timezone": "string",
"startAt": "string",
"endAt": "string"
},
"status": "pending",
"source": "policy",
"policyId": "string",
"organization": {
"id": "string",
"name": "string"
},
"references": [
{
"type": "Lead",
"id": "string"
}
],
"chatSessionId": "string",
"type": "Event",
"config": {}
}
{
"message": "Unable to validate JWT. Please make sure a valid JWT is sent as an Authorization header or access token cookie.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "Resource with id 'a1b2c3d4' not found or you do not have permission to access it.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "An unknown error occurred",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
curl -X GET "https://api.hyphen.ai/api/organizations/{organizationId}/agent-tasks/{agentTaskId}/"
const response = await fetch('https://api.hyphen.ai/api/organizations/{organizationId}/agent-tasks/{agentTaskId}/', {
method: 'GET'
});
const data = await response.json();
import requests
response = requests.get('https://api.hyphen.ai/api/organizations/{organizationId}/agent-tasks/{agentTaskId}/')
data = response.json()
| Name | Type | In | Description |
|---|---|---|---|
| organizationId * | string | path | The organization Id. |
| agentTaskId * | string | path | The agentTask ID. |
{
"message": "Unable to validate JWT. Please make sure a valid JWT is sent as an Authorization header or access token cookie.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "Resource with id 'a1b2c3d4' not found or you do not have permission to access it.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "An unknown error occurred",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
curl -X DELETE "https://api.hyphen.ai/api/organizations/{organizationId}/agent-tasks/{agentTaskId}/"
const response = await fetch('https://api.hyphen.ai/api/organizations/{organizationId}/agent-tasks/{agentTaskId}/', {
method: 'DELETE'
});
const data = await response.json();
import requests
response = requests.delete('https://api.hyphen.ai/api/organizations/{organizationId}/agent-tasks/{agentTaskId}/')
data = response.json()
Runs
| Name | Type | In | Description |
|---|---|---|---|
| pageSize | number | query | The page size. |
| pageCursor | string | query | The page cursor. |
| status | array(string) | query | |
| openPullRequestOnly | boolean | query | If true, only returns runs that have an open pull request. |
| organizationId * | string | path | The organization Id. |
| agentTaskId * | string | path | Filter runs by agent task ID. |
{
"data": [
{
"id": "string",
"organization": {
"id": "string",
"name": "string"
},
"status": "pending",
"type": "deployment",
"action": "connectionCreated",
"references": [
{
"type": "Lead",
"id": "string"
}
],
"workflowId": "string",
"timing": {
"startTime": "string",
"endTime": "string"
},
"input": {
"key": "value"
},
"data": null,
"inputRequests": [
{}
]
}
],
"pageSize": 0,
"nextPageCursor": "run_67a3c68e9137f944f073fef8"
}
{
"message": "Unable to validate JWT. Please make sure a valid JWT is sent as an Authorization header or access token cookie.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "Resource with id 'a1b2c3d4' not found or you do not have permission to access it.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "An unknown error occurred",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
curl -X GET "https://api.hyphen.ai/api/organizations/{organizationId}/agent-tasks/{agentTaskId}/runs?pageSize={pageSize}&pageCursor={pageCursor}&status={status}&openPullRequestOnly={openPullRequestOnly}"
const response = await fetch('https://api.hyphen.ai/api/organizations/{organizationId}/agent-tasks/{agentTaskId}/runs?pageSize={pageSize}&pageCursor={pageCursor}&status={status}&openPullRequestOnly={openPullRequestOnly}', {
method: 'GET'
});
const data = await response.json();
import requests
response = requests.get(
'https://api.hyphen.ai/api/organizations/{organizationId}/agent-tasks/{agentTaskId}/runs',
params={
'pageSize': '{pageSize}',
'pageCursor': '{pageCursor}',
'status': '{status}',
'openPullRequestOnly': '{openPullRequestOnly}'
}
)
data = response.json()
| Name | Type | In | Description |
|---|---|---|---|
| pageNum | integer | query | The page number. |
| pageSize | integer | query | The page size. |
| type | string | query | The run type. |
| organizationId * | string | path | The organization Id. |
| appId * | string | path | The app Id or alternate Id. |
{
"total": 0,
"pageNum": 0,
"pageSize": 0,
"data": [
{
"id": "string",
"organization": {
"id": "string",
"name": "string"
},
"status": "pending",
"type": "deployment",
"action": "connectionCreated",
"references": [
{
"type": "Lead",
"id": "string"
}
],
"workflowId": "string",
"timing": {
"startTime": "string",
"endTime": "string"
},
"input": {
"key": "value"
},
"data": null,
"inputRequests": [
{}
]
}
]
}
{
"message": "Unable to validate JWT. Please make sure a valid JWT is sent as an Authorization header or access token cookie.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "Resource with id 'a1b2c3d4' not found or you do not have permission to access it.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "An unknown error occurred",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
curl -X GET "https://api.hyphen.ai/api/organizations/{organizationId}/apps/{appId}/runs/?pageNum={pageNum}&pageSize={pageSize}&type={type}"
const response = await fetch('https://api.hyphen.ai/api/organizations/{organizationId}/apps/{appId}/runs/?pageNum={pageNum}&pageSize={pageSize}&type={type}', {
method: 'GET'
});
const data = await response.json();
import requests
response = requests.get(
'https://api.hyphen.ai/api/organizations/{organizationId}/apps/{appId}/runs/',
params={
'pageNum': '{pageNum}',
'pageSize': '{pageSize}',
'type': '{type}'
}
)
data = response.json()
| Name | Type | In | Description |
|---|---|---|---|
| organizationId * | string | path | The organization Id. |
| appId * | string | path | The app Id or alternate Id. |
{}
{
"id": "string",
"organization": {
"id": "string",
"name": "string"
},
"status": "pending",
"type": "deployment",
"action": "connectionCreated",
"references": [
{
"type": "Lead",
"id": "string"
}
],
"workflowId": "string",
"timing": {
"startTime": "string",
"endTime": "string"
},
"input": {
"key": "value"
},
"data": null,
"inputRequests": [
{}
]
}
{
"message": "Unable to validate JWT. Please make sure a valid JWT is sent as an Authorization header or access token cookie.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "An unknown error occurred",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
curl -X POST "https://api.hyphen.ai/api/organizations/{organizationId}/apps/{appId}/runs/" \
-H "Content-Type: application/json" \
-d '{}'
const response = await fetch('https://api.hyphen.ai/api/organizations/{organizationId}/apps/{appId}/runs/', {
method: 'POST',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify({})
});
const data = await response.json();
import requests
response = requests.post(
'https://api.hyphen.ai/api/organizations/{organizationId}/apps/{appId}/runs/',
headers={
'Content-Type': 'application/json'
},
json={}
)
data = response.json()
| Name | Type | In | Description |
|---|---|---|---|
| organizationId * | string | path | The organization Id. |
| appId * | string | path | The app Id or alternate Id. |
| runId * | string | path | The run Id. |
{
"id": "string",
"organization": {
"id": "string",
"name": "string"
},
"status": "pending",
"type": "deployment",
"action": "connectionCreated",
"references": [
{
"type": "Lead",
"id": "string"
}
],
"workflowId": "string",
"timing": {
"startTime": "string",
"endTime": "string"
},
"input": {
"key": "value"
},
"data": null,
"inputRequests": [
{}
]
}
{
"message": "Unable to validate JWT. Please make sure a valid JWT is sent as an Authorization header or access token cookie.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "Resource with id 'a1b2c3d4' not found or you do not have permission to access it.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "An unknown error occurred",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
curl -X GET "https://api.hyphen.ai/api/organizations/{organizationId}/apps/{appId}/runs/{runId}/"
const response = await fetch('https://api.hyphen.ai/api/organizations/{organizationId}/apps/{appId}/runs/{runId}/', {
method: 'GET'
});
const data = await response.json();
import requests
response = requests.get('https://api.hyphen.ai/api/organizations/{organizationId}/apps/{appId}/runs/{runId}/')
data = response.json()
| Name | Type | In | Description |
|---|---|---|---|
| pageNum | integer | query | The page number. |
| pageSize | integer | query | The page size. |
| type | array(string) | query | Filter runs by type. |
| status | array(string) | query | |
| referenceIds | array(string) | query | Filter by entity IDs referenced by a run. Matches any supplied ID. |
| organizationId * | string | path | The organization Id. |
{
"total": 0,
"pageNum": 0,
"pageSize": 0,
"data": [
{
"id": "string",
"organization": {
"id": "string",
"name": "string"
},
"status": "pending",
"type": "deployment",
"action": "connectionCreated",
"references": [
{
"type": "Lead",
"id": "string"
}
],
"workflowId": "string",
"timing": {
"startTime": "string",
"endTime": "string"
},
"input": {
"key": "value"
},
"data": null,
"inputRequests": [
{}
]
}
]
}
{
"message": "Unable to validate JWT. Please make sure a valid JWT is sent as an Authorization header or access token cookie.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "Resource with id 'a1b2c3d4' not found or you do not have permission to access it.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "An unknown error occurred",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
curl -X GET "https://api.hyphen.ai/api/organizations/{organizationId}/runs/?pageNum={pageNum}&pageSize={pageSize}&type={type}&status={status}&referenceIds={referenceIds}"
const response = await fetch('https://api.hyphen.ai/api/organizations/{organizationId}/runs/?pageNum={pageNum}&pageSize={pageSize}&type={type}&status={status}&referenceIds={referenceIds}', {
method: 'GET'
});
const data = await response.json();
import requests
response = requests.get(
'https://api.hyphen.ai/api/organizations/{organizationId}/runs/',
params={
'pageNum': '{pageNum}',
'pageSize': '{pageSize}',
'type': '{type}',
'status': '{status}',
'referenceIds': '{referenceIds}'
}
)
data = response.json()
| Name | Type | In | Description |
|---|---|---|---|
| organizationId * | string | path | The organization Id. |
| runId * | string | path | The run Id. |
{
"id": "string",
"organization": {
"id": "string",
"name": "string"
},
"status": "pending",
"type": "deployment",
"references": [
{
"type": "Lead",
"id": "string"
}
],
"workflowId": "string",
"timing": {
"startTime": "string",
"endTime": "string"
},
"input": {
"key": "value"
},
"inputRequests": [
{}
],
"data": null
}
{
"message": "Unable to validate JWT. Please make sure a valid JWT is sent as an Authorization header or access token cookie.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "Resource with id 'a1b2c3d4' not found or you do not have permission to access it.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "An unknown error occurred",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
curl -X GET "https://api.hyphen.ai/api/organizations/{organizationId}/runs/{runId}/"
const response = await fetch('https://api.hyphen.ai/api/organizations/{organizationId}/runs/{runId}/', {
method: 'GET'
});
const data = await response.json();
import requests
response = requests.get('https://api.hyphen.ai/api/organizations/{organizationId}/runs/{runId}/')
data = response.json()
| Name | Type | In | Description |
|---|---|---|---|
| organizationId * | string | path | The organization Id. |
| runId * | string | path | The run Id. |
| inputRequestId * | string (ObjectId) | path | The input request Id. |
{}
{
"message": "Unable to validate JWT. Please make sure a valid JWT is sent as an Authorization header or access token cookie.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "Resource with id 'a1b2c3d4' not found or you do not have permission to access it.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "The resource could not be created because of a conflict.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "An unknown error occurred",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
curl -X POST "https://api.hyphen.ai/api/organizations/{organizationId}/runs/{runId}/inputRequests/{inputRequestId}/response" \
-H "Content-Type: application/json" \
-d '{}'
const response = await fetch('https://api.hyphen.ai/api/organizations/{organizationId}/runs/{runId}/inputRequests/{inputRequestId}/response', {
method: 'POST',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify({})
});
const data = await response.json();
import requests
response = requests.post(
'https://api.hyphen.ai/api/organizations/{organizationId}/runs/{runId}/inputRequests/{inputRequestId}/response',
headers={
'Content-Type': 'application/json'
},
json={}
)
data = response.json()
API Keys
| Name | Type | In | Description |
|---|---|---|---|
| name | string | query | Filter by api key name starts with (case insensitive) |
| organizationId * | string | path | The organization Id. |
{
"data": [
{
"id": "string",
"name": "string",
"createdAt": "string",
"memberId": "string",
"secrets": [
{
"id": "string",
"hint": "string",
"lastUsed": "string"
}
],
"roles": [
"string"
]
}
],
"total": 0,
"pageNum": 0,
"pageSize": 0
}
{
"message": "Unable to validate JWT. Please make sure a valid JWT is sent as an Authorization header or access token cookie.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "An unknown error occurred",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
curl -X GET "https://api.hyphen.ai/api/organizations/{organizationId}/api-keys/?name={name}"
const response = await fetch('https://api.hyphen.ai/api/organizations/{organizationId}/api-keys/?name={name}', {
method: 'GET'
});
const data = await response.json();
import requests
response = requests.get(
'https://api.hyphen.ai/api/organizations/{organizationId}/api-keys/',
params={
'name': '{name}'
}
)
data = response.json()
| Name | Type | In | Description |
|---|---|---|---|
| organizationId * | string | path | The organization Id. |
{
"name": "string"
}
{
"id": "string",
"name": "string",
"createdAt": "string",
"memberId": "string",
"secrets": [
{
"id": "string",
"hint": "string",
"lastUsed": "string",
"value": "string"
}
]
}
{
"message": "Unable to validate JWT. Please make sure a valid JWT is sent as an Authorization header or access token cookie.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "The resource could not be created because you do not have permission to create it.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "Resource with id 'a1b2c3d4' not found or you do not have permission to access it.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "An unknown error occurred",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
curl -X POST "https://api.hyphen.ai/api/organizations/{organizationId}/api-keys/" \
-H "Content-Type: application/json" \
-d '{ "name": "string"}'
const response = await fetch('https://api.hyphen.ai/api/organizations/{organizationId}/api-keys/', {
method: 'POST',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify({ "name": "string"})
});
const data = await response.json();
import requests
response = requests.post(
'https://api.hyphen.ai/api/organizations/{organizationId}/api-keys/',
headers={
'Content-Type': 'application/json'
},
json={ "name": "string"}
)
data = response.json()
| Name | Type | In | Description |
|---|---|---|---|
| organizationId * | string | path | The organization Id. |
| apiKeyId * | string | path | The API Key ID |
{
"id": "string",
"name": "string",
"createdAt": "string",
"memberId": "string",
"secrets": [
{
"id": "string",
"hint": "string",
"lastUsed": "string"
}
],
"roles": [
"string"
]
}
{
"message": "Unable to validate JWT. Please make sure a valid JWT is sent as an Authorization header or access token cookie.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "Resource with id 'a1b2c3d4' not found or you do not have permission to access it.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "An unknown error occurred",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
curl -X GET "https://api.hyphen.ai/api/organizations/{organizationId}/api-keys/{apiKeyId}/"
const response = await fetch('https://api.hyphen.ai/api/organizations/{organizationId}/api-keys/{apiKeyId}/', {
method: 'GET'
});
const data = await response.json();
import requests
response = requests.get('https://api.hyphen.ai/api/organizations/{organizationId}/api-keys/{apiKeyId}/')
data = response.json()
| Name | Type | In | Description |
|---|---|---|---|
| organizationId * | string | path | The organization Id. |
| apiKeyId * | string | path | The API Key ID |
{
"message": "Unable to validate JWT. Please make sure a valid JWT is sent as an Authorization header or access token cookie.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "Resource with id 'a1b2c3d4' not found or you do not have permission to access it.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "An unknown error occurred",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
curl -X DELETE "https://api.hyphen.ai/api/organizations/{organizationId}/api-keys/{apiKeyId}/"
const response = await fetch('https://api.hyphen.ai/api/organizations/{organizationId}/api-keys/{apiKeyId}/', {
method: 'DELETE'
});
const data = await response.json();
import requests
response = requests.delete('https://api.hyphen.ai/api/organizations/{organizationId}/api-keys/{apiKeyId}/')
data = response.json()
| Name | Type | In | Description |
|---|---|---|---|
| organizationId * | string | path | The organization Id. |
| apiKeyId * | string | path | The API Key ID |
{
"id": "string",
"hint": "string",
"lastUsed": "string",
"value": "string"
}
{
"message": "Unable to validate JWT. Please make sure a valid JWT is sent as an Authorization header or access token cookie.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "Resource with id 'a1b2c3d4' not found or you do not have permission to access it.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "An unknown error occurred",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
curl -X PUT "https://api.hyphen.ai/api/organizations/{organizationId}/api-keys/{apiKeyId}/secrets/"
const response = await fetch('https://api.hyphen.ai/api/organizations/{organizationId}/api-keys/{apiKeyId}/secrets/', {
method: 'PUT'
});
const data = await response.json();
import requests
response = requests.put('https://api.hyphen.ai/api/organizations/{organizationId}/api-keys/{apiKeyId}/secrets/')
data = response.json()
| Name | Type | In | Description |
|---|---|---|---|
| organizationId * | string | path | The organization Id. |
| apiKeyId * | string | path | The API Key ID |
| secretId * | string | path | The API Key Secret ID |
{
"message": "Unable to validate JWT. Please make sure a valid JWT is sent as an Authorization header or access token cookie.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "An unknown error occurred",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
curl -X DELETE "https://api.hyphen.ai/api/organizations/{organizationId}/api-keys/{apiKeyId}/secrets/{secretId}"
const response = await fetch('https://api.hyphen.ai/api/organizations/{organizationId}/api-keys/{apiKeyId}/secrets/{secretId}', {
method: 'DELETE'
});
const data = await response.json();
import requests
response = requests.delete('https://api.hyphen.ai/api/organizations/{organizationId}/api-keys/{apiKeyId}/secrets/{secretId}')
data = response.json()
Apps
| Name | Type | In | Description |
|---|---|---|---|
| projectIds | array(string) | query | The project Ids or alternate Ids. |
| appIds | array(string) | query | The app Ids or alternate Ids |
| pageNum | integer | query | The page number. |
| pageSize | integer | query | The page size. |
| organizationId * | string | path | The organization Id. |
{
"total": 0,
"pageNum": 0,
"pageSize": 0,
"data": [
{
"id": "app_66bf99b72a0043f841769880",
"alternateId": "my-app",
"name": "My App",
"settings": {
"env": {
"accessControls": {
"environments": {
"production": {
"allow": [
{
"description": "Prod servers",
"type": "cidr",
"cidr": "10.10.0.0/16"
}
],
"deny": [
{
"description": "Block all",
"type": "cidr",
"cidr": "0.0.0.0/0"
}
]
}
}
}
}
},
"organization": {
"id": "org_66bf99b72a0043f841769880",
"name": "My Org"
},
"project": {
"id": "proj_66bf99b72a0043f841769880",
"alternateId": "my-project",
"name": "My Project"
},
"meta": {
"createdAt": "2025-01-14T22:56:14.234Z",
"createdBy": "memb_66f30abb67ebc6bb0c5e0af9"
}
}
]
}
{
"message": "Unable to validate JWT. Please make sure a valid JWT is sent as an Authorization header or access token cookie.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "Resource with id 'a1b2c3d4' not found or you do not have permission to access it.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "An unknown error occurred",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
curl -X GET "https://api.hyphen.ai/api/organizations/{organizationId}/apps/?projectIds={projectIds}&appIds={appIds}&pageNum={pageNum}&pageSize={pageSize}"
const response = await fetch('https://api.hyphen.ai/api/organizations/{organizationId}/apps/?projectIds={projectIds}&appIds={appIds}&pageNum={pageNum}&pageSize={pageSize}', {
method: 'GET'
});
const data = await response.json();
import requests
response = requests.get(
'https://api.hyphen.ai/api/organizations/{organizationId}/apps/',
params={
'projectIds': '{projectIds}',
'appIds': '{appIds}',
'pageNum': '{pageNum}',
'pageSize': '{pageSize}'
}
)
data = response.json()
| Name | Type | In | Description |
|---|---|---|---|
| organizationId * | string | path | The organization Id. |
| appId * | string | path | The app Id or alternate Id. |
{
"id": "app_66bf99b72a0043f841769880",
"alternateId": "my-app",
"name": "My App",
"settings": {
"env": {
"accessControls": {
"environments": {
"production": {
"allow": [
{
"description": "Prod servers",
"type": "cidr",
"cidr": "10.10.0.0/16"
}
],
"deny": [
{
"description": "Block all",
"type": "cidr",
"cidr": "0.0.0.0/0"
}
]
}
}
}
}
},
"organization": {
"id": "org_66bf99b72a0043f841769880",
"name": "My Org"
},
"project": {
"id": "proj_66bf99b72a0043f841769880",
"alternateId": "my-project",
"name": "My Project"
},
"meta": {
"createdAt": "2025-01-14T22:56:14.234Z",
"createdBy": "memb_66f30abb67ebc6bb0c5e0af9"
}
}
{
"message": "Unable to validate JWT. Please make sure a valid JWT is sent as an Authorization header or access token cookie.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "Resource with id 'a1b2c3d4' not found or you do not have permission to access it.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "An unknown error occurred",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
curl -X GET "https://api.hyphen.ai/api/organizations/{organizationId}/apps/{appId}/"
const response = await fetch('https://api.hyphen.ai/api/organizations/{organizationId}/apps/{appId}/', {
method: 'GET'
});
const data = await response.json();
import requests
response = requests.get('https://api.hyphen.ai/api/organizations/{organizationId}/apps/{appId}/')
data = response.json()
| Name | Type | In | Description |
|---|---|---|---|
| organizationId * | string | path | The organization Id. |
| appId * | string | path | The app Id or alternate Id. |
{
"message": "Unable to validate JWT. Please make sure a valid JWT is sent as an Authorization header or access token cookie.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "Resource with id 'a1b2c3d4' not found or you do not have permission to access it.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "An unknown error occurred",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
curl -X DELETE "https://api.hyphen.ai/api/organizations/{organizationId}/apps/{appId}/"
const response = await fetch('https://api.hyphen.ai/api/organizations/{organizationId}/apps/{appId}/', {
method: 'DELETE'
});
const data = await response.json();
import requests
response = requests.delete('https://api.hyphen.ai/api/organizations/{organizationId}/apps/{appId}/')
data = response.json()
| Name | Type | In | Description |
|---|---|---|---|
| organizationId * | string | path | The organization Id. |
| appId * | string | path | The app Id or alternate Id. |
{
"name": "My App",
"settings": {
"env": {
"accessControls": {
"allow": [],
"deny": [
{
"type": "cidr",
"description": "Deny all default",
"value": "0.0.0.0/0"
}
],
"environments": {
"production": {
"allow": [
{
"type": "cidr",
"description": "Prod servers",
"value": "10.10.0.0/16"
}
],
"deny": []
}
}
}
}
}
}
{
"id": "app_66bf99b72a0043f841769880",
"alternateId": "my-app",
"name": "My App",
"settings": {
"env": {
"accessControls": {
"environments": {
"production": {
"allow": [
{
"description": "Prod servers",
"type": "cidr",
"cidr": "10.10.0.0/16"
}
],
"deny": [
{
"description": "Block all",
"type": "cidr",
"cidr": "0.0.0.0/0"
}
]
}
}
}
}
},
"organization": {
"id": "org_66bf99b72a0043f841769880",
"name": "My Org"
},
"project": {
"id": "proj_66bf99b72a0043f841769880",
"alternateId": "my-project",
"name": "My Project"
},
"meta": {
"createdAt": "2025-01-14T22:56:14.234Z",
"createdBy": "memb_66f30abb67ebc6bb0c5e0af9"
}
}
{
"message": "Unable to validate JWT. Please make sure a valid JWT is sent as an Authorization header or access token cookie.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "Resource with id 'a1b2c3d4' not found or you do not have permission to access it.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "An unknown error occurred",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
curl -X PATCH "https://api.hyphen.ai/api/organizations/{organizationId}/apps/{appId}/" \
-H "Content-Type: application/json" \
-d '{ "name": "My App", "settings": { "env": { "accessControls": { "allow": [], "deny": [ { "type": "cidr", "description": "Deny all default", "value": "0.0.0.0/0" } ], "environments": { "production": { "allow": [ { "type": "cidr", "description": "Prod servers", "value": "10.10.0.0/16" } ], "deny": [] } } } } }}'
const response = await fetch('https://api.hyphen.ai/api/organizations/{organizationId}/apps/{appId}/', {
method: 'PATCH',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify({ "name": "My App", "settings": { "env": { "accessControls": { "allow": [], "deny": [ { "type": "cidr", "description": "Deny all default", "value": "0.0.0.0/0" } ], "environments": { "production": { "allow": [ { "type": "cidr", "description": "Prod servers", "value": "10.10.0.0/16" } ], "deny": [] } } } } }})
});
const data = await response.json();
import requests
response = requests.patch(
'https://api.hyphen.ai/api/organizations/{organizationId}/apps/{appId}/',
headers={
'Content-Type': 'application/json'
},
json={ "name": "My App", "settings": { "env": { "accessControls": { "allow": [], "deny": [ { "type": "cidr", "description": "Deny all default", "value": "0.0.0.0/0" } ], "environments": { "production": { "allow": [ { "type": "cidr", "description": "Prod servers", "value": "10.10.0.0/16" } ], "deny": [] } } } } }}
)
data = response.json()
| Name | Type | In | Description |
|---|---|---|---|
| organizationId * | string | path | The organization Id. |
| appId * | string | path | The app Id or alternate Id. |
{
"sessionId": "string",
"results": [
{
"tool_call_id": "string",
"output": null,
"error": "string"
}
]
}
{
"session_id": "string",
"provider": "string",
"model": "string",
"conversation_mode": "provider_native",
"status": "ready",
"finish_reason": null,
"message": {
"role": "assistant",
"content": null,
"tool_calls": [
{
"id": "string",
"type": "function",
"function": {
"name": "string",
"arguments": "string"
}
}
]
}
}
{
"session": {
"id": "string",
"provider": "string",
"model": "string",
"conversation_mode": "provider_native",
"status": "ready",
"metadata": {
"key": "value"
},
"provider_session_id": null,
"provider_cursor": null,
"pending_tool_calls": [
{
"id": "string",
"type": "function",
"function": {
"name": "string",
"arguments": "string"
}
}
],
"created_at": "string",
"updated_at": "string",
"last_error": null
},
"output": {
"session_id": "string",
"provider": "string",
"model": "string",
"conversation_mode": "provider_native",
"status": "ready",
"finish_reason": null,
"message": {
"role": "assistant",
"content": null,
"tool_calls": [
{
"id": "string",
"type": "function",
"function": {
"name": "string",
"arguments": "string"
}
}
]
}
}
}
{
"message": "Invalid request body or query parameters",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "Unable to validate JWT. Please make sure a valid JWT is sent as an Authorization header or access token cookie.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "Resource with id 'a1b2c3d4' not found or you do not have permission to access it.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "The resource could not be created because of a conflict.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "An unknown error occurred",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
curl -X POST "https://api.hyphen.ai/api/organizations/{organizationId}/apps/{appId}/dockerfile/" \
-H "Content-Type: application/json" \
-d '{ "sessionId": "string", "results": [ { "tool_call_id": "string", "output": null, "error": "string" } ]}'
const response = await fetch('https://api.hyphen.ai/api/organizations/{organizationId}/apps/{appId}/dockerfile/', {
method: 'POST',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify({ "sessionId": "string", "results": [ { "tool_call_id": "string", "output": null, "error": "string" } ]})
});
const data = await response.json();
import requests
response = requests.post(
'https://api.hyphen.ai/api/organizations/{organizationId}/apps/{appId}/dockerfile/',
headers={
'Content-Type': 'application/json'
},
json={ "sessionId": "string", "results": [ { "tool_call_id": "string", "output": null, "error": "string" } ]}
)
data = response.json()
| Name | Type | In | Description |
|---|---|---|---|
| pageNum | integer | query | The page number. |
| pageSize | integer | query | The page size. |
| organizationId * | string | path | The organization Id. |
| appId * | string | path | The app Id or alternate Id. |
{
"total": 0,
"pageNum": 0,
"pageSize": 0,
"data": [
{
"id": "env_66bf99b72a0043f841769880",
"alternateId": "production",
"name": "Production",
"color": "#00FF00",
"organization": {
"id": "org_66bf99b72a0043f841769880",
"name": "My Org"
},
"project": {
"id": "proj_66bf99b72a0043f841769880",
"alternateId": "my-project",
"name": "My Project"
}
}
]
}
{
"message": "Unable to validate JWT. Please make sure a valid JWT is sent as an Authorization header or access token cookie.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "Resource with id 'a1b2c3d4' not found or you do not have permission to access it.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "An unknown error occurred",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
curl -X GET "https://api.hyphen.ai/api/organizations/{organizationId}/apps/{appId}/environments/?pageNum={pageNum}&pageSize={pageSize}"
const response = await fetch('https://api.hyphen.ai/api/organizations/{organizationId}/apps/{appId}/environments/?pageNum={pageNum}&pageSize={pageSize}', {
method: 'GET'
});
const data = await response.json();
import requests
response = requests.get(
'https://api.hyphen.ai/api/organizations/{organizationId}/apps/{appId}/environments/',
params={
'pageNum': '{pageNum}',
'pageSize': '{pageSize}'
}
)
data = response.json()
| Name | Type | In | Description |
|---|---|---|---|
| organizationId * | string | path | The organization Id. |
| appId * | string | path | The app Id or alternate Id. |
| environmentId * | string | path | The environment Id or alternate Id. |
{
"id": "env_66bf99b72a0043f841769880",
"alternateId": "production",
"name": "Production",
"color": "#00FF00",
"organization": {
"id": "org_66bf99b72a0043f841769880",
"name": "My Org"
},
"project": {
"id": "proj_66bf99b72a0043f841769880",
"alternateId": "my-project",
"name": "My Project"
}
}
{
"message": "Unable to validate JWT. Please make sure a valid JWT is sent as an Authorization header or access token cookie.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "Resource with id 'a1b2c3d4' not found or you do not have permission to access it.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "An unknown error occurred",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
curl -X GET "https://api.hyphen.ai/api/organizations/{organizationId}/apps/{appId}/environments/{environmentId}/"
const response = await fetch('https://api.hyphen.ai/api/organizations/{organizationId}/apps/{appId}/environments/{environmentId}/', {
method: 'GET'
});
const data = await response.json();
import requests
response = requests.get('https://api.hyphen.ai/api/organizations/{organizationId}/apps/{appId}/environments/{environmentId}/')
data = response.json()
| Name | Type | In | Description |
|---|---|---|---|
| organizationId * | string | path | The organization Id. |
| projectId * | string | path | The project Id or alternate Id. |
{
"alternateId": "my-app",
"name": "My App"
}
{
"id": "app_66bf99b72a0043f841769880",
"alternateId": "my-app",
"name": "My App",
"settings": {
"env": {
"accessControls": {
"environments": {
"production": {
"allow": [
{
"description": "Prod servers",
"type": "cidr",
"cidr": "10.10.0.0/16"
}
],
"deny": [
{
"description": "Block all",
"type": "cidr",
"cidr": "0.0.0.0/0"
}
]
}
}
}
}
},
"organization": {
"id": "org_66bf99b72a0043f841769880",
"name": "My Org"
},
"project": {
"id": "proj_66bf99b72a0043f841769880",
"alternateId": "my-project",
"name": "My Project"
},
"meta": {
"createdAt": "2025-01-14T22:56:14.234Z",
"createdBy": "memb_66f30abb67ebc6bb0c5e0af9"
}
}
{
"message": "Unable to validate JWT. Please make sure a valid JWT is sent as an Authorization header or access token cookie.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "The resource could not be created because you do not have permission to create it.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "Resource with id 'a1b2c3d4' not found or you do not have permission to access it.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "The resource could not be created because of a conflict.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "An unknown error occurred",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
curl -X POST "https://api.hyphen.ai/api/organizations/{organizationId}/projects/{projectId}/apps/" \
-H "Content-Type: application/json" \
-d '{ "alternateId": "my-app", "name": "My App"}'
const response = await fetch('https://api.hyphen.ai/api/organizations/{organizationId}/projects/{projectId}/apps/', {
method: 'POST',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify({ "alternateId": "my-app", "name": "My App"})
});
const data = await response.json();
import requests
response = requests.post(
'https://api.hyphen.ai/api/organizations/{organizationId}/projects/{projectId}/apps/',
headers={
'Content-Type': 'application/json'
},
json={ "alternateId": "my-app", "name": "My App"}
)
data = response.json()
App Builds
| Name | Type | In | Description |
|---|---|---|---|
| organizationId * | string | path | The organization Id. |
| appId * | string | path | The app Id or alternate Id. |
{
"registryId": "string",
"environmentId": "string",
"previewHash": "string",
"files": [
{
"path": "string",
"size": 0,
"sha256": "string"
}
]
}
{
"sessionId": "string",
"revision": "string",
"token": "string",
"expiresAt": "string",
"uploadUrl": "string",
"finalizeUrl": "string",
"abortUrl": "string",
"limits": {
"maxFiles": 0,
"maxBytes": 0,
"maxFileBytes": 0
}
}
{
"message": "Unable to validate JWT. Please make sure a valid JWT is sent as an Authorization header or access token cookie.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "The resource could not be created because you do not have permission to create it.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "Resource with id 'a1b2c3d4' not found or you do not have permission to access it.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "An unknown error occurred",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
curl -X POST "https://api.hyphen.ai/api/organizations/{organizationId}/apps/{appId}/builds/uploads" \
-H "Content-Type: application/json" \
-d '{ "registryId": "string", "environmentId": "string", "previewHash": "string", "files": [ { "path": "string", "size": 0, "sha256": "string" } ]}'
const response = await fetch('https://api.hyphen.ai/api/organizations/{organizationId}/apps/{appId}/builds/uploads', {
method: 'POST',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify({ "registryId": "string", "environmentId": "string", "previewHash": "string", "files": [ { "path": "string", "size": 0, "sha256": "string" } ]})
});
const data = await response.json();
import requests
response = requests.post(
'https://api.hyphen.ai/api/organizations/{organizationId}/apps/{appId}/builds/uploads',
headers={
'Content-Type': 'application/json'
},
json={ "registryId": "string", "environmentId": "string", "previewHash": "string", "files": [ { "path": "string", "size": 0, "sha256": "string" } ]}
)
data = response.json()
.Env Files
| Name | Type | In | Description |
|---|---|---|---|
| environmentId | string | query | The environment Id. If not provided, the default "all" environment will be used. |
| secretKeyId | number | query | The secret key id used to encrypt the env file. |
| version | number | query | The version of the .env file. |
| organizationId * | string | path | The organization Id. |
| appId * | string | path | The app Id or alternate Id. |
{
"size": "1kb",
"countVariables": 1,
"version": 1,
"secretKeyId": 123,
"published": "2024-01-01T00:00:00Z",
"organization": {
"id": "string",
"name": "string"
},
"project": {
"id": "string",
"alternateId": "string",
"name": "string"
},
"app": {
"id": "string",
"alternateId": "string",
"name": "string"
},
"projectEnvironment": {
"id": "string",
"alternateId": "string",
"name": "string"
},
"data": "encrypted content"
}
{
"message": "Unable to validate JWT. Please make sure a valid JWT is sent as an Authorization header or access token cookie.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "Resource with id 'a1b2c3d4' not found or you do not have permission to access it.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "An unknown error occurred",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
curl -X GET "https://api.hyphen.ai/api/organizations/{organizationId}/apps/{appId}/dot-env/?environmentId={environmentId}&secretKeyId={secretKeyId}&version={version}"
const response = await fetch('https://api.hyphen.ai/api/organizations/{organizationId}/apps/{appId}/dot-env/?environmentId={environmentId}&secretKeyId={secretKeyId}&version={version}', {
method: 'GET'
});
const data = await response.json();
import requests
response = requests.get(
'https://api.hyphen.ai/api/organizations/{organizationId}/apps/{appId}/dot-env/',
params={
'environmentId': '{environmentId}',
'secretKeyId': '{secretKeyId}',
'version': '{version}'
}
)
data = response.json()
| Name | Type | In | Description |
|---|---|---|---|
| environmentId | string | query | The environment Id. If not provided, the default "all" environment will be used. |
| secretKeyId * | number | query | The secret key id used to encrypt the env file. |
| organizationId * | string | path | The organization Id. |
| appId * | string | path | The app Id or alternate Id. |
{
"countVariables": 1,
"size": "1kb",
"data": "encrypted content",
"version": 1,
"secretKeyId": 123
}
{
"size": "1kb",
"countVariables": 1,
"version": 1,
"secretKeyId": 123,
"published": "2024-01-01T00:00:00Z",
"organization": {
"id": "string",
"name": "string"
},
"project": {
"id": "string",
"alternateId": "string",
"name": "string"
},
"app": {
"id": "string",
"alternateId": "string",
"name": "string"
},
"projectEnvironment": {
"id": "string",
"alternateId": "string",
"name": "string"
},
"data": "encrypted content"
}
{
"message": "Unable to validate JWT. Please make sure a valid JWT is sent as an Authorization header or access token cookie.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "Resource with id 'a1b2c3d4' not found or you do not have permission to access it.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "An unknown error occurred",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
curl -X PUT "https://api.hyphen.ai/api/organizations/{organizationId}/apps/{appId}/dot-env/?environmentId={environmentId}&secretKeyId={secretKeyId}" \
-H "Content-Type: application/json" \
-d '{ "countVariables": 1, "size": "1kb", "data": "encrypted content", "version": 1, "secretKeyId": 123}'
const response = await fetch('https://api.hyphen.ai/api/organizations/{organizationId}/apps/{appId}/dot-env/?environmentId={environmentId}&secretKeyId={secretKeyId}', {
method: 'PUT',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify({ "countVariables": 1, "size": "1kb", "data": "encrypted content", "version": 1, "secretKeyId": 123})
});
const data = await response.json();
import requests
response = requests.put(
'https://api.hyphen.ai/api/organizations/{organizationId}/apps/{appId}/dot-env/',
params={
'environmentId': '{environmentId}',
'secretKeyId': '{secretKeyId}'
},
headers={
'Content-Type': 'application/json'
},
json={ "countVariables": 1, "size": "1kb", "data": "encrypted content", "version": 1, "secretKeyId": 123}
)
data = response.json()
| Name | Type | In | Description |
|---|---|---|---|
| environmentId | string | query | The environment Id. If not provided, the default "all" environment will be used. |
| organizationId * | string | path | The organization Id. |
| appId * | string | path | The app Id or alternate Id. |
{
"message": "Unable to validate JWT. Please make sure a valid JWT is sent as an Authorization header or access token cookie.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "Resource with id 'a1b2c3d4' not found or you do not have permission to access it.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "An unknown error occurred",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
curl -X DELETE "https://api.hyphen.ai/api/organizations/{organizationId}/apps/{appId}/dot-env/?environmentId={environmentId}"
const response = await fetch('https://api.hyphen.ai/api/organizations/{organizationId}/apps/{appId}/dot-env/?environmentId={environmentId}', {
method: 'DELETE'
});
const data = await response.json();
import requests
response = requests.delete(
'https://api.hyphen.ai/api/organizations/{organizationId}/apps/{appId}/dot-env/',
params={
'environmentId': '{environmentId}'
}
)
data = response.json()
| Name | Type | In | Description |
|---|---|---|---|
| pageNum | integer | query | The page number. |
| pageSize | integer | query | The page size. |
| environmentId | string | query | The environment Id. If not provided, the default "all" environment will be used. |
| secretKeyId | number | query | The secret key id used to encrypt the env file. |
| organizationId * | string | path | The organization Id. |
| appId * | string | path | The app Id or alternate Id. |
{
"total": 0,
"pageNum": 0,
"pageSize": 0,
"data": [
{
"size": "1kb",
"countVariables": 1,
"version": 1,
"secretKeyId": 123,
"published": "2024-01-01T00:00:00Z",
"organization": {
"id": "string",
"name": "string"
},
"project": {
"id": "string",
"alternateId": "string",
"name": "string"
},
"app": {
"id": "string",
"alternateId": "string",
"name": "string"
},
"projectEnvironment": {
"id": "string",
"alternateId": "string",
"name": "string"
}
}
]
}
{
"message": "Unable to validate JWT. Please make sure a valid JWT is sent as an Authorization header or access token cookie.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "Resource with id 'a1b2c3d4' not found or you do not have permission to access it.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "An unknown error occurred",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
curl -X GET "https://api.hyphen.ai/api/organizations/{organizationId}/apps/{appId}/dot-env/versions/?pageNum={pageNum}&pageSize={pageSize}&environmentId={environmentId}&secretKeyId={secretKeyId}"
const response = await fetch('https://api.hyphen.ai/api/organizations/{organizationId}/apps/{appId}/dot-env/versions/?pageNum={pageNum}&pageSize={pageSize}&environmentId={environmentId}&secretKeyId={secretKeyId}', {
method: 'GET'
});
const data = await response.json();
import requests
response = requests.get(
'https://api.hyphen.ai/api/organizations/{organizationId}/apps/{appId}/dot-env/versions/',
params={
'pageNum': '{pageNum}',
'pageSize': '{pageSize}',
'environmentId': '{environmentId}',
'secretKeyId': '{secretKeyId}'
}
)
data = response.json()
| Name | Type | In | Description |
|---|---|---|---|
| environmentId | string | query | The environment Id. If not provided, the default "all" environment will be used. |
| secretKeyId * | number | query | The secret key id used to encrypt the env file. |
| organizationId * | string | path | The organization Id. |
| appId * | string | path | The app Id or alternate Id. |
{
"message": "Unable to validate JWT. Please make sure a valid JWT is sent as an Authorization header or access token cookie.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "Resource with id 'a1b2c3d4' not found or you do not have permission to access it.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "An unknown error occurred",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
curl -X DELETE "https://api.hyphen.ai/api/organizations/{organizationId}/apps/{appId}/dot-env/versions/?environmentId={environmentId}&secretKeyId={secretKeyId}"
const response = await fetch('https://api.hyphen.ai/api/organizations/{organizationId}/apps/{appId}/dot-env/versions/?environmentId={environmentId}&secretKeyId={secretKeyId}', {
method: 'DELETE'
});
const data = await response.json();
import requests
response = requests.delete(
'https://api.hyphen.ai/api/organizations/{organizationId}/apps/{appId}/dot-env/versions/',
params={
'environmentId': '{environmentId}',
'secretKeyId': '{secretKeyId}'
}
)
data = response.json()
| Name | Type | In | Description |
|---|---|---|---|
| pageNum | integer | query | The page number. |
| pageSize | integer | query | The page size. |
| projectIds | array(string) | query | The project Ids or alternate Ids. |
| appIds | array(string) | query | The app Ids or alternate Ids. |
| organizationId * | string | path | The organization Id. |
{
"total": 0,
"pageNum": 0,
"pageSize": 0,
"data": [
{
"size": "1kb",
"countVariables": 1,
"version": 1,
"secretKeyId": 123,
"published": "2024-01-01T00:00:00Z",
"organization": {
"id": "string",
"name": "string"
},
"project": {
"id": "string",
"alternateId": "string",
"name": "string"
},
"app": {
"id": "string",
"alternateId": "string",
"name": "string"
},
"projectEnvironment": {
"id": "string",
"alternateId": "string",
"name": "string"
}
}
]
}
{
"message": "Unable to validate JWT. Please make sure a valid JWT is sent as an Authorization header or access token cookie.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "Resource with id 'a1b2c3d4' not found or you do not have permission to access it.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "An unknown error occurred",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
curl -X GET "https://api.hyphen.ai/api/organizations/{organizationId}/dot-envs/?pageNum={pageNum}&pageSize={pageSize}&projectIds={projectIds}&appIds={appIds}"
const response = await fetch('https://api.hyphen.ai/api/organizations/{organizationId}/dot-envs/?pageNum={pageNum}&pageSize={pageSize}&projectIds={projectIds}&appIds={appIds}', {
method: 'GET'
});
const data = await response.json();
import requests
response = requests.get(
'https://api.hyphen.ai/api/organizations/{organizationId}/dot-envs/',
params={
'pageNum': '{pageNum}',
'pageSize': '{pageSize}',
'projectIds': '{projectIds}',
'appIds': '{appIds}'
}
)
data = response.json()
| Name | Type | In | Description |
|---|---|---|---|
| projectIds | array(string) | query | The project Ids. |
| organizationId * | string | path | The organization Id. |
{
"data": [
{
"id": "string",
"alternateId": "string",
"name": "string",
"apps": [
{
"id": "string",
"alternateId": "string",
"name": "string",
"dotEnvData": {},
"lastEvents": {
"push": {
"timestamp": "string",
"member": {
"id": "string",
"name": "string"
}
},
"pull": {
"timestamp": "string",
"member": {
"id": "string",
"name": "string"
}
},
"deny": {
"timestamp": "string",
"member": {
"id": "string",
"name": "string"
}
}
}
}
],
"projectEnvironments": [
{
"id": "string",
"alternateId": "string",
"name": "string",
"color": "string",
"type": "development"
}
]
}
]
}
{
"message": "Unable to validate JWT. Please make sure a valid JWT is sent as an Authorization header or access token cookie.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "Resource with id 'a1b2c3d4' not found or you do not have permission to access it.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "An unknown error occurred",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
curl -X GET "https://api.hyphen.ai/api/organizations/{organizationId}/dot-envs/summary?projectIds={projectIds}"
const response = await fetch('https://api.hyphen.ai/api/organizations/{organizationId}/dot-envs/summary?projectIds={projectIds}', {
method: 'GET'
});
const data = await response.json();
import requests
response = requests.get(
'https://api.hyphen.ai/api/organizations/{organizationId}/dot-envs/summary',
params={
'projectIds': '{projectIds}'
}
)
data = response.json()
Chat Sessions
| Name | Type | In | Description |
|---|---|---|---|
| pageNum | integer | query | The page number. |
| pageSize | integer | query | The page size. |
| status | array(string) | query | |
| hasCreatedReferences | boolean | query | |
| organizationId * | string | path | The organization Id. |
{
"total": 0,
"pageNum": 0,
"pageSize": 0,
"data": [
{
"id": "string",
"title": "string",
"status": "ready",
"createdByMemberId": null,
"references": [
{
"type": "Lead",
"id": "string",
"reportId": "string",
"name": "string",
"origin": "context",
"messageId": "string",
"createdAt": "string"
}
],
"createdAt": "string",
"updatedAt": "string",
"lastMessageAt": null,
"lastMessagePreview": null,
"displayMessageCount": 0,
"lastError": null,
"pendingToolCalls": [
{
"id": "string",
"type": "function",
"function": {
"name": "string",
"arguments": "string"
}
}
],
"activeResponder": "agent",
"supportHandoffs": [
null
]
}
]
}
{
"message": "Unable to validate JWT. Please make sure a valid JWT is sent as an Authorization header or access token cookie.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "An unknown error occurred",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
curl -X GET "https://api.hyphen.ai/api/organizations/{organizationId}/chat-sessions/?pageNum={pageNum}&pageSize={pageSize}&status={status}&hasCreatedReferences={hasCreatedReferences}"
const response = await fetch('https://api.hyphen.ai/api/organizations/{organizationId}/chat-sessions/?pageNum={pageNum}&pageSize={pageSize}&status={status}&hasCreatedReferences={hasCreatedReferences}', {
method: 'GET'
});
const data = await response.json();
import requests
response = requests.get(
'https://api.hyphen.ai/api/organizations/{organizationId}/chat-sessions/',
params={
'pageNum': '{pageNum}',
'pageSize': '{pageSize}',
'status': '{status}',
'hasCreatedReferences': '{hasCreatedReferences}'
}
)
data = response.json()
| Name | Type | In | Description |
|---|---|---|---|
| organizationId * | string | path | The organization Id. |
{
"content": "string",
"attachmentIds": [
"string"
],
"clientMessageId": "string",
"references": [
{
"type": "Lead",
"id": "string",
"reportId": "string"
}
],
"system_instruction": "string",
"tools": [
{
"type": "function",
"function": {
"name": "string",
"short_description": "string",
"description": "string",
"parameters": {
"key": "value"
}
}
}
],
"toolsets": [
"file-system-tools"
]
}
{
"session": {
"id": "string",
"title": "string",
"status": "ready",
"createdByMemberId": null,
"references": [
{
"type": "Lead",
"id": "string",
"reportId": "string",
"name": "string",
"origin": "context",
"messageId": "string",
"createdAt": "string"
}
],
"createdAt": "string",
"updatedAt": "string",
"lastMessageAt": null,
"lastMessagePreview": null,
"displayMessageCount": 0,
"lastError": null,
"pendingToolCalls": [
{
"id": "string",
"type": "function",
"function": {
"name": "string",
"arguments": "string"
}
}
],
"activeResponder": "agent",
"supportHandoffs": [
null
]
},
"message": {
"id": "string",
"sessionId": "string",
"role": "user",
"content": null,
"contentBlocks": [
null
],
"files": [
{
"id": "string",
"filename": "string",
"mimeType": "string",
"sizeBytes": 0,
"downloadUrl": "string",
"expiresAt": "string"
}
],
"createdAt": "string",
"references": [
{
"type": "Lead",
"id": "string",
"reportId": "string",
"name": "string",
"origin": "context",
"messageId": "string",
"createdAt": "string"
}
],
"inputRequests": [
{}
],
"toolCalls": [
{
"id": "string",
"type": "function",
"function": {
"name": "string",
"arguments": "string"
}
}
],
"author": {
"type": "member",
"name": "string"
},
"clientMessageId": "string"
}
}
{
"message": "Unable to validate JWT. Please make sure a valid JWT is sent as an Authorization header or access token cookie.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "Resource with id 'a1b2c3d4' not found or you do not have permission to access it.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "An unknown error occurred",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
curl -X POST "https://api.hyphen.ai/api/organizations/{organizationId}/chat-sessions/" \
-H "Content-Type: application/json" \
-d '{ "content": "string", "attachmentIds": [ "string" ], "clientMessageId": "string", "references": [ { "type": "Lead", "id": "string", "reportId": "string" } ], "system_instruction": "string", "tools": [ { "type": "function", "function": { "name": "string", "short_description": "string", "description": "string", "parameters": { "key": "value" } } } ], "toolsets": [ "file-system-tools" ]}'
const response = await fetch('https://api.hyphen.ai/api/organizations/{organizationId}/chat-sessions/', {
method: 'POST',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify({ "content": "string", "attachmentIds": [ "string" ], "clientMessageId": "string", "references": [ { "type": "Lead", "id": "string", "reportId": "string" } ], "system_instruction": "string", "tools": [ { "type": "function", "function": { "name": "string", "short_description": "string", "description": "string", "parameters": { "key": "value" } } } ], "toolsets": [ "file-system-tools" ]})
});
const data = await response.json();
import requests
response = requests.post(
'https://api.hyphen.ai/api/organizations/{organizationId}/chat-sessions/',
headers={
'Content-Type': 'application/json'
},
json={ "content": "string", "attachmentIds": [ "string" ], "clientMessageId": "string", "references": [ { "type": "Lead", "id": "string", "reportId": "string" } ], "system_instruction": "string", "tools": [ { "type": "function", "function": { "name": "string", "short_description": "string", "description": "string", "parameters": { "key": "value" } } } ], "toolsets": [ "file-system-tools" ]}
)
data = response.json()
| Name | Type | In | Description |
|---|---|---|---|
| organizationId * | string | path | The organization Id. |
{
"file": "string"
}
{
"id": "string",
"filename": "string",
"mimeType": "string",
"sizeBytes": 0,
"expiresAt": "string"
}
{
"message": "Invalid request body or query parameters",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "Unable to validate JWT. Please make sure a valid JWT is sent as an Authorization header or access token cookie.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "Resource with id 'a1b2c3d4' not found or you do not have permission to access it.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "string",
"requestId": "string",
"errorCode": "string",
"errors": [
"string"
]
}
{
"message": "An unknown error occurred",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
curl -X POST "https://api.hyphen.ai/api/organizations/{organizationId}/chat-sessions/uploads" \
-H "Content-Type: multipart/form-data" \
-d '{ "file": "string"}'
const response = await fetch('https://api.hyphen.ai/api/organizations/{organizationId}/chat-sessions/uploads', {
method: 'POST',
headers: {
'Content-Type': 'multipart/form-data'
},
body: JSON.stringify({ "file": "string"})
});
const data = await response.json();
import requests
response = requests.post(
'https://api.hyphen.ai/api/organizations/{organizationId}/chat-sessions/uploads',
headers={
'Content-Type': 'multipart/form-data'
},
json={ "file": "string"}
)
data = response.json()
| Name | Type | In | Description |
|---|---|---|---|
| organizationId * | string | path | The organization Id. |
| sessionId * | string | path | The chat session ID. |
| fileId * | string (uuid) | path |
{
"message": "Unable to validate JWT. Please make sure a valid JWT is sent as an Authorization header or access token cookie.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "Resource with id 'a1b2c3d4' not found or you do not have permission to access it.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "An unknown error occurred",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
curl -X GET "https://api.hyphen.ai/api/organizations/{organizationId}/chat-sessions/{sessionId}/files/{fileId}"
const response = await fetch('https://api.hyphen.ai/api/organizations/{organizationId}/chat-sessions/{sessionId}/files/{fileId}', {
method: 'GET'
});
const data = await response.json();
import requests
response = requests.get('https://api.hyphen.ai/api/organizations/{organizationId}/chat-sessions/{sessionId}/files/{fileId}')
data = response.json()
| Name | Type | In | Description |
|---|---|---|---|
| organizationId * | string | path | The organization Id. |
| sessionId * | string | path | The chat session ID. |
{
"id": "string",
"title": "string",
"status": "ready",
"createdByMemberId": null,
"references": [
{
"type": "Lead",
"id": "string",
"reportId": "string",
"name": "string",
"origin": "context",
"messageId": "string",
"createdAt": "string"
}
],
"createdAt": "string",
"updatedAt": "string",
"lastMessageAt": null,
"lastMessagePreview": null,
"displayMessageCount": 0,
"lastError": null,
"pendingToolCalls": [
{
"id": "string",
"type": "function",
"function": {
"name": "string",
"arguments": "string"
}
}
],
"activeResponder": "agent",
"supportHandoffs": [
null
]
}
{
"message": "Unable to validate JWT. Please make sure a valid JWT is sent as an Authorization header or access token cookie.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "Resource with id 'a1b2c3d4' not found or you do not have permission to access it.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "An unknown error occurred",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
curl -X GET "https://api.hyphen.ai/api/organizations/{organizationId}/chat-sessions/{sessionId}/"
const response = await fetch('https://api.hyphen.ai/api/organizations/{organizationId}/chat-sessions/{sessionId}/', {
method: 'GET'
});
const data = await response.json();
import requests
response = requests.get('https://api.hyphen.ai/api/organizations/{organizationId}/chat-sessions/{sessionId}/')
data = response.json()
| Name | Type | In | Description |
|---|---|---|---|
| organizationId * | string | path | The organization Id. |
| sessionId * | string | path | The chat session ID. |
{
"message": "Unable to validate JWT. Please make sure a valid JWT is sent as an Authorization header or access token cookie.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "Resource with id 'a1b2c3d4' not found or you do not have permission to access it.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "An unknown error occurred",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
curl -X DELETE "https://api.hyphen.ai/api/organizations/{organizationId}/chat-sessions/{sessionId}/"
const response = await fetch('https://api.hyphen.ai/api/organizations/{organizationId}/chat-sessions/{sessionId}/', {
method: 'DELETE'
});
const data = await response.json();
import requests
response = requests.delete('https://api.hyphen.ai/api/organizations/{organizationId}/chat-sessions/{sessionId}/')
data = response.json()
| Name | Type | In | Description |
|---|---|---|---|
| organizationId * | string | path | The organization Id. |
| sessionId * | string | path | The chat session ID. |
{
"sessionId": "string",
"messages": [
{
"id": "string",
"sessionId": "string",
"role": "user",
"content": null,
"contentBlocks": [
null
],
"files": [
{
"id": "string",
"filename": "string",
"mimeType": "string",
"sizeBytes": 0,
"downloadUrl": "string",
"expiresAt": "string"
}
],
"createdAt": "string",
"references": [
{
"type": "Lead",
"id": "string",
"reportId": "string",
"name": "string",
"origin": "context",
"messageId": "string",
"createdAt": "string"
}
],
"inputRequests": [
{}
],
"toolCalls": [
{
"id": "string",
"type": "function",
"function": {
"name": "string",
"arguments": "string"
}
}
],
"author": {
"type": "member",
"name": "string"
},
"clientMessageId": "string"
}
]
}
{
"message": "Unable to validate JWT. Please make sure a valid JWT is sent as an Authorization header or access token cookie.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "Resource with id 'a1b2c3d4' not found or you do not have permission to access it.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "An unknown error occurred",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
curl -X GET "https://api.hyphen.ai/api/organizations/{organizationId}/chat-sessions/{sessionId}/messages/"
const response = await fetch('https://api.hyphen.ai/api/organizations/{organizationId}/chat-sessions/{sessionId}/messages/', {
method: 'GET'
});
const data = await response.json();
import requests
response = requests.get('https://api.hyphen.ai/api/organizations/{organizationId}/chat-sessions/{sessionId}/messages/')
data = response.json()
| Name | Type | In | Description |
|---|---|---|---|
| organizationId * | string | path | The organization Id. |
| sessionId * | string | path | The chat session ID. |
{}
{
"session": {
"id": "string",
"title": "string",
"status": "ready",
"createdByMemberId": null,
"references": [
{
"type": "Lead",
"id": "string",
"reportId": "string",
"name": "string",
"origin": "context",
"messageId": "string",
"createdAt": "string"
}
],
"createdAt": "string",
"updatedAt": "string",
"lastMessageAt": null,
"lastMessagePreview": null,
"displayMessageCount": 0,
"lastError": null,
"pendingToolCalls": [
{
"id": "string",
"type": "function",
"function": {
"name": "string",
"arguments": "string"
}
}
],
"activeResponder": "agent",
"supportHandoffs": [
null
]
},
"message": {
"id": "string",
"sessionId": "string",
"role": "user",
"content": null,
"contentBlocks": [
null
],
"files": [
{
"id": "string",
"filename": "string",
"mimeType": "string",
"sizeBytes": 0,
"downloadUrl": "string",
"expiresAt": "string"
}
],
"createdAt": "string",
"references": [
{
"type": "Lead",
"id": "string",
"reportId": "string",
"name": "string",
"origin": "context",
"messageId": "string",
"createdAt": "string"
}
],
"inputRequests": [
{}
],
"toolCalls": [
{
"id": "string",
"type": "function",
"function": {
"name": "string",
"arguments": "string"
}
}
],
"author": {
"type": "member",
"name": "string"
},
"clientMessageId": "string"
}
}
{
"message": "Unable to validate JWT. Please make sure a valid JWT is sent as an Authorization header or access token cookie.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "Resource with id 'a1b2c3d4' not found or you do not have permission to access it.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "An unknown error occurred",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
curl -X POST "https://api.hyphen.ai/api/organizations/{organizationId}/chat-sessions/{sessionId}/messages/" \
-H "Content-Type: application/json" \
-d '{}'
const response = await fetch('https://api.hyphen.ai/api/organizations/{organizationId}/chat-sessions/{sessionId}/messages/', {
method: 'POST',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify({})
});
const data = await response.json();
import requests
response = requests.post(
'https://api.hyphen.ai/api/organizations/{organizationId}/chat-sessions/{sessionId}/messages/',
headers={
'Content-Type': 'application/json'
},
json={}
)
data = response.json()
Deployments
| Name | Type | In | Description |
|---|---|---|---|
| pageNum | integer | query | The page number. |
| pageSize | integer | query | The page size. |
| projects | array(any) | query | The project ids to filter by. |
| apps | array(any) | query | The app ids to filter by. |
| search | string | query | The search by name, id, or alternate id. |
| organizationId * | string | path | The organization Id. |
{
"total": 0,
"pageNum": 0,
"pageSize": 0,
"data": [
{
"id": "string",
"name": "string",
"alternateId": "string",
"description": "string",
"organization": {
"id": "string",
"name": "string"
},
"project": {
"id": "string",
"alternateId": "string",
"name": "string"
},
"projectEnvironment": {
"id": "string",
"alternateId": "string",
"name": "string"
},
"apps": [
{
"project": {
"id": "string",
"alternateId": "string",
"name": "string"
},
"app": {
"id": "string",
"alternateId": "string",
"name": "string"
},
"deploymentSettings": {
"targets": [
{
"id": "string",
"type": "string"
}
],
"path": "string",
"hostname": "string",
"dns": {
"zoneName": "string",
"zoneId": "string",
"recordId": "string",
"recordValueId": "string"
},
"availability": "99.000",
"scale": "small",
"trafficRegions": [
"na"
],
"advanced": {
"scale": {
"googleCloud": {
"NA1": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"NA2": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"NA3": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"SA1": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"SA2": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"SA3": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"EU1": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"EU2": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"EU3": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"AP1": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"AP2": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"AP3": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
}
},
"azure": {
"NA1": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"NA2": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"NA3": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"SA1": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"SA2": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"SA3": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"EU1": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"EU2": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"EU3": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"AP1": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"AP2": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"AP3": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
}
},
"aws": {
"NA1": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"NA2": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"NA3": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"SA1": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"SA2": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"SA3": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"EU1": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"EU2": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"EU3": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"AP1": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"AP2": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"AP3": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
}
}
}
},
"projectEnvironment": {
"id": "string",
"alternateId": "string",
"name": "string"
}
}
}
],
"sites": [
{
"app": {
"id": "string",
"alternateId": "string",
"name": "string"
},
"project": {
"id": "string",
"alternateId": "string",
"name": "string"
},
"deploymentSettings": {
"targets": [
{
"id": "string",
"type": "hyphenCloud"
}
]
}
}
],
"isReady": true,
"readinessIssues": [
{
"error": "string",
"target": "string",
"projectId": "string"
}
],
"previews": [
{
"id": "string",
"name": "string",
"hostPrefix": "string",
"dns": [
{
"zoneName": "string",
"zoneId": "string",
"recordId": "string",
"recordValueId": "string",
"appId": "string"
}
]
}
],
"storage": [
{
"type": "object",
"target": {
"id": "string",
"type": "googleCloud"
},
"bucketName": "string"
}
]
}
]
}
{
"message": "Unable to validate JWT. Please make sure a valid JWT is sent as an Authorization header or access token cookie.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "Resource with id 'a1b2c3d4' not found or you do not have permission to access it.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "An unknown error occurred",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
curl -X GET "https://api.hyphen.ai/api/organizations/{organizationId}/deployments/?pageNum={pageNum}&pageSize={pageSize}&projects={projects}&apps={apps}&search={search}"
const response = await fetch('https://api.hyphen.ai/api/organizations/{organizationId}/deployments/?pageNum={pageNum}&pageSize={pageSize}&projects={projects}&apps={apps}&search={search}', {
method: 'GET'
});
const data = await response.json();
import requests
response = requests.get(
'https://api.hyphen.ai/api/organizations/{organizationId}/deployments/',
params={
'pageNum': '{pageNum}',
'pageSize': '{pageSize}',
'projects': '{projects}',
'apps': '{apps}',
'search': '{search}'
}
)
data = response.json()
| Name | Type | In | Description |
|---|---|---|---|
| organizationId * | string | path | The organization Id. |
{
"sites": [
{
"app": {
"id": "string"
},
"deploymentSettings": {
"targets": [
{
"id": "string"
}
]
}
}
],
"name": "string",
"alternateId": "string",
"description": "string",
"project": {
"id": "string"
},
"projectEnvironment": {
"id": "string"
},
"apps": [
{
"app": {
"id": "string"
},
"deploymentSettings": {
"targets": [
{
"id": "string",
"type": "string"
}
],
"path": "string",
"hostname": "string",
"dns": {
"zoneName": "string",
"zoneId": "string",
"recordId": "string",
"recordValueId": "string"
},
"availability": "99.000",
"scale": "small",
"trafficRegions": [
"na"
],
"advanced": {
"scale": {
"googleCloud": {
"NA1": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"NA2": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"NA3": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"SA1": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"SA2": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"SA3": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"EU1": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"EU2": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"EU3": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"AP1": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"AP2": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"AP3": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
}
},
"azure": {
"NA1": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"NA2": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"NA3": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"SA1": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"SA2": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"SA3": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"EU1": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"EU2": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"EU3": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"AP1": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"AP2": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"AP3": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
}
},
"aws": {
"NA1": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"NA2": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"NA3": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"SA1": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"SA2": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"SA3": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"EU1": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"EU2": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"EU3": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"AP1": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"AP2": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"AP3": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
}
}
}
}
}
}
],
"storage": [
{
"type": "object",
"target": {
"id": "string",
"type": "googleCloud"
},
"bucketName": "string"
}
]
}
{
"id": "string",
"name": "string",
"alternateId": "string",
"description": "string",
"organization": {
"id": "string",
"name": "string"
},
"project": {
"id": "string",
"alternateId": "string",
"name": "string"
},
"projectEnvironment": {
"id": "string",
"alternateId": "string",
"name": "string"
},
"apps": [
{
"project": {
"id": "string",
"alternateId": "string",
"name": "string"
},
"app": {
"id": "string",
"alternateId": "string",
"name": "string"
},
"deploymentSettings": {
"targets": [
{
"id": "string",
"type": "string"
}
],
"path": "string",
"hostname": "string",
"dns": {
"zoneName": "string",
"zoneId": "string",
"recordId": "string",
"recordValueId": "string"
},
"availability": "99.000",
"scale": "small",
"trafficRegions": [
"na"
],
"advanced": {
"scale": {
"googleCloud": {
"NA1": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"NA2": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"NA3": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"SA1": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"SA2": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"SA3": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"EU1": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"EU2": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"EU3": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"AP1": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"AP2": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"AP3": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
}
},
"azure": {
"NA1": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"NA2": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"NA3": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"SA1": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"SA2": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"SA3": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"EU1": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"EU2": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"EU3": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"AP1": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"AP2": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"AP3": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
}
},
"aws": {
"NA1": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"NA2": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"NA3": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"SA1": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"SA2": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"SA3": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"EU1": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"EU2": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"EU3": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"AP1": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"AP2": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"AP3": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
}
}
}
},
"projectEnvironment": {
"id": "string",
"alternateId": "string",
"name": "string"
}
}
}
],
"sites": [
{
"app": {
"id": "string",
"alternateId": "string",
"name": "string"
},
"project": {
"id": "string",
"alternateId": "string",
"name": "string"
},
"deploymentSettings": {
"targets": [
{
"id": "string",
"type": "hyphenCloud"
}
]
}
}
],
"isReady": true,
"readinessIssues": [
{
"error": "string",
"target": "string",
"projectId": "string"
}
],
"previews": [
{
"id": "string",
"name": "string",
"hostPrefix": "string",
"dns": [
{
"zoneName": "string",
"zoneId": "string",
"recordId": "string",
"recordValueId": "string",
"appId": "string"
}
]
}
],
"storage": [
{
"type": "object",
"target": {
"id": "string",
"type": "googleCloud"
},
"bucketName": "string"
}
]
}
{
"message": "Unable to validate JWT. Please make sure a valid JWT is sent as an Authorization header or access token cookie.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "An unknown error occurred",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
curl -X POST "https://api.hyphen.ai/api/organizations/{organizationId}/deployments/" \
-H "Content-Type: application/json" \
-d '{ "sites": [ { "app": { "id": "string" }, "deploymentSettings": { "targets": [ { "id": "string" } ] } } ], "name": "string", "alternateId": "string", "description": "string", "project": { "id": "string" }, "projectEnvironment": { "id": "string" }, "apps": [ { "app": { "id": "string" }, "deploymentSettings": { "targets": [ { "id": "string", "type": "string" } ], "path": "string", "hostname": "string", "dns": { "zoneName": "string", "zoneId": "string", "recordId": "string", "recordValueId": "string" }, "availability": "99.000", "scale": "small", "trafficRegions": [ "na" ], "advanced": { "scale": { "googleCloud": { "NA1": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 }, "NA2": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 }, "NA3": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 }, "SA1": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 }, "SA2": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 }, "SA3": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 }, "EU1": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 }, "EU2": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 }, "EU3": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 }, "AP1": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 }, "AP2": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 }, "AP3": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 } }, "azure": { "NA1": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 }, "NA2": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 }, "NA3": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 }, "SA1": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 }, "SA2": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 }, "SA3": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 }, "EU1": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 }, "EU2": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 }, "EU3": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 }, "AP1": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 }, "AP2": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 }, "AP3": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 } }, "aws": { "NA1": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 }, "NA2": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 }, "NA3": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 }, "SA1": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 }, "SA2": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 }, "SA3": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 }, "EU1": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 }, "EU2": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 }, "EU3": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 }, "AP1": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 }, "AP2": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 }, "AP3": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 } } } } } } ], "storage": [ { "type": "object", "target": { "id": "string", "type": "googleCloud" }, "bucketName": "string" } ]}'
const response = await fetch('https://api.hyphen.ai/api/organizations/{organizationId}/deployments/', {
method: 'POST',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify({ "sites": [ { "app": { "id": "string" }, "deploymentSettings": { "targets": [ { "id": "string" } ] } } ], "name": "string", "alternateId": "string", "description": "string", "project": { "id": "string" }, "projectEnvironment": { "id": "string" }, "apps": [ { "app": { "id": "string" }, "deploymentSettings": { "targets": [ { "id": "string", "type": "string" } ], "path": "string", "hostname": "string", "dns": { "zoneName": "string", "zoneId": "string", "recordId": "string", "recordValueId": "string" }, "availability": "99.000", "scale": "small", "trafficRegions": [ "na" ], "advanced": { "scale": { "googleCloud": { "NA1": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 }, "NA2": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 }, "NA3": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 }, "SA1": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 }, "SA2": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 }, "SA3": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 }, "EU1": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 }, "EU2": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 }, "EU3": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 }, "AP1": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 }, "AP2": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 }, "AP3": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 } }, "azure": { "NA1": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 }, "NA2": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 }, "NA3": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 }, "SA1": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 }, "SA2": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 }, "SA3": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 }, "EU1": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 }, "EU2": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 }, "EU3": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 }, "AP1": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 }, "AP2": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 }, "AP3": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 } }, "aws": { "NA1": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 }, "NA2": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 }, "NA3": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 }, "SA1": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 }, "SA2": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 }, "SA3": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 }, "EU1": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 }, "EU2": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 }, "EU3": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 }, "AP1": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 }, "AP2": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 }, "AP3": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 } } } } } } ], "storage": [ { "type": "object", "target": { "id": "string", "type": "googleCloud" }, "bucketName": "string" } ]})
});
const data = await response.json();
import requests
response = requests.post(
'https://api.hyphen.ai/api/organizations/{organizationId}/deployments/',
headers={
'Content-Type': 'application/json'
},
json={ "sites": [ { "app": { "id": "string" }, "deploymentSettings": { "targets": [ { "id": "string" } ] } } ], "name": "string", "alternateId": "string", "description": "string", "project": { "id": "string" }, "projectEnvironment": { "id": "string" }, "apps": [ { "app": { "id": "string" }, "deploymentSettings": { "targets": [ { "id": "string", "type": "string" } ], "path": "string", "hostname": "string", "dns": { "zoneName": "string", "zoneId": "string", "recordId": "string", "recordValueId": "string" }, "availability": "99.000", "scale": "small", "trafficRegions": [ "na" ], "advanced": { "scale": { "googleCloud": { "NA1": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 }, "NA2": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 }, "NA3": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 }, "SA1": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 }, "SA2": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 }, "SA3": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 }, "EU1": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 }, "EU2": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 }, "EU3": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 }, "AP1": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 }, "AP2": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 }, "AP3": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 } }, "azure": { "NA1": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 }, "NA2": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 }, "NA3": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 }, "SA1": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 }, "SA2": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 }, "SA3": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 }, "EU1": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 }, "EU2": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 }, "EU3": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 }, "AP1": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 }, "AP2": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 }, "AP3": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 } }, "aws": { "NA1": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 }, "NA2": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 }, "NA3": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 }, "SA1": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 }, "SA2": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 }, "SA3": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 }, "EU1": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 }, "EU2": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 }, "EU3": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 }, "AP1": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 }, "AP2": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 }, "AP3": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 } } } } } } ], "storage": [ { "type": "object", "target": { "id": "string", "type": "googleCloud" }, "bucketName": "string" } ]}
)
data = response.json()
| Name | Type | In | Description |
|---|---|---|---|
| projectId | string | query | The project id. |
| organizationId * | string | path | The organization Id. |
[
{
"id": "string",
"name": "string",
"url": "string",
"auth": {
"server": "string",
"username": "string",
"password": "string"
},
"organization": {
"id": "string",
"name": "string"
},
"project": {
"id": "string",
"alternateId": "string",
"name": "string"
},
"projectEnvironment": {
"id": "string",
"alternateId": "string",
"name": "string"
}
}
]
{
"message": "Unable to validate JWT. Please make sure a valid JWT is sent as an Authorization header or access token cookie.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "Resource with id 'a1b2c3d4' not found or you do not have permission to access it.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "An unknown error occurred",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
curl -X GET "https://api.hyphen.ai/api/organizations/{organizationId}/deployments/containerRegistries?projectId={projectId}"
const response = await fetch('https://api.hyphen.ai/api/organizations/{organizationId}/deployments/containerRegistries?projectId={projectId}', {
method: 'GET'
});
const data = await response.json();
import requests
response = requests.get(
'https://api.hyphen.ai/api/organizations/{organizationId}/deployments/containerRegistries',
params={
'projectId': '{projectId}'
}
)
data = response.json()
| Name | Type | In | Description |
|---|---|---|---|
| organizationId * | string | path | The organization Id. |
| deploymentId * | string | path | The deployment Id or alternate Id. |
{
"id": "string",
"name": "string",
"alternateId": "string",
"description": "string",
"organization": {
"id": "string",
"name": "string"
},
"project": {
"id": "string",
"alternateId": "string",
"name": "string"
},
"projectEnvironment": {
"id": "string",
"alternateId": "string",
"name": "string"
},
"apps": [
{
"project": {
"id": "string",
"alternateId": "string",
"name": "string"
},
"app": {
"id": "string",
"alternateId": "string",
"name": "string"
},
"deploymentSettings": {
"targets": [
{
"id": "string",
"type": "string"
}
],
"path": "string",
"hostname": "string",
"dns": {
"zoneName": "string",
"zoneId": "string",
"recordId": "string",
"recordValueId": "string"
},
"availability": "99.000",
"scale": "small",
"trafficRegions": [
"na"
],
"advanced": {
"scale": {
"googleCloud": {
"NA1": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"NA2": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"NA3": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"SA1": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"SA2": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"SA3": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"EU1": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"EU2": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"EU3": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"AP1": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"AP2": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"AP3": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
}
},
"azure": {
"NA1": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"NA2": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"NA3": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"SA1": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"SA2": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"SA3": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"EU1": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"EU2": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"EU3": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"AP1": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"AP2": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"AP3": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
}
},
"aws": {
"NA1": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"NA2": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"NA3": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"SA1": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"SA2": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"SA3": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"EU1": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"EU2": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"EU3": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"AP1": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"AP2": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"AP3": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
}
}
}
},
"projectEnvironment": {
"id": "string",
"alternateId": "string",
"name": "string"
}
}
}
],
"sites": [
{
"app": {
"id": "string",
"alternateId": "string",
"name": "string"
},
"project": {
"id": "string",
"alternateId": "string",
"name": "string"
},
"deploymentSettings": {
"targets": [
{
"id": "string",
"type": "hyphenCloud"
}
]
}
}
],
"isReady": true,
"readinessIssues": [
{
"error": "string",
"target": "string",
"projectId": "string"
}
],
"previews": [
{
"id": "string",
"name": "string",
"hostPrefix": "string",
"dns": [
{
"zoneName": "string",
"zoneId": "string",
"recordId": "string",
"recordValueId": "string",
"appId": "string"
}
]
}
],
"storage": [
{
"type": "object",
"target": {
"id": "string",
"type": "googleCloud"
},
"bucketName": "string"
}
]
}
{
"message": "Unable to validate JWT. Please make sure a valid JWT is sent as an Authorization header or access token cookie.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "Resource with id 'a1b2c3d4' not found or you do not have permission to access it.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "An unknown error occurred",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
curl -X GET "https://api.hyphen.ai/api/organizations/{organizationId}/deployments/{deploymentId}"
const response = await fetch('https://api.hyphen.ai/api/organizations/{organizationId}/deployments/{deploymentId}', {
method: 'GET'
});
const data = await response.json();
import requests
response = requests.get('https://api.hyphen.ai/api/organizations/{organizationId}/deployments/{deploymentId}')
data = response.json()
| Name | Type | In | Description |
|---|---|---|---|
| organizationId * | string | path | The organization Id. |
| deploymentId * | string | path | The deployment Id or alternate Id. |
{
"message": "Unable to validate JWT. Please make sure a valid JWT is sent as an Authorization header or access token cookie.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "Resource with id 'a1b2c3d4' not found or you do not have permission to access it.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "An unknown error occurred",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
curl -X DELETE "https://api.hyphen.ai/api/organizations/{organizationId}/deployments/{deploymentId}"
const response = await fetch('https://api.hyphen.ai/api/organizations/{organizationId}/deployments/{deploymentId}', {
method: 'DELETE'
});
const data = await response.json();
import requests
response = requests.delete('https://api.hyphen.ai/api/organizations/{organizationId}/deployments/{deploymentId}')
data = response.json()
| Name | Type | In | Description |
|---|---|---|---|
| organizationId * | string | path | The organization Id. |
| deploymentId * | string | path | The deployment Id or alternate Id. |
{
"sites": [
{
"app": {
"id": "string"
},
"deploymentSettings": {
"targets": [
{
"id": "string"
}
]
}
}
],
"name": "string",
"description": "string",
"apps": [
{
"project": {
"id": "string",
"alternateId": "string",
"name": "string"
},
"app": {
"id": "string",
"alternateId": "string",
"name": "string"
},
"deploymentSettings": {
"targets": [
{
"id": "string",
"type": "string"
}
],
"path": "string",
"hostname": "string",
"dns": {
"zoneName": "string",
"zoneId": "string",
"recordId": "string",
"recordValueId": "string"
},
"availability": "99.000",
"scale": "small",
"trafficRegions": [
"na"
],
"advanced": {
"scale": {
"googleCloud": {
"NA1": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"NA2": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"NA3": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"SA1": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"SA2": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"SA3": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"EU1": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"EU2": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"EU3": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"AP1": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"AP2": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"AP3": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
}
},
"azure": {
"NA1": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"NA2": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"NA3": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"SA1": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"SA2": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"SA3": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"EU1": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"EU2": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"EU3": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"AP1": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"AP2": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"AP3": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
}
},
"aws": {
"NA1": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"NA2": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"NA3": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"SA1": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"SA2": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"SA3": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"EU1": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"EU2": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"EU3": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"AP1": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"AP2": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"AP3": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
}
}
}
}
}
}
],
"storage": [
{
"type": "object",
"target": {
"id": "string",
"type": "googleCloud"
},
"bucketName": "string"
}
]
}
{
"id": "string",
"name": "string",
"alternateId": "string",
"description": "string",
"organization": {
"id": "string",
"name": "string"
},
"project": {
"id": "string",
"alternateId": "string",
"name": "string"
},
"projectEnvironment": {
"id": "string",
"alternateId": "string",
"name": "string"
},
"apps": [
{
"project": {
"id": "string",
"alternateId": "string",
"name": "string"
},
"app": {
"id": "string",
"alternateId": "string",
"name": "string"
},
"deploymentSettings": {
"targets": [
{
"id": "string",
"type": "string"
}
],
"path": "string",
"hostname": "string",
"dns": {
"zoneName": "string",
"zoneId": "string",
"recordId": "string",
"recordValueId": "string"
},
"availability": "99.000",
"scale": "small",
"trafficRegions": [
"na"
],
"advanced": {
"scale": {
"googleCloud": {
"NA1": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"NA2": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"NA3": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"SA1": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"SA2": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"SA3": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"EU1": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"EU2": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"EU3": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"AP1": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"AP2": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"AP3": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
}
},
"azure": {
"NA1": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"NA2": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"NA3": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"SA1": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"SA2": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"SA3": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"EU1": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"EU2": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"EU3": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"AP1": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"AP2": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"AP3": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
}
},
"aws": {
"NA1": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"NA2": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"NA3": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"SA1": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"SA2": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"SA3": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"EU1": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"EU2": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"EU3": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"AP1": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"AP2": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"AP3": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
}
}
}
},
"projectEnvironment": {
"id": "string",
"alternateId": "string",
"name": "string"
}
}
}
],
"sites": [
{
"app": {
"id": "string",
"alternateId": "string",
"name": "string"
},
"project": {
"id": "string",
"alternateId": "string",
"name": "string"
},
"deploymentSettings": {
"targets": [
{
"id": "string",
"type": "hyphenCloud"
}
]
}
}
],
"isReady": true,
"readinessIssues": [
{
"error": "string",
"target": "string",
"projectId": "string"
}
],
"previews": [
{
"id": "string",
"name": "string",
"hostPrefix": "string",
"dns": [
{
"zoneName": "string",
"zoneId": "string",
"recordId": "string",
"recordValueId": "string",
"appId": "string"
}
]
}
],
"storage": [
{
"type": "object",
"target": {
"id": "string",
"type": "googleCloud"
},
"bucketName": "string"
}
]
}
{
"message": "Unable to validate JWT. Please make sure a valid JWT is sent as an Authorization header or access token cookie.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "Resource with id 'a1b2c3d4' not found or you do not have permission to access it.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "An unknown error occurred",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
curl -X PATCH "https://api.hyphen.ai/api/organizations/{organizationId}/deployments/{deploymentId}" \
-H "Content-Type: application/json" \
-d '{ "sites": [ { "app": { "id": "string" }, "deploymentSettings": { "targets": [ { "id": "string" } ] } } ], "name": "string", "description": "string", "apps": [ { "project": { "id": "string", "alternateId": "string", "name": "string" }, "app": { "id": "string", "alternateId": "string", "name": "string" }, "deploymentSettings": { "targets": [ { "id": "string", "type": "string" } ], "path": "string", "hostname": "string", "dns": { "zoneName": "string", "zoneId": "string", "recordId": "string", "recordValueId": "string" }, "availability": "99.000", "scale": "small", "trafficRegions": [ "na" ], "advanced": { "scale": { "googleCloud": { "NA1": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 }, "NA2": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 }, "NA3": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 }, "SA1": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 }, "SA2": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 }, "SA3": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 }, "EU1": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 }, "EU2": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 }, "EU3": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 }, "AP1": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 }, "AP2": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 }, "AP3": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 } }, "azure": { "NA1": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 }, "NA2": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 }, "NA3": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 }, "SA1": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 }, "SA2": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 }, "SA3": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 }, "EU1": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 }, "EU2": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 }, "EU3": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 }, "AP1": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 }, "AP2": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 }, "AP3": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 } }, "aws": { "NA1": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 }, "NA2": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 }, "NA3": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 }, "SA1": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 }, "SA2": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 }, "SA3": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 }, "EU1": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 }, "EU2": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 }, "EU3": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 }, "AP1": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 }, "AP2": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 }, "AP3": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 } } } } } } ], "storage": [ { "type": "object", "target": { "id": "string", "type": "googleCloud" }, "bucketName": "string" } ]}'
const response = await fetch('https://api.hyphen.ai/api/organizations/{organizationId}/deployments/{deploymentId}', {
method: 'PATCH',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify({ "sites": [ { "app": { "id": "string" }, "deploymentSettings": { "targets": [ { "id": "string" } ] } } ], "name": "string", "description": "string", "apps": [ { "project": { "id": "string", "alternateId": "string", "name": "string" }, "app": { "id": "string", "alternateId": "string", "name": "string" }, "deploymentSettings": { "targets": [ { "id": "string", "type": "string" } ], "path": "string", "hostname": "string", "dns": { "zoneName": "string", "zoneId": "string", "recordId": "string", "recordValueId": "string" }, "availability": "99.000", "scale": "small", "trafficRegions": [ "na" ], "advanced": { "scale": { "googleCloud": { "NA1": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 }, "NA2": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 }, "NA3": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 }, "SA1": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 }, "SA2": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 }, "SA3": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 }, "EU1": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 }, "EU2": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 }, "EU3": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 }, "AP1": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 }, "AP2": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 }, "AP3": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 } }, "azure": { "NA1": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 }, "NA2": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 }, "NA3": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 }, "SA1": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 }, "SA2": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 }, "SA3": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 }, "EU1": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 }, "EU2": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 }, "EU3": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 }, "AP1": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 }, "AP2": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 }, "AP3": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 } }, "aws": { "NA1": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 }, "NA2": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 }, "NA3": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 }, "SA1": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 }, "SA2": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 }, "SA3": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 }, "EU1": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 }, "EU2": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 }, "EU3": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 }, "AP1": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 }, "AP2": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 }, "AP3": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 } } } } } } ], "storage": [ { "type": "object", "target": { "id": "string", "type": "googleCloud" }, "bucketName": "string" } ]})
});
const data = await response.json();
import requests
response = requests.patch(
'https://api.hyphen.ai/api/organizations/{organizationId}/deployments/{deploymentId}',
headers={
'Content-Type': 'application/json'
},
json={ "sites": [ { "app": { "id": "string" }, "deploymentSettings": { "targets": [ { "id": "string" } ] } } ], "name": "string", "description": "string", "apps": [ { "project": { "id": "string", "alternateId": "string", "name": "string" }, "app": { "id": "string", "alternateId": "string", "name": "string" }, "deploymentSettings": { "targets": [ { "id": "string", "type": "string" } ], "path": "string", "hostname": "string", "dns": { "zoneName": "string", "zoneId": "string", "recordId": "string", "recordValueId": "string" }, "availability": "99.000", "scale": "small", "trafficRegions": [ "na" ], "advanced": { "scale": { "googleCloud": { "NA1": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 }, "NA2": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 }, "NA3": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 }, "SA1": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 }, "SA2": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 }, "SA3": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 }, "EU1": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 }, "EU2": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 }, "EU3": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 }, "AP1": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 }, "AP2": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 }, "AP3": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 } }, "azure": { "NA1": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 }, "NA2": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 }, "NA3": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 }, "SA1": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 }, "SA2": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 }, "SA3": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 }, "EU1": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 }, "EU2": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 }, "EU3": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 }, "AP1": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 }, "AP2": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 }, "AP3": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 } }, "aws": { "NA1": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 }, "NA2": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 }, "NA3": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 }, "SA1": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 }, "SA2": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 }, "SA3": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 }, "EU1": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 }, "EU2": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 }, "EU3": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 }, "AP1": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 }, "AP2": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 }, "AP3": { "minInstances": 0, "maxInstances": 0, "cpu": 0, "memory": 0 } } } } } } ], "storage": [ { "type": "object", "target": { "id": "string", "type": "googleCloud" }, "bucketName": "string" } ]}
)
data = response.json()
| Name | Type | In | Description |
|---|---|---|---|
| organizationId * | string | path | The organization Id. |
| deploymentId * | string | path | The deployment Id or alternate Id. |
{
"name": "string",
"hostPrefix": "string"
}
{
"id": "string",
"name": "string",
"hostPrefix": "string",
"dns": [
{
"zoneName": "string",
"zoneId": "string",
"recordId": "string",
"recordValueId": "string",
"appId": "string"
}
]
}
{
"message": "Unable to validate JWT. Please make sure a valid JWT is sent as an Authorization header or access token cookie.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "Resource with id 'a1b2c3d4' not found or you do not have permission to access it.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "An unknown error occurred",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
curl -X POST "https://api.hyphen.ai/api/organizations/{organizationId}/deployments/{deploymentId}/previews/" \
-H "Content-Type: application/json" \
-d '{ "name": "string", "hostPrefix": "string"}'
const response = await fetch('https://api.hyphen.ai/api/organizations/{organizationId}/deployments/{deploymentId}/previews/', {
method: 'POST',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify({ "name": "string", "hostPrefix": "string"})
});
const data = await response.json();
import requests
response = requests.post(
'https://api.hyphen.ai/api/organizations/{organizationId}/deployments/{deploymentId}/previews/',
headers={
'Content-Type': 'application/json'
},
json={ "name": "string", "hostPrefix": "string"}
)
data = response.json()
| Name | Type | In | Description |
|---|---|---|---|
| organizationId * | string | path | The organization Id. |
| deploymentId * | string | path | The deployment Id or alternate Id. |
| previewId * | string | path | The preview Id or name. |
{
"message": "Unable to validate JWT. Please make sure a valid JWT is sent as an Authorization header or access token cookie.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "Resource with id 'a1b2c3d4' not found or you do not have permission to access it.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "An unknown error occurred",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
curl -X DELETE "https://api.hyphen.ai/api/organizations/{organizationId}/deployments/{deploymentId}/previews/{previewId}"
const response = await fetch('https://api.hyphen.ai/api/organizations/{organizationId}/deployments/{deploymentId}/previews/{previewId}', {
method: 'DELETE'
});
const data = await response.json();
import requests
response = requests.delete('https://api.hyphen.ai/api/organizations/{organizationId}/deployments/{deploymentId}/previews/{previewId}')
data = response.json()
| Name | Type | In | Description |
|---|---|---|---|
| pageNum | integer | query | The page number. |
| pageSize | integer | query | The page size. |
| previewId | string | query | The preview Id or name. |
| organizationId * | string | path | The organization Id. |
| deploymentId * | string | path | The deployment Id or alternate Id. |
{
"total": 0,
"pageNum": 0,
"pageSize": 0,
"data": [
{
"id": "string",
"status": "creating",
"timing": {
"startTime": "string",
"endTime": "string"
},
"deploymentId": "string",
"previewId": "string",
"triggeredBy": {
"type": "optimizer",
"runId": "string"
},
"deploymentSnapshot": {
"id": "string",
"name": "string",
"alternateId": "string",
"description": "string",
"organization": {
"id": "string",
"name": "string"
},
"project": {
"id": "string",
"alternateId": "string",
"name": "string"
},
"projectEnvironment": {
"id": "string",
"alternateId": "string",
"name": "string"
},
"apps": [
{
"project": {
"id": "string",
"alternateId": "string",
"name": "string"
},
"app": {
"id": "string",
"alternateId": "string",
"name": "string"
},
"deploymentSettings": {
"targets": [
{
"id": "string",
"type": "string"
}
],
"path": "string",
"hostname": "string",
"dns": {
"zoneName": "string",
"zoneId": "string",
"recordId": "string",
"recordValueId": "string"
},
"availability": "99.000",
"scale": "small",
"trafficRegions": [
"na"
],
"advanced": {
"scale": {
"googleCloud": {
"NA1": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"NA2": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"NA3": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"SA1": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"SA2": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"SA3": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"EU1": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"EU2": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"EU3": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"AP1": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"AP2": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"AP3": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
}
},
"azure": {
"NA1": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"NA2": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"NA3": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"SA1": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"SA2": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"SA3": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"EU1": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"EU2": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"EU3": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"AP1": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"AP2": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"AP3": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
}
},
"aws": {
"NA1": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"NA2": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"NA3": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"SA1": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"SA2": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"SA3": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"EU1": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"EU2": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"EU3": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"AP1": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"AP2": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"AP3": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
}
}
}
},
"projectEnvironment": {
"id": "string",
"alternateId": "string",
"name": "string"
}
}
}
],
"sites": [
{
"app": {
"id": "string",
"alternateId": "string",
"name": "string"
},
"project": {
"id": "string",
"alternateId": "string",
"name": "string"
},
"deploymentSettings": {
"targets": [
{
"id": "string",
"type": "hyphenCloud"
}
]
}
}
],
"isReady": true,
"readinessIssues": [
{
"error": "string",
"target": "string",
"projectId": "string"
}
],
"previews": [
{
"id": "string",
"name": "string",
"hostPrefix": "string",
"dns": [
{
"zoneName": "string",
"zoneId": "string",
"recordId": "string",
"recordValueId": "string",
"appId": "string"
}
]
}
],
"storage": [
{
"type": "object",
"target": {
"id": "string",
"type": "googleCloud"
},
"bucketName": "string"
}
]
},
"appsSnapshot": [
{
"id": "app_66bf99b72a0043f841769880",
"alternateId": "my-app",
"name": "My App",
"settings": {
"env": {
"accessControls": {
"environments": {
"production": {
"allow": [
{
"description": "Prod servers",
"type": "cidr",
"cidr": "10.10.0.0/16"
}
],
"deny": [
{
"description": "Block all",
"type": "cidr",
"cidr": "0.0.0.0/0"
}
]
}
}
}
}
},
"organization": {
"id": "org_66bf99b72a0043f841769880",
"name": "My Org"
},
"project": {
"id": "proj_66bf99b72a0043f841769880",
"alternateId": "my-project",
"name": "My Project"
},
"meta": {
"createdAt": "2025-01-14T22:56:14.234Z",
"createdBy": "memb_66f30abb67ebc6bb0c5e0af9"
}
}
],
"artifacts": [
{
"appId": "string",
"buildId": "string",
"artifacts": [
null
]
}
],
"pipeline": {
"steps": [
null
]
},
"environmentResourcesSnapshot": [
{
"id": "string",
"deployment": {
"id": "string",
"name": "string"
},
"status": "Pending",
"lastDeploymentRunId": "string",
"regions": [
{
"id": "string",
"location": "string",
"archivedAt": "string"
}
],
"ingresses": [
{
"id": "string",
"type": "cloud",
"hostname": "string",
"dns": {
"zoneName": "string",
"zoneId": "string",
"recordId": "string",
"recordValueId": "string"
},
"ipAddress": "string",
"target": {
"id": "string",
"type": "hyphenCloud"
},
"status": "Pending",
"archivedAt": "string"
}
],
"storage": [
{
"id": "string",
"type": "object",
"target": {
"id": "string",
"type": "hyphenCloud"
},
"bucketName": "string",
"status": "Pending",
"archivedAt": "string"
}
],
"apps": [
{
"id": "string",
"app": {
"id": "string",
"name": "string"
},
"hostname": "string",
"dns": {
"zoneName": "string",
"zoneId": "string",
"recordId": "string",
"recordValueId": "string"
},
"path": "string",
"instances": [
{
"id": "string",
"location": "string",
"target": {
"id": "string",
"type": "hyphenCloud"
},
"status": "Pending",
"url": "string",
"buildId": "string",
"archivedAt": "string",
"min": 0,
"max": 0,
"cpu": 0,
"memory": 0
}
]
}
],
"sites": [
{
"buildId": "string",
"id": "string",
"connectionId": "string",
"registryId": "string",
"revision": "string",
"siteId": "string",
"url": "string",
"lastDeploymentRunId": "string",
"app": {
"id": "string",
"name": "string"
},
"target": {
"id": "string",
"type": "hyphenCloud"
},
"status": "Pending",
"archivedAt": "string"
}
],
"firstSuccessfulDeploymentRun": "string",
"organization": {
"id": "string",
"name": "string"
},
"project": {
"id": "string",
"alternateId": "string",
"name": "string"
},
"projectEnvironment": {
"id": "string",
"alternateId": "string",
"name": "string"
}
}
],
"organization": {
"id": "string",
"name": "string"
},
"meta": {
"createdAt": "2024-07-08T15:58:34.219+00:00",
"createdBy": "string",
"modifiedAt": "2024-07-08T15:58:34.219+00:00",
"modifiedBy": "string",
"deletedAt": "2024-07-08T15:58:34.219+00:00",
"deletedBy": "string"
}
}
]
}
{
"message": "Unable to validate JWT. Please make sure a valid JWT is sent as an Authorization header or access token cookie.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "Resource with id 'a1b2c3d4' not found or you do not have permission to access it.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "An unknown error occurred",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
curl -X GET "https://api.hyphen.ai/api/organizations/{organizationId}/deployments/{deploymentId}/runs/?pageNum={pageNum}&pageSize={pageSize}&previewId={previewId}"
const response = await fetch('https://api.hyphen.ai/api/organizations/{organizationId}/deployments/{deploymentId}/runs/?pageNum={pageNum}&pageSize={pageSize}&previewId={previewId}', {
method: 'GET'
});
const data = await response.json();
import requests
response = requests.get(
'https://api.hyphen.ai/api/organizations/{organizationId}/deployments/{deploymentId}/runs/',
params={
'pageNum': '{pageNum}',
'pageSize': '{pageSize}',
'previewId': '{previewId}'
}
)
data = response.json()
| Name | Type | In | Description |
|---|---|---|---|
| organizationId * | string | path | The organization Id. |
| deploymentId * | string | path | The deployment Id or alternate Id. |
{
"artifacts": [
null
],
"previewId": "string"
}
{
"id": "string",
"status": "creating",
"timing": {
"startTime": "string",
"endTime": "string"
},
"deploymentId": "string",
"previewId": "string",
"triggeredBy": {
"type": "optimizer",
"runId": "string"
},
"deploymentSnapshot": {
"id": "string",
"name": "string",
"alternateId": "string",
"description": "string",
"organization": {
"id": "string",
"name": "string"
},
"project": {
"id": "string",
"alternateId": "string",
"name": "string"
},
"projectEnvironment": {
"id": "string",
"alternateId": "string",
"name": "string"
},
"apps": [
{
"project": {
"id": "string",
"alternateId": "string",
"name": "string"
},
"app": {
"id": "string",
"alternateId": "string",
"name": "string"
},
"deploymentSettings": {
"targets": [
{
"id": "string",
"type": "string"
}
],
"path": "string",
"hostname": "string",
"dns": {
"zoneName": "string",
"zoneId": "string",
"recordId": "string",
"recordValueId": "string"
},
"availability": "99.000",
"scale": "small",
"trafficRegions": [
"na"
],
"advanced": {
"scale": {
"googleCloud": {
"NA1": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"NA2": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"NA3": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"SA1": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"SA2": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"SA3": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"EU1": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"EU2": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"EU3": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"AP1": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"AP2": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"AP3": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
}
},
"azure": {
"NA1": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"NA2": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"NA3": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"SA1": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"SA2": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"SA3": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"EU1": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"EU2": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"EU3": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"AP1": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"AP2": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"AP3": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
}
},
"aws": {
"NA1": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"NA2": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"NA3": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"SA1": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"SA2": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"SA3": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"EU1": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"EU2": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"EU3": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"AP1": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"AP2": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"AP3": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
}
}
}
},
"projectEnvironment": {
"id": "string",
"alternateId": "string",
"name": "string"
}
}
}
],
"sites": [
{
"app": {
"id": "string",
"alternateId": "string",
"name": "string"
},
"project": {
"id": "string",
"alternateId": "string",
"name": "string"
},
"deploymentSettings": {
"targets": [
{
"id": "string",
"type": "hyphenCloud"
}
]
}
}
],
"isReady": true,
"readinessIssues": [
{
"error": "string",
"target": "string",
"projectId": "string"
}
],
"previews": [
{
"id": "string",
"name": "string",
"hostPrefix": "string",
"dns": [
{
"zoneName": "string",
"zoneId": "string",
"recordId": "string",
"recordValueId": "string",
"appId": "string"
}
]
}
],
"storage": [
{
"type": "object",
"target": {
"id": "string",
"type": "googleCloud"
},
"bucketName": "string"
}
]
},
"appsSnapshot": [
{
"id": "app_66bf99b72a0043f841769880",
"alternateId": "my-app",
"name": "My App",
"settings": {
"env": {
"accessControls": {
"environments": {
"production": {
"allow": [
{
"description": "Prod servers",
"type": "cidr",
"cidr": "10.10.0.0/16"
}
],
"deny": [
{
"description": "Block all",
"type": "cidr",
"cidr": "0.0.0.0/0"
}
]
}
}
}
}
},
"organization": {
"id": "org_66bf99b72a0043f841769880",
"name": "My Org"
},
"project": {
"id": "proj_66bf99b72a0043f841769880",
"alternateId": "my-project",
"name": "My Project"
},
"meta": {
"createdAt": "2025-01-14T22:56:14.234Z",
"createdBy": "memb_66f30abb67ebc6bb0c5e0af9"
}
}
],
"artifacts": [
{
"appId": "string",
"buildId": "string",
"artifacts": [
null
]
}
],
"pipeline": {
"steps": [
null
]
},
"environmentResourcesSnapshot": [
{
"id": "string",
"deployment": {
"id": "string",
"name": "string"
},
"status": "Pending",
"lastDeploymentRunId": "string",
"regions": [
{
"id": "string",
"location": "string",
"archivedAt": "string"
}
],
"ingresses": [
{
"id": "string",
"type": "cloud",
"hostname": "string",
"dns": {
"zoneName": "string",
"zoneId": "string",
"recordId": "string",
"recordValueId": "string"
},
"ipAddress": "string",
"target": {
"id": "string",
"type": "hyphenCloud"
},
"status": "Pending",
"archivedAt": "string"
}
],
"storage": [
{
"id": "string",
"type": "object",
"target": {
"id": "string",
"type": "hyphenCloud"
},
"bucketName": "string",
"status": "Pending",
"archivedAt": "string"
}
],
"apps": [
{
"id": "string",
"app": {
"id": "string",
"name": "string"
},
"hostname": "string",
"dns": {
"zoneName": "string",
"zoneId": "string",
"recordId": "string",
"recordValueId": "string"
},
"path": "string",
"instances": [
{
"id": "string",
"location": "string",
"target": {
"id": "string",
"type": "hyphenCloud"
},
"status": "Pending",
"url": "string",
"buildId": "string",
"archivedAt": "string",
"min": 0,
"max": 0,
"cpu": 0,
"memory": 0
}
]
}
],
"sites": [
{
"buildId": "string",
"id": "string",
"connectionId": "string",
"registryId": "string",
"revision": "string",
"siteId": "string",
"url": "string",
"lastDeploymentRunId": "string",
"app": {
"id": "string",
"name": "string"
},
"target": {
"id": "string",
"type": "hyphenCloud"
},
"status": "Pending",
"archivedAt": "string"
}
],
"firstSuccessfulDeploymentRun": "string",
"organization": {
"id": "string",
"name": "string"
},
"project": {
"id": "string",
"alternateId": "string",
"name": "string"
},
"projectEnvironment": {
"id": "string",
"alternateId": "string",
"name": "string"
}
}
],
"organization": {
"id": "string",
"name": "string"
},
"meta": {
"createdAt": "2024-07-08T15:58:34.219+00:00",
"createdBy": "string",
"modifiedAt": "2024-07-08T15:58:34.219+00:00",
"modifiedBy": "string",
"deletedAt": "2024-07-08T15:58:34.219+00:00",
"deletedBy": "string"
}
}
{
"message": "Unable to validate JWT. Please make sure a valid JWT is sent as an Authorization header or access token cookie.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "An unknown error occurred",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
curl -X POST "https://api.hyphen.ai/api/organizations/{organizationId}/deployments/{deploymentId}/runs/" \
-H "Content-Type: application/json" \
-d '{ "artifacts": [ null ], "previewId": "string"}'
const response = await fetch('https://api.hyphen.ai/api/organizations/{organizationId}/deployments/{deploymentId}/runs/', {
method: 'POST',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify({ "artifacts": [ null ], "previewId": "string"})
});
const data = await response.json();
import requests
response = requests.post(
'https://api.hyphen.ai/api/organizations/{organizationId}/deployments/{deploymentId}/runs/',
headers={
'Content-Type': 'application/json'
},
json={ "artifacts": [ null ], "previewId": "string"}
)
data = response.json()
| Name | Type | In | Description |
|---|---|---|---|
| organizationId * | string | path | The organization Id. |
| deploymentId * | string | path | The deployment Id or alternate Id. |
| runId * | string | path |
{
"id": "string",
"status": "creating",
"timing": {
"startTime": "string",
"endTime": "string"
},
"deploymentId": "string",
"previewId": "string",
"triggeredBy": {
"type": "optimizer",
"runId": "string"
},
"deploymentSnapshot": {
"id": "string",
"name": "string",
"alternateId": "string",
"description": "string",
"organization": {
"id": "string",
"name": "string"
},
"project": {
"id": "string",
"alternateId": "string",
"name": "string"
},
"projectEnvironment": {
"id": "string",
"alternateId": "string",
"name": "string"
},
"apps": [
{
"project": {
"id": "string",
"alternateId": "string",
"name": "string"
},
"app": {
"id": "string",
"alternateId": "string",
"name": "string"
},
"deploymentSettings": {
"targets": [
{
"id": "string",
"type": "string"
}
],
"path": "string",
"hostname": "string",
"dns": {
"zoneName": "string",
"zoneId": "string",
"recordId": "string",
"recordValueId": "string"
},
"availability": "99.000",
"scale": "small",
"trafficRegions": [
"na"
],
"advanced": {
"scale": {
"googleCloud": {
"NA1": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"NA2": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"NA3": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"SA1": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"SA2": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"SA3": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"EU1": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"EU2": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"EU3": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"AP1": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"AP2": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"AP3": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
}
},
"azure": {
"NA1": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"NA2": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"NA3": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"SA1": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"SA2": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"SA3": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"EU1": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"EU2": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"EU3": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"AP1": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"AP2": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"AP3": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
}
},
"aws": {
"NA1": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"NA2": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"NA3": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"SA1": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"SA2": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"SA3": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"EU1": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"EU2": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"EU3": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"AP1": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"AP2": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"AP3": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
}
}
}
},
"projectEnvironment": {
"id": "string",
"alternateId": "string",
"name": "string"
}
}
}
],
"sites": [
{
"app": {
"id": "string",
"alternateId": "string",
"name": "string"
},
"project": {
"id": "string",
"alternateId": "string",
"name": "string"
},
"deploymentSettings": {
"targets": [
{
"id": "string",
"type": "hyphenCloud"
}
]
}
}
],
"isReady": true,
"readinessIssues": [
{
"error": "string",
"target": "string",
"projectId": "string"
}
],
"previews": [
{
"id": "string",
"name": "string",
"hostPrefix": "string",
"dns": [
{
"zoneName": "string",
"zoneId": "string",
"recordId": "string",
"recordValueId": "string",
"appId": "string"
}
]
}
],
"storage": [
{
"type": "object",
"target": {
"id": "string",
"type": "googleCloud"
},
"bucketName": "string"
}
]
},
"appsSnapshot": [
{
"id": "app_66bf99b72a0043f841769880",
"alternateId": "my-app",
"name": "My App",
"settings": {
"env": {
"accessControls": {
"environments": {
"production": {
"allow": [
{
"description": "Prod servers",
"type": "cidr",
"cidr": "10.10.0.0/16"
}
],
"deny": [
{
"description": "Block all",
"type": "cidr",
"cidr": "0.0.0.0/0"
}
]
}
}
}
}
},
"organization": {
"id": "org_66bf99b72a0043f841769880",
"name": "My Org"
},
"project": {
"id": "proj_66bf99b72a0043f841769880",
"alternateId": "my-project",
"name": "My Project"
},
"meta": {
"createdAt": "2025-01-14T22:56:14.234Z",
"createdBy": "memb_66f30abb67ebc6bb0c5e0af9"
}
}
],
"artifacts": [
{
"appId": "string",
"buildId": "string",
"artifacts": [
null
]
}
],
"pipeline": {
"steps": [
null
]
},
"environmentResourcesSnapshot": [
{
"id": "string",
"deployment": {
"id": "string",
"name": "string"
},
"status": "Pending",
"lastDeploymentRunId": "string",
"regions": [
{
"id": "string",
"location": "string",
"archivedAt": "string"
}
],
"ingresses": [
{
"id": "string",
"type": "cloud",
"hostname": "string",
"dns": {
"zoneName": "string",
"zoneId": "string",
"recordId": "string",
"recordValueId": "string"
},
"ipAddress": "string",
"target": {
"id": "string",
"type": "hyphenCloud"
},
"status": "Pending",
"archivedAt": "string"
}
],
"storage": [
{
"id": "string",
"type": "object",
"target": {
"id": "string",
"type": "hyphenCloud"
},
"bucketName": "string",
"status": "Pending",
"archivedAt": "string"
}
],
"apps": [
{
"id": "string",
"app": {
"id": "string",
"name": "string"
},
"hostname": "string",
"dns": {
"zoneName": "string",
"zoneId": "string",
"recordId": "string",
"recordValueId": "string"
},
"path": "string",
"instances": [
{
"id": "string",
"location": "string",
"target": {
"id": "string",
"type": "hyphenCloud"
},
"status": "Pending",
"url": "string",
"buildId": "string",
"archivedAt": "string",
"min": 0,
"max": 0,
"cpu": 0,
"memory": 0
}
]
}
],
"sites": [
{
"buildId": "string",
"id": "string",
"connectionId": "string",
"registryId": "string",
"revision": "string",
"siteId": "string",
"url": "string",
"lastDeploymentRunId": "string",
"app": {
"id": "string",
"name": "string"
},
"target": {
"id": "string",
"type": "hyphenCloud"
},
"status": "Pending",
"archivedAt": "string"
}
],
"firstSuccessfulDeploymentRun": "string",
"organization": {
"id": "string",
"name": "string"
},
"project": {
"id": "string",
"alternateId": "string",
"name": "string"
},
"projectEnvironment": {
"id": "string",
"alternateId": "string",
"name": "string"
}
}
],
"organization": {
"id": "string",
"name": "string"
},
"meta": {
"createdAt": "2024-07-08T15:58:34.219+00:00",
"createdBy": "string",
"modifiedAt": "2024-07-08T15:58:34.219+00:00",
"modifiedBy": "string",
"deletedAt": "2024-07-08T15:58:34.219+00:00",
"deletedBy": "string"
}
}
{
"message": "Unable to validate JWT. Please make sure a valid JWT is sent as an Authorization header or access token cookie.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "Resource with id 'a1b2c3d4' not found or you do not have permission to access it.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "An unknown error occurred",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
curl -X GET "https://api.hyphen.ai/api/organizations/{organizationId}/deployments/{deploymentId}/runs/{runId}"
const response = await fetch('https://api.hyphen.ai/api/organizations/{organizationId}/deployments/{deploymentId}/runs/{runId}', {
method: 'GET'
});
const data = await response.json();
import requests
response = requests.get('https://api.hyphen.ai/api/organizations/{organizationId}/deployments/{deploymentId}/runs/{runId}')
data = response.json()
| Name | Type | In | Description |
|---|---|---|---|
| organizationId * | string | path | The organization Id. |
| deploymentId * | string | path | The deployment Id or alternate Id. |
| runId * | string | path |
{
"status": "canceling"
}
{
"message": "Invalid request body or query parameters",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "Unable to validate JWT. Please make sure a valid JWT is sent as an Authorization header or access token cookie.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "Resource with id 'a1b2c3d4' not found or you do not have permission to access it.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "An unknown error occurred",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
curl -X PUT "https://api.hyphen.ai/api/organizations/{organizationId}/deployments/{deploymentId}/runs/{runId}/status" \
-H "Content-Type: application/json" \
-d '{ "status": "canceling"}'
const response = await fetch('https://api.hyphen.ai/api/organizations/{organizationId}/deployments/{deploymentId}/runs/{runId}/status', {
method: 'PUT',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify({ "status": "canceling"})
});
const data = await response.json();
import requests
response = requests.put(
'https://api.hyphen.ai/api/organizations/{organizationId}/deployments/{deploymentId}/runs/{runId}/status',
headers={
'Content-Type': 'application/json'
},
json={ "status": "canceling"}
)
data = response.json()
| Name | Type | In | Description |
|---|---|---|---|
| organizationId * | string | path | The organization Id. |
| deploymentId * | string | path | The deployment Id or alternate Id. |
| runId * | string | path |
[
{
"level": "INFO",
"id": "string",
"runId": "string",
"organization": {
"id": "string",
"name": "string"
},
"message": "string",
"timestamp": 0,
"parents": [
"string"
],
"stepId": "string",
"parallelStepId": "string",
"taskId": "string",
"userFacingErrorMessage": "string",
"retryable": true
}
]
{
"message": "Unable to validate JWT. Please make sure a valid JWT is sent as an Authorization header or access token cookie.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "Resource with id 'a1b2c3d4' not found or you do not have permission to access it.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "An unknown error occurred",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
curl -X GET "https://api.hyphen.ai/api/organizations/{organizationId}/deployments/{deploymentId}/runs/{runId}/logs"
const response = await fetch('https://api.hyphen.ai/api/organizations/{organizationId}/deployments/{deploymentId}/runs/{runId}/logs', {
method: 'GET'
});
const data = await response.json();
import requests
response = requests.get('https://api.hyphen.ai/api/organizations/{organizationId}/deployments/{deploymentId}/runs/{runId}/logs')
data = response.json()
| Name | Type | In | Description |
|---|---|---|---|
| organizationId * | string | path | The organization Id. |
| projectId * | string | path | The project Id or alternate Id. |
| environmentId * | string | path | The environment Id or alternate Id. |
{
"id": "string",
"name": "string",
"alternateId": "string",
"description": "string",
"organization": {
"id": "string",
"name": "string"
},
"project": {
"id": "string",
"alternateId": "string",
"name": "string"
},
"projectEnvironment": {
"id": "string",
"alternateId": "string",
"name": "string"
},
"apps": [
{
"project": {
"id": "string",
"alternateId": "string",
"name": "string"
},
"app": {
"id": "string",
"alternateId": "string",
"name": "string"
},
"deploymentSettings": {
"targets": [
{
"id": "string",
"type": "string"
}
],
"path": "string",
"hostname": "string",
"dns": {
"zoneName": "string",
"zoneId": "string",
"recordId": "string",
"recordValueId": "string"
},
"availability": "99.000",
"scale": "small",
"trafficRegions": [
"na"
],
"advanced": {
"scale": {
"googleCloud": {
"NA1": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"NA2": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"NA3": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"SA1": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"SA2": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"SA3": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"EU1": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"EU2": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"EU3": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"AP1": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"AP2": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"AP3": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
}
},
"azure": {
"NA1": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"NA2": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"NA3": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"SA1": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"SA2": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"SA3": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"EU1": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"EU2": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"EU3": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"AP1": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"AP2": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"AP3": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
}
},
"aws": {
"NA1": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"NA2": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"NA3": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"SA1": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"SA2": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"SA3": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"EU1": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"EU2": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"EU3": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"AP1": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"AP2": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
},
"AP3": {
"minInstances": 0,
"maxInstances": 0,
"cpu": 0,
"memory": 0
}
}
}
},
"projectEnvironment": {
"id": "string",
"alternateId": "string",
"name": "string"
}
}
}
],
"sites": [
{
"app": {
"id": "string",
"alternateId": "string",
"name": "string"
},
"project": {
"id": "string",
"alternateId": "string",
"name": "string"
},
"deploymentSettings": {
"targets": [
{
"id": "string",
"type": "hyphenCloud"
}
]
}
}
],
"isReady": true,
"readinessIssues": [
{
"error": "string",
"target": "string",
"projectId": "string"
}
],
"previews": [
{
"id": "string",
"name": "string",
"hostPrefix": "string",
"dns": [
{
"zoneName": "string",
"zoneId": "string",
"recordId": "string",
"recordValueId": "string",
"appId": "string"
}
]
}
],
"storage": [
{
"type": "object",
"target": {
"id": "string",
"type": "googleCloud"
},
"bucketName": "string"
}
]
}
curl -X GET "https://api.hyphen.ai/api/organizations/{organizationId}/projects/{projectId}/environments/{environmentId}/deployment"
const response = await fetch('https://api.hyphen.ai/api/organizations/{organizationId}/projects/{projectId}/environments/{environmentId}/deployment', {
method: 'GET'
});
const data = await response.json();
import requests
response = requests.get('https://api.hyphen.ai/api/organizations/{organizationId}/projects/{projectId}/environments/{environmentId}/deployment')
data = response.json()
Zones
| Name | Type | In | Description |
|---|---|---|---|
| pageNum | integer | query | The page number. |
| pageSize | integer | query | The page size. |
| organizationId * | string | path | The organization Id. |
{
"total": 0,
"pageNum": 0,
"pageSize": 0,
"data": [
{
"id": "string",
"name": "string",
"organization": {
"id": "string",
"name": "string"
},
"meta": {
"createdAt": "2024-07-08T15:58:34.219+00:00",
"createdBy": "string",
"modifiedAt": "2024-07-08T15:58:34.219+00:00",
"modifiedBy": "string",
"deletedAt": "2024-07-08T15:58:34.219+00:00",
"deletedBy": "string"
}
}
]
}
{
"message": "Unable to validate JWT. Please make sure a valid JWT is sent as an Authorization header or access token cookie.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "An unknown error occurred",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
curl -X GET "https://api.hyphen.ai/api/organizations/{organizationId}/dns/zones/?pageNum={pageNum}&pageSize={pageSize}"
const response = await fetch('https://api.hyphen.ai/api/organizations/{organizationId}/dns/zones/?pageNum={pageNum}&pageSize={pageSize}', {
method: 'GET'
});
const data = await response.json();
import requests
response = requests.get(
'https://api.hyphen.ai/api/organizations/{organizationId}/dns/zones/',
params={
'pageNum': '{pageNum}',
'pageSize': '{pageSize}'
}
)
data = response.json()
| Name | Type | In | Description |
|---|---|---|---|
| organizationId * | string | path | The organization Id. |
| zoneId * | string | path | The zone Id. |
{
"id": "string",
"name": "string",
"organization": {
"id": "string",
"name": "string"
},
"meta": {
"createdAt": "2024-07-08T15:58:34.219+00:00",
"createdBy": "string",
"modifiedAt": "2024-07-08T15:58:34.219+00:00",
"modifiedBy": "string",
"deletedAt": "2024-07-08T15:58:34.219+00:00",
"deletedBy": "string"
}
}
{
"message": "Unable to validate JWT. Please make sure a valid JWT is sent as an Authorization header or access token cookie.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "An unknown error occurred",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
curl -X GET "https://api.hyphen.ai/api/organizations/{organizationId}/dns/zones/{zoneId}/"
const response = await fetch('https://api.hyphen.ai/api/organizations/{organizationId}/dns/zones/{zoneId}/', {
method: 'GET'
});
const data = await response.json();
import requests
response = requests.get('https://api.hyphen.ai/api/organizations/{organizationId}/dns/zones/{zoneId}/')
data = response.json()
| Name | Type | In | Description |
|---|---|---|---|
| organizationId * | string | path | The organization Id. |
| zoneId * | string | path | The zone Id. |
{
"message": "Unable to validate JWT. Please make sure a valid JWT is sent as an Authorization header or access token cookie.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "An unknown error occurred",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
curl -X DELETE "https://api.hyphen.ai/api/organizations/{organizationId}/dns/zones/{zoneId}/"
const response = await fetch('https://api.hyphen.ai/api/organizations/{organizationId}/dns/zones/{zoneId}/', {
method: 'DELETE'
});
const data = await response.json();
import requests
response = requests.delete('https://api.hyphen.ai/api/organizations/{organizationId}/dns/zones/{zoneId}/')
data = response.json()
Resource Records
| Name | Type | In | Description |
|---|---|---|---|
| pageNum | integer | query | The page number. |
| pageSize | integer | query | The page size. |
| organizationId * | string | path | The organization Id. |
| zoneId * | string | path | The zone Id. |
{
"total": 0,
"pageNum": 0,
"pageSize": 0,
"data": [
{
"id": "string",
"name": "string",
"type": "A",
"values": [
{
"id": "string",
"data": "string",
"ttl": 0
}
],
"zone": {
"id": "string",
"name": "string"
},
"organization": {
"id": "string",
"name": "string"
},
"meta": {
"createdAt": "2024-07-08T15:58:34.219+00:00",
"createdBy": "string",
"modifiedAt": "2024-07-08T15:58:34.219+00:00",
"modifiedBy": "string",
"deletedAt": "2024-07-08T15:58:34.219+00:00",
"deletedBy": "string"
}
}
]
}
{
"message": "Unable to validate JWT. Please make sure a valid JWT is sent as an Authorization header or access token cookie.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "An unknown error occurred",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
curl -X GET "https://api.hyphen.ai/api/organizations/{organizationId}/dns/zones/{zoneId}/resource-records/?pageNum={pageNum}&pageSize={pageSize}"
const response = await fetch('https://api.hyphen.ai/api/organizations/{organizationId}/dns/zones/{zoneId}/resource-records/?pageNum={pageNum}&pageSize={pageSize}', {
method: 'GET'
});
const data = await response.json();
import requests
response = requests.get(
'https://api.hyphen.ai/api/organizations/{organizationId}/dns/zones/{zoneId}/resource-records/',
params={
'pageNum': '{pageNum}',
'pageSize': '{pageSize}'
}
)
data = response.json()
Domains
| Name | Type | In | Description |
|---|---|---|---|
| pageNum | integer | query | The page number. |
| pageSize | integer | query | The page size. |
| organizationId * | string | path | The organization Id. |
{
"total": 0,
"pageNum": 0,
"pageSize": 0,
"data": [
{
"id": "string",
"domain": "string",
"status": "notReady",
"dnsStatus": "pending",
"sslStatus": "notReady",
"createdAt": "string",
"notFoundRedirectUrl": "string",
"fallbackUrlTemplate": "https://example.com/{code}",
"organization": {
"id": "string",
"name": "string"
}
}
]
}
{
"message": "Unable to validate JWT. Please make sure a valid JWT is sent as an Authorization header or access token cookie.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "An unknown error occurred",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
curl -X GET "https://api.hyphen.ai/api/organizations/{organizationId}/domains/?pageNum={pageNum}&pageSize={pageSize}"
const response = await fetch('https://api.hyphen.ai/api/organizations/{organizationId}/domains/?pageNum={pageNum}&pageSize={pageSize}', {
method: 'GET'
});
const data = await response.json();
import requests
response = requests.get(
'https://api.hyphen.ai/api/organizations/{organizationId}/domains/',
params={
'pageNum': '{pageNum}',
'pageSize': '{pageSize}'
}
)
data = response.json()
| Name | Type | In | Description |
|---|---|---|---|
| organizationId * | string | path | The organization Id. |
{
"domain": "string",
"notFoundRedirectUrl": "string",
"fallbackUrlTemplate": "https://example.com/{code}"
}
{
"id": "string",
"domain": "string",
"status": "notReady",
"dnsStatus": "pending",
"sslStatus": "notReady",
"createdAt": "string",
"notFoundRedirectUrl": "string",
"fallbackUrlTemplate": "https://example.com/{code}",
"organization": {
"id": "string",
"name": "string"
}
}
{
"message": "Invalid request body or query parameters",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "Unable to validate JWT. Please make sure a valid JWT is sent as an Authorization header or access token cookie.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "The resource could not be created because you do not have permission to create it.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "Resource with id 'a1b2c3d4' not found or you do not have permission to access it.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "The resource could not be created because of a conflict.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "An unknown error occurred",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
curl -X POST "https://api.hyphen.ai/api/organizations/{organizationId}/domains/" \
-H "Content-Type: application/json" \
-d '{ "domain": "string", "notFoundRedirectUrl": "string", "fallbackUrlTemplate": "https://example.com/{code}"}'
const response = await fetch('https://api.hyphen.ai/api/organizations/{organizationId}/domains/', {
method: 'POST',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify({ "domain": "string", "notFoundRedirectUrl": "string", "fallbackUrlTemplate": "https://example.com/{code}"})
});
const data = await response.json();
import requests
response = requests.post(
'https://api.hyphen.ai/api/organizations/{organizationId}/domains/',
headers={
'Content-Type': 'application/json'
},
json={ "domain": "string", "notFoundRedirectUrl": "string", "fallbackUrlTemplate": "https://example.com/{code}"}
)
data = response.json()
| Name | Type | In | Description |
|---|---|---|---|
| organizationId * | string | path | The organization Id. |
| domainId * | string | path | The domain Id. |
curl -X DELETE "https://api.hyphen.ai/api/organizations/{organizationId}/domains/{domainId}/"
const response = await fetch('https://api.hyphen.ai/api/organizations/{organizationId}/domains/{domainId}/', {
method: 'DELETE'
});
const data = await response.json();
import requests
response = requests.delete('https://api.hyphen.ai/api/organizations/{organizationId}/domains/{domainId}/')
data = response.json()
| Name | Type | In | Description |
|---|---|---|---|
| organizationId * | string | path | The organization Id. |
| domainId * | string | path | The domain Id. |
{
"notFoundRedirectUrl": "string",
"fallbackUrlTemplate": "https://example.com/{code}"
}
{
"id": "string",
"domain": "string",
"status": "notReady",
"dnsStatus": "pending",
"sslStatus": "notReady",
"createdAt": "string",
"notFoundRedirectUrl": "string",
"fallbackUrlTemplate": "https://example.com/{code}",
"organization": {
"id": "string",
"name": "string"
}
}
{
"message": "Unable to validate JWT. Please make sure a valid JWT is sent as an Authorization header or access token cookie.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "Resource with id 'a1b2c3d4' not found or you do not have permission to access it.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "An unknown error occurred",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
curl -X PATCH "https://api.hyphen.ai/api/organizations/{organizationId}/domains/{domainId}/" \
-H "Content-Type: application/json" \
-d '{ "notFoundRedirectUrl": "string", "fallbackUrlTemplate": "https://example.com/{code}"}'
const response = await fetch('https://api.hyphen.ai/api/organizations/{organizationId}/domains/{domainId}/', {
method: 'PATCH',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify({ "notFoundRedirectUrl": "string", "fallbackUrlTemplate": "https://example.com/{code}"})
});
const data = await response.json();
import requests
response = requests.patch(
'https://api.hyphen.ai/api/organizations/{organizationId}/domains/{domainId}/',
headers={
'Content-Type': 'application/json'
},
json={ "notFoundRedirectUrl": "string", "fallbackUrlTemplate": "https://example.com/{code}"}
)
data = response.json()
| Name | Type | In | Description |
|---|---|---|---|
| organizationId * | string | path | The organization Id. |
| domainId * | string | path | The domain Id. |
{
"verified": true
}
{
"message": "Unable to validate JWT. Please make sure a valid JWT is sent as an Authorization header or access token cookie.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "Resource with id 'a1b2c3d4' not found or you do not have permission to access it.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "An unknown error occurred",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
curl -X POST "https://api.hyphen.ai/api/organizations/{organizationId}/domains/{domainId}/verify"
const response = await fetch('https://api.hyphen.ai/api/organizations/{organizationId}/domains/{domainId}/verify', {
method: 'POST'
});
const data = await response.json();
import requests
response = requests.post('https://api.hyphen.ai/api/organizations/{organizationId}/domains/{domainId}/verify')
data = response.json()
Organization Integrations
| Name | Type | In | Description |
|---|---|---|---|
| organizationId * | string | path | The organization Id. |
{
"type": "slack",
"codeChallenge": "string",
"region": "string"
}
{
"type": "slack",
"url": "string"
}
{
"message": "Invalid request body or query parameters",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "Unable to validate JWT. Please make sure a valid JWT is sent as an Authorization header or access token cookie.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "Resource with id 'a1b2c3d4' not found or you do not have permission to access it.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "An unknown error occurred",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
curl -X POST "https://api.hyphen.ai/api/organizations/{organizationId}/integration-invites/" \
-H "Content-Type: application/json" \
-d '{ "type": "slack", "codeChallenge": "string", "region": "string"}'
const response = await fetch('https://api.hyphen.ai/api/organizations/{organizationId}/integration-invites/', {
method: 'POST',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify({ "type": "slack", "codeChallenge": "string", "region": "string"})
});
const data = await response.json();
import requests
response = requests.post(
'https://api.hyphen.ai/api/organizations/{organizationId}/integration-invites/',
headers={
'Content-Type': 'application/json'
},
json={ "type": "slack", "codeChallenge": "string", "region": "string"}
)
data = response.json()
| Name | Type | In | Description |
|---|---|---|---|
| organizationId * | string | path | The organization Id. |
{
"data": [
{
"id": "string",
"provides": [
{
"connectionType": "DistributionList",
"for": [
"Organization"
]
}
]
}
],
"total": 0,
"pageNum": 0,
"pageSize": 0
}
{
"message": "Unable to validate JWT. Please make sure a valid JWT is sent as an Authorization header or access token cookie.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "Resource with id 'a1b2c3d4' not found or you do not have permission to access it.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "An unknown error occurred",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
curl -X GET "https://api.hyphen.ai/api/organizations/{organizationId}/integrations/"
const response = await fetch('https://api.hyphen.ai/api/organizations/{organizationId}/integrations/', {
method: 'GET'
});
const data = await response.json();
import requests
response = requests.get('https://api.hyphen.ai/api/organizations/{organizationId}/integrations/')
data = response.json()
| Name | Type | In | Description |
|---|---|---|---|
| organizationId * | string | path | The organization Id. |
{}
{
"id": "string",
"provides": [
{
"connectionType": "DistributionList",
"for": [
"Organization"
]
}
]
}
{
"message": "Invalid request body or query parameters",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "Unable to validate JWT. Please make sure a valid JWT is sent as an Authorization header or access token cookie.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "Resource with id 'a1b2c3d4' not found or you do not have permission to access it.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "The resource could not be created because of a conflict.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "An unknown error occurred",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
curl -X POST "https://api.hyphen.ai/api/organizations/{organizationId}/integrations/" \
-H "Content-Type: application/json" \
-d '{}'
const response = await fetch('https://api.hyphen.ai/api/organizations/{organizationId}/integrations/', {
method: 'POST',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify({})
});
const data = await response.json();
import requests
response = requests.post(
'https://api.hyphen.ai/api/organizations/{organizationId}/integrations/',
headers={
'Content-Type': 'application/json'
},
json={}
)
data = response.json()
| Name | Type | In | Description |
|---|---|---|---|
| organizationId * | string | path | The organization Id. |
{}
{
"message": "Invalid request body or query parameters",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "Unable to validate JWT. Please make sure a valid JWT is sent as an Authorization header or access token cookie.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "Resource with id 'a1b2c3d4' not found or you do not have permission to access it.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "An unknown error occurred",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
curl -X POST "https://api.hyphen.ai/api/organizations/{organizationId}/integrations/test" \
-H "Content-Type: application/json" \
-d '{}'
const response = await fetch('https://api.hyphen.ai/api/organizations/{organizationId}/integrations/test', {
method: 'POST',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify({})
});
const data = await response.json();
import requests
response = requests.post(
'https://api.hyphen.ai/api/organizations/{organizationId}/integrations/test',
headers={
'Content-Type': 'application/json'
},
json={}
)
data = response.json()
| Name | Type | In | Description |
|---|---|---|---|
| organizationId * | string | path | The organization Id. |
{
"token": "string"
}
{
"tenants": [
{
"id": "string",
"name": "string"
}
],
"subscriptions": [
{
"id": "string",
"name": "string"
}
]
}
{
"message": "Unable to validate JWT. Please make sure a valid JWT is sent as an Authorization header or access token cookie.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "Resource with id 'a1b2c3d4' not found or you do not have permission to access it.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "An unknown error occurred",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
curl -X POST "https://api.hyphen.ai/api/organizations/{organizationId}/integrations/azure/context" \
-H "Content-Type: application/json" \
-d '{ "token": "string"}'
const response = await fetch('https://api.hyphen.ai/api/organizations/{organizationId}/integrations/azure/context', {
method: 'POST',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify({ "token": "string"})
});
const data = await response.json();
import requests
response = requests.post(
'https://api.hyphen.ai/api/organizations/{organizationId}/integrations/azure/context',
headers={
'Content-Type': 'application/json'
},
json={ "token": "string"}
)
data = response.json()
| Name | Type | In | Description |
|---|---|---|---|
| organizationId * | string | path | The organization Id. |
| integrationId * | string | path | The integration Id. |
{
"id": "string",
"provides": [
{
"connectionType": "DistributionList",
"for": [
"Organization"
]
}
]
}
{
"message": "Unable to validate JWT. Please make sure a valid JWT is sent as an Authorization header or access token cookie.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "Resource with id 'a1b2c3d4' not found or you do not have permission to access it.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "An unknown error occurred",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
curl -X GET "https://api.hyphen.ai/api/organizations/{organizationId}/integrations/{integrationId}/"
const response = await fetch('https://api.hyphen.ai/api/organizations/{organizationId}/integrations/{integrationId}/', {
method: 'GET'
});
const data = await response.json();
import requests
response = requests.get('https://api.hyphen.ai/api/organizations/{organizationId}/integrations/{integrationId}/')
data = response.json()
| Name | Type | In | Description |
|---|---|---|---|
| organizationId * | string | path | The organization Id. |
| integrationId * | string | path | The integration Id. |
{
"message": "Unable to validate JWT. Please make sure a valid JWT is sent as an Authorization header or access token cookie.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "Resource with id 'a1b2c3d4' not found or you do not have permission to access it.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "An unknown error occurred",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
curl -X DELETE "https://api.hyphen.ai/api/organizations/{organizationId}/integrations/{integrationId}/"
const response = await fetch('https://api.hyphen.ai/api/organizations/{organizationId}/integrations/{integrationId}/', {
method: 'DELETE'
});
const data = await response.json();
import requests
response = requests.delete('https://api.hyphen.ai/api/organizations/{organizationId}/integrations/{integrationId}/')
data = response.json()
| Name | Type | In | Description |
|---|---|---|---|
| organizationId * | string | path | The organization Id. |
| integrationId * | string | path | The integration Id. |
| idempotency-key * | string | header |
{
"capabilityId": "identity.principals",
"pageSize": 0,
"pageCursor": "string",
"principalProperty": "string"
}
{
"operationId": "string",
"status": "pending",
"expiresAt": "string",
"provenance": {
"collectionId": "string",
"capabilityId": "identity.principals",
"integrationType": "string",
"targetId": "string"
},
"result": {
"data": [
null
],
"pageSize": 0,
"nextPageCursor": "string"
},
"unavailableReason": "unsupported"
}
{
"message": "Invalid request body or query parameters",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "Unable to validate JWT. Please make sure a valid JWT is sent as an Authorization header or access token cookie.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "Resource with id 'a1b2c3d4' not found or you do not have permission to access it.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "The resource could not be created because of a conflict.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "An unknown error occurred",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
curl -X POST "https://api.hyphen.ai/api/organizations/{organizationId}/integrations/{integrationId}/evidence-pages/" \
-H "idempotency-key: {idempotency-key}" \
-H "Content-Type: application/json" \
-d '{ "capabilityId": "identity.principals", "pageSize": 0, "pageCursor": "string", "principalProperty": "string"}'
const response = await fetch('https://api.hyphen.ai/api/organizations/{organizationId}/integrations/{integrationId}/evidence-pages/', {
method: 'POST',
headers: {
'idempotency-key': '{idempotency-key}',
'Content-Type': 'application/json'
},
body: JSON.stringify({ "capabilityId": "identity.principals", "pageSize": 0, "pageCursor": "string", "principalProperty": "string"})
});
const data = await response.json();
import requests
response = requests.post(
'https://api.hyphen.ai/api/organizations/{organizationId}/integrations/{integrationId}/evidence-pages/',
headers={
'idempotency-key': '{idempotency-key}',
'Content-Type': 'application/json'
},
json={ "capabilityId": "identity.principals", "pageSize": 0, "pageCursor": "string", "principalProperty": "string"}
)
data = response.json()
| Name | Type | In | Description |
|---|---|---|---|
| organizationId * | string | path | The organization Id. |
| integrationId * | string | path | The integration Id. |
| operationId * | string | path |
{
"operationId": "string",
"status": "pending",
"expiresAt": "string",
"provenance": {
"collectionId": "string",
"capabilityId": "identity.principals",
"integrationType": "string",
"targetId": "string"
},
"result": {
"data": [
null
],
"pageSize": 0,
"nextPageCursor": "string"
},
"unavailableReason": "unsupported"
}
{
"message": "Invalid request body or query parameters",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "Unable to validate JWT. Please make sure a valid JWT is sent as an Authorization header or access token cookie.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "Resource with id 'a1b2c3d4' not found or you do not have permission to access it.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "The resource could not be created because of a conflict.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "An unknown error occurred",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
curl -X GET "https://api.hyphen.ai/api/organizations/{organizationId}/integrations/{integrationId}/evidence-pages/{operationId}"
const response = await fetch('https://api.hyphen.ai/api/organizations/{organizationId}/integrations/{integrationId}/evidence-pages/{operationId}', {
method: 'GET'
});
const data = await response.json();
import requests
response = requests.get('https://api.hyphen.ai/api/organizations/{organizationId}/integrations/{integrationId}/evidence-pages/{operationId}')
data = response.json()
| Name | Type | In | Description |
|---|---|---|---|
| organizationId * | string | path | The organization Id. |
| integrationId * | string | path | The integration Id. |
{
"type": "DistributionList",
"parentId": "string",
"resources": [
{
"id": "string",
"key": "value"
}
]
}
{
"status": "string"
}
{
"message": "Unable to validate JWT. Please make sure a valid JWT is sent as an Authorization header or access token cookie.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "Resource with id 'a1b2c3d4' not found or you do not have permission to access it.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "An unknown error occurred",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
curl -X POST "https://api.hyphen.ai/api/organizations/{organizationId}/integrations/{integrationId}/import/" \
-H "Content-Type: application/json" \
-d '{ "type": "DistributionList", "parentId": "string", "resources": [ { "id": "string", "key": "value" } ]}'
const response = await fetch('https://api.hyphen.ai/api/organizations/{organizationId}/integrations/{integrationId}/import/', {
method: 'POST',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify({ "type": "DistributionList", "parentId": "string", "resources": [ { "id": "string", "key": "value" } ]})
});
const data = await response.json();
import requests
response = requests.post(
'https://api.hyphen.ai/api/organizations/{organizationId}/integrations/{integrationId}/import/',
headers={
'Content-Type': 'application/json'
},
json={ "type": "DistributionList", "parentId": "string", "resources": [ { "id": "string", "key": "value" } ]}
)
data = response.json()
| Name | Type | In | Description |
|---|---|---|---|
| type * | string | query | The connection type to list resources for. |
| parentId | string | query | Optional parent provider resource identifier (e.g., zoneId for DNSRecord). |
| organizationId * | string | path | The organization Id. |
| integrationId * | string | path | The integration Id. |
{
"data": [
{
"id": "string",
"name": "string"
}
]
}
{
"message": "Unable to validate JWT. Please make sure a valid JWT is sent as an Authorization header or access token cookie.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "Resource with id 'a1b2c3d4' not found or you do not have permission to access it.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "An unknown error occurred",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
curl -X GET "https://api.hyphen.ai/api/organizations/{organizationId}/integrations/{integrationId}/resources/?type={type}&parentId={parentId}"
const response = await fetch('https://api.hyphen.ai/api/organizations/{organizationId}/integrations/{integrationId}/resources/?type={type}&parentId={parentId}', {
method: 'GET'
});
const data = await response.json();
import requests
response = requests.get(
'https://api.hyphen.ai/api/organizations/{organizationId}/integrations/{integrationId}/resources/',
params={
'type': '{type}',
'parentId': '{parentId}'
}
)
data = response.json()
Integration Connections
| Name | Type | In | Description |
|---|---|---|---|
| projectIds | array(string) | query | The project Ids. |
| integrationIds | array(string) | query | The integration Ids. |
| integrationTypes | array(string) | query | The integration types. |
| entityIds | array(string) | query | The entity Ids. |
| types | array(string) | query | The connection types. |
| connectionIds | array(string) | query | The connection Ids. |
| pageNum | integer | query | The page number. |
| pageSize | integer | query | The page size. |
| organizationId * | string | path | The organization Id. |
{
"data": [
{
"id": "string",
"status": "Pending",
"type": "DistributionList",
"entity": {
"type": "Organization",
"id": "string",
"name": "string"
},
"organizationIntegration": {
"id": "string",
"type": "hyphenCloud"
},
"config": {
"key": "value"
},
"organization": {
"id": "string",
"name": "string"
},
"project": {
"id": "string",
"alternateId": "string",
"name": "string"
},
"errors": [
null
],
"input": "string",
"verification": {
"emails": [
"string"
]
},
"isRetryable": true
}
],
"total": 0,
"pageNum": 0,
"pageSize": 0
}
{
"message": "Unable to validate JWT. Please make sure a valid JWT is sent as an Authorization header or access token cookie.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "Resource with id 'a1b2c3d4' not found or you do not have permission to access it.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "An unknown error occurred",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
curl -X GET "https://api.hyphen.ai/api/organizations/{organizationId}/integrations/connections?projectIds={projectIds}&integrationIds={integrationIds}&integrationTypes={integrationTypes}&entityIds={entityIds}&types={types}&connectionIds={connectionIds}&pageNum={pageNum}&pageSize={pageSize}"
const response = await fetch('https://api.hyphen.ai/api/organizations/{organizationId}/integrations/connections?projectIds={projectIds}&integrationIds={integrationIds}&integrationTypes={integrationTypes}&entityIds={entityIds}&types={types}&connectionIds={connectionIds}&pageNum={pageNum}&pageSize={pageSize}', {
method: 'GET'
});
const data = await response.json();
import requests
response = requests.get(
'https://api.hyphen.ai/api/organizations/{organizationId}/integrations/connections',
params={
'projectIds': '{projectIds}',
'integrationIds': '{integrationIds}',
'integrationTypes': '{integrationTypes}',
'entityIds': '{entityIds}',
'types': '{types}',
'connectionIds': '{connectionIds}',
'pageNum': '{pageNum}',
'pageSize': '{pageSize}'
}
)
data = response.json()
| Name | Type | In | Description |
|---|---|---|---|
| entityConnectionIds | array(string) | query | The entity connection Ids. |
| assignmentConnectionIds | array(string) | query | The assignment connection Ids. |
| entityIds | array(string) | query | The connection entity Ids. |
| assignmentIds | array(string) | query | The assignment entity Ids. |
| pageNum | integer | query | The page number. |
| pageSize | integer | query | The page size. |
| organizationId * | string | path | The organization Id. |
{
"data": [
{
"id": "string",
"status": "Pending",
"integrationType": "hyphenCloud",
"entityConnection": {
"id": "string",
"type": "User",
"entity": {
"type": "Organization",
"id": "string",
"name": "string"
}
},
"assignmentConnection": {
"id": "string",
"type": "User",
"entity": {
"type": "Member",
"id": "string",
"name": "string"
}
},
"config": {
"key": "value"
},
"organization": {
"id": "string",
"name": "string"
},
"errors": [
"string"
]
}
],
"total": 0,
"pageNum": 0,
"pageSize": 0
}
{
"message": "Unable to validate JWT. Please make sure a valid JWT is sent as an Authorization header or access token cookie.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "Resource with id 'a1b2c3d4' not found or you do not have permission to access it.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "An unknown error occurred",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
curl -X GET "https://api.hyphen.ai/api/organizations/{organizationId}/integrations/connections/access?entityConnectionIds={entityConnectionIds}&assignmentConnectionIds={assignmentConnectionIds}&entityIds={entityIds}&assignmentIds={assignmentIds}&pageNum={pageNum}&pageSize={pageSize}"
const response = await fetch('https://api.hyphen.ai/api/organizations/{organizationId}/integrations/connections/access?entityConnectionIds={entityConnectionIds}&assignmentConnectionIds={assignmentConnectionIds}&entityIds={entityIds}&assignmentIds={assignmentIds}&pageNum={pageNum}&pageSize={pageSize}', {
method: 'GET'
});
const data = await response.json();
import requests
response = requests.get(
'https://api.hyphen.ai/api/organizations/{organizationId}/integrations/connections/access',
params={
'entityConnectionIds': '{entityConnectionIds}',
'assignmentConnectionIds': '{assignmentConnectionIds}',
'entityIds': '{entityIds}',
'assignmentIds': '{assignmentIds}',
'pageNum': '{pageNum}',
'pageSize': '{pageSize}'
}
)
data = response.json()
| Name | Type | In | Description |
|---|---|---|---|
| organizationId * | string | path | The organization Id. |
| integrationId * | string | path | The integration Id. |
{
"type": "DistributionList",
"entity": {
"id": "string"
},
"input": "string",
"config": {
"key": "value"
}
}
{
"id": "string",
"status": "Pending",
"type": "DistributionList",
"entity": {
"type": "Organization",
"id": "string",
"name": "string"
},
"organizationIntegration": {
"id": "string",
"type": "hyphenCloud"
},
"config": {
"key": "value"
},
"organization": {
"id": "string",
"name": "string"
},
"project": {
"id": "string",
"alternateId": "string",
"name": "string"
},
"errors": [
null
],
"input": "string",
"verification": {
"emails": [
"string"
]
},
"isRetryable": true
}
{
"message": "Unable to validate JWT. Please make sure a valid JWT is sent as an Authorization header or access token cookie.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "Resource with id 'a1b2c3d4' not found or you do not have permission to access it.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "An unknown error occurred",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
curl -X POST "https://api.hyphen.ai/api/organizations/{organizationId}/integrations/{integrationId}/connections/" \
-H "Content-Type: application/json" \
-d '{ "type": "DistributionList", "entity": { "id": "string" }, "input": "string", "config": { "key": "value" }}'
const response = await fetch('https://api.hyphen.ai/api/organizations/{organizationId}/integrations/{integrationId}/connections/', {
method: 'POST',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify({ "type": "DistributionList", "entity": { "id": "string" }, "input": "string", "config": { "key": "value" }})
});
const data = await response.json();
import requests
response = requests.post(
'https://api.hyphen.ai/api/organizations/{organizationId}/integrations/{integrationId}/connections/',
headers={
'Content-Type': 'application/json'
},
json={ "type": "DistributionList", "entity": { "id": "string" }, "input": "string", "config": { "key": "value" }}
)
data = response.json()
| Name | Type | In | Description |
|---|---|---|---|
| organizationId * | string | path | The organization Id. |
| integrationId * | string | path | The integration Id. |
| connectionId * | string | path | The integration connection Id. |
{
"id": "string",
"status": "Pending",
"type": "DistributionList",
"entity": {
"type": "Organization",
"id": "string",
"name": "string"
},
"organizationIntegration": {
"id": "string",
"type": "hyphenCloud"
},
"config": {
"key": "value"
},
"organization": {
"id": "string",
"name": "string"
},
"project": {
"id": "string",
"alternateId": "string",
"name": "string"
},
"errors": [
null
],
"input": "string",
"verification": {
"emails": [
"string"
]
},
"isRetryable": true
}
{
"message": "Unable to validate JWT. Please make sure a valid JWT is sent as an Authorization header or access token cookie.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "Resource with id 'a1b2c3d4' not found or you do not have permission to access it.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "An unknown error occurred",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
curl -X GET "https://api.hyphen.ai/api/organizations/{organizationId}/integrations/{integrationId}/connections/{connectionId}/"
const response = await fetch('https://api.hyphen.ai/api/organizations/{organizationId}/integrations/{integrationId}/connections/{connectionId}/', {
method: 'GET'
});
const data = await response.json();
import requests
response = requests.get('https://api.hyphen.ai/api/organizations/{organizationId}/integrations/{integrationId}/connections/{connectionId}/')
data = response.json()
| Name | Type | In | Description |
|---|---|---|---|
| type | object | query | |
| additionalProperties | unknown | query | |
| organizationId * | string | path | The organization Id. |
| integrationId * | string | path | The integration Id. |
| connectionId * | string | path | The integration connection Id. |
{
"message": "Unable to validate JWT. Please make sure a valid JWT is sent as an Authorization header or access token cookie.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "Resource with id 'a1b2c3d4' not found or you do not have permission to access it.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "An unknown error occurred",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
curl -X DELETE "https://api.hyphen.ai/api/organizations/{organizationId}/integrations/{integrationId}/connections/{connectionId}/?type={type}&additionalProperties={additionalProperties}"
const response = await fetch('https://api.hyphen.ai/api/organizations/{organizationId}/integrations/{integrationId}/connections/{connectionId}/?type={type}&additionalProperties={additionalProperties}', {
method: 'DELETE'
});
const data = await response.json();
import requests
response = requests.delete(
'https://api.hyphen.ai/api/organizations/{organizationId}/integrations/{integrationId}/connections/{connectionId}/',
params={
'type': '{type}',
'additionalProperties': '{additionalProperties}'
}
)
data = response.json()
| Name | Type | In | Description |
|---|---|---|---|
| environmentId * | string | query | |
| organizationId * | string | path | The organization Id. |
| integrationId * | string | path | The integration Id. |
| connectionId * | string | path | The integration connection Id. |
{
"status": "available",
"timeRange": {
"start": "string",
"end": "string"
},
"logs": [
{
"timestamp": "string",
"message": "string",
"severity": "string",
"stream": "string"
}
],
"error": "string",
"truncated": true,
"redacted": true
}
{
"message": "Unable to validate JWT. Please make sure a valid JWT is sent as an Authorization header or access token cookie.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "Resource with id 'a1b2c3d4' not found or you do not have permission to access it.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "An unknown error occurred",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
curl -X GET "https://api.hyphen.ai/api/organizations/{organizationId}/integrations/{integrationId}/connections/{connectionId}/origin-logs?environmentId={environmentId}"
const response = await fetch('https://api.hyphen.ai/api/organizations/{organizationId}/integrations/{integrationId}/connections/{connectionId}/origin-logs?environmentId={environmentId}', {
method: 'GET'
});
const data = await response.json();
import requests
response = requests.get(
'https://api.hyphen.ai/api/organizations/{organizationId}/integrations/{integrationId}/connections/{connectionId}/origin-logs',
params={
'environmentId': '{environmentId}'
}
)
data = response.json()
| Name | Type | In | Description |
|---|---|---|---|
| organizationId * | string | path | The organization Id. |
| integrationId * | string | path | The integration Id. |
| connectionId * | string | path | The integration connection Id. |
{
"code": "string"
}
{
"message": "Unable to validate JWT. Please make sure a valid JWT is sent as an Authorization header or access token cookie.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "Resource with id 'a1b2c3d4' not found or you do not have permission to access it.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "An unknown error occurred",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
curl -X POST "https://api.hyphen.ai/api/organizations/{organizationId}/integrations/{integrationId}/connections/{connectionId}/verify" \
-H "Content-Type: application/json" \
-d '{ "code": "string"}'
const response = await fetch('https://api.hyphen.ai/api/organizations/{organizationId}/integrations/{integrationId}/connections/{connectionId}/verify', {
method: 'POST',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify({ "code": "string"})
});
const data = await response.json();
import requests
response = requests.post(
'https://api.hyphen.ai/api/organizations/{organizationId}/integrations/{integrationId}/connections/{connectionId}/verify',
headers={
'Content-Type': 'application/json'
},
json={ "code": "string"}
)
data = response.json()
URL Codes
| Name | Type | In | Description |
|---|---|---|---|
| pageNum | integer | query | The page number. |
| pageSize | integer | query | The page size. |
| search | string | query | Search keyword across code, long_url and title. |
| tags | string | query | The tags. |
| organizationId * | string | path | The organization Id. |
{
"total": 0,
"pageNum": 0,
"pageSize": 0,
"data": [
{
"id": "code_668c0caa4d43eac7e6570254",
"code": "code",
"long_url": "https://hyphen.ai/page1",
"domain": "example.com",
"title": "My Short Link",
"tags": [
"Tag 1",
"Tag 2"
],
"meta": {
"createdAt": "2025-01-14T22:56:14.234Z",
"createdBy": "memb_66f30abb67ebc6bb0c5e0af9"
},
"organization": {
"id": "org_66bf99b72a0043f841769880",
"name": "My Org"
}
}
]
}
{
"message": "Unable to validate JWT. Please make sure a valid JWT is sent as an Authorization header or access token cookie.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "An unknown error occurred",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
curl -X GET "https://api.hyphen.ai/api/organizations/{organizationId}/link/codes/?pageNum={pageNum}&pageSize={pageSize}&search={search}&tags={tags}"
const response = await fetch('https://api.hyphen.ai/api/organizations/{organizationId}/link/codes/?pageNum={pageNum}&pageSize={pageSize}&search={search}&tags={tags}', {
method: 'GET'
});
const data = await response.json();
import requests
response = requests.get(
'https://api.hyphen.ai/api/organizations/{organizationId}/link/codes/',
params={
'pageNum': '{pageNum}',
'pageSize': '{pageSize}',
'search': '{search}',
'tags': '{tags}'
}
)
data = response.json()
| Name | Type | In | Description |
|---|---|---|---|
| organizationId * | string | path | The organization Id. |
{
"long_url": "https://hyphen.ai/page1",
"domain": "example.com",
"code": "L4IQHdh4",
"title": "The short link title",
"tags": [
"Tag 1"
]
}
{
"id": "code_668c0caa4d43eac7e6570254",
"code": "code",
"long_url": "https://hyphen.ai/page1",
"domain": "example.com",
"title": "My Short Link",
"tags": [
"Tag 1",
"Tag 2"
],
"meta": {
"createdAt": "2025-01-14T22:56:14.234Z",
"createdBy": "memb_66f30abb67ebc6bb0c5e0af9"
},
"organization": {
"id": "org_66bf99b72a0043f841769880",
"name": "My Org"
}
}
{
"message": "Invalid request body or query parameters",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "Unable to validate JWT. Please make sure a valid JWT is sent as an Authorization header or access token cookie.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "The resource could not be created because of a conflict.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "An unknown error occurred",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
curl -X POST "https://api.hyphen.ai/api/organizations/{organizationId}/link/codes/" \
-H "Content-Type: application/json" \
-d '{ "long_url": "https://hyphen.ai/page1", "domain": "example.com", "code": "L4IQHdh4", "title": "The short link title", "tags": [ "Tag 1" ]}'
const response = await fetch('https://api.hyphen.ai/api/organizations/{organizationId}/link/codes/', {
method: 'POST',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify({ "long_url": "https://hyphen.ai/page1", "domain": "example.com", "code": "L4IQHdh4", "title": "The short link title", "tags": [ "Tag 1" ]})
});
const data = await response.json();
import requests
response = requests.post(
'https://api.hyphen.ai/api/organizations/{organizationId}/link/codes/',
headers={
'Content-Type': 'application/json'
},
json={ "long_url": "https://hyphen.ai/page1", "domain": "example.com", "code": "L4IQHdh4", "title": "The short link title", "tags": [ "Tag 1" ]}
)
data = response.json()
| Name | Type | In | Description |
|---|---|---|---|
| organizationId * | string | path | The organization Id. |
[
"Tag 1"
]
{
"message": "Unable to validate JWT. Please make sure a valid JWT is sent as an Authorization header or access token cookie.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "An unknown error occurred",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
curl -X GET "https://api.hyphen.ai/api/organizations/{organizationId}/link/codes/tags"
const response = await fetch('https://api.hyphen.ai/api/organizations/{organizationId}/link/codes/tags', {
method: 'GET'
});
const data = await response.json();
import requests
response = requests.get('https://api.hyphen.ai/api/organizations/{organizationId}/link/codes/tags')
data = response.json()
| Name | Type | In | Description |
|---|---|---|---|
| organizationId * | string | path | The organization Id. |
| codeId * | string | path | The short link id |
{
"id": "code_668c0caa4d43eac7e6570254",
"code": "code",
"long_url": "https://hyphen.ai/page1",
"domain": "example.com",
"title": "My Short Link",
"tags": [
"Tag 1",
"Tag 2"
],
"meta": {
"createdAt": "2025-01-14T22:56:14.234Z",
"createdBy": "memb_66f30abb67ebc6bb0c5e0af9"
},
"organization": {
"id": "org_66bf99b72a0043f841769880",
"name": "My Org"
}
}
{
"message": "Unable to validate JWT. Please make sure a valid JWT is sent as an Authorization header or access token cookie.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "Resource with id 'a1b2c3d4' not found or you do not have permission to access it.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "An unknown error occurred",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
curl -X GET "https://api.hyphen.ai/api/organizations/{organizationId}/link/codes/{codeId}/"
const response = await fetch('https://api.hyphen.ai/api/organizations/{organizationId}/link/codes/{codeId}/', {
method: 'GET'
});
const data = await response.json();
import requests
response = requests.get('https://api.hyphen.ai/api/organizations/{organizationId}/link/codes/{codeId}/')
data = response.json()
| Name | Type | In | Description |
|---|---|---|---|
| organizationId * | string | path | The organization Id. |
| codeId * | string | path | The short link id |
{
"message": "Unable to validate JWT. Please make sure a valid JWT is sent as an Authorization header or access token cookie.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "An unknown error occurred",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
curl -X DELETE "https://api.hyphen.ai/api/organizations/{organizationId}/link/codes/{codeId}/"
const response = await fetch('https://api.hyphen.ai/api/organizations/{organizationId}/link/codes/{codeId}/', {
method: 'DELETE'
});
const data = await response.json();
import requests
response = requests.delete('https://api.hyphen.ai/api/organizations/{organizationId}/link/codes/{codeId}/')
data = response.json()
| Name | Type | In | Description |
|---|---|---|---|
| organizationId * | string | path | The organization Id. |
| codeId * | string | path | The short link id |
{
"long_url": "https://hyphen.ai/page1",
"title": "The short link title",
"tags": [
"Tag 1"
]
}
{
"id": "code_668c0caa4d43eac7e6570254",
"code": "code",
"long_url": "https://hyphen.ai/page1",
"domain": "example.com",
"title": "My Short Link",
"tags": [
"Tag 1",
"Tag 2"
],
"meta": {
"createdAt": "2025-01-14T22:56:14.234Z",
"createdBy": "memb_66f30abb67ebc6bb0c5e0af9"
},
"organization": {
"id": "org_66bf99b72a0043f841769880",
"name": "My Org"
}
}
{
"message": "Invalid request body or query parameters",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "Unable to validate JWT. Please make sure a valid JWT is sent as an Authorization header or access token cookie.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "An unknown error occurred",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
curl -X PATCH "https://api.hyphen.ai/api/organizations/{organizationId}/link/codes/{codeId}/" \
-H "Content-Type: application/json" \
-d '{ "long_url": "https://hyphen.ai/page1", "title": "The short link title", "tags": [ "Tag 1" ]}'
const response = await fetch('https://api.hyphen.ai/api/organizations/{organizationId}/link/codes/{codeId}/', {
method: 'PATCH',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify({ "long_url": "https://hyphen.ai/page1", "title": "The short link title", "tags": [ "Tag 1" ]})
});
const data = await response.json();
import requests
response = requests.patch(
'https://api.hyphen.ai/api/organizations/{organizationId}/link/codes/{codeId}/',
headers={
'Content-Type': 'application/json'
},
json={ "long_url": "https://hyphen.ai/page1", "title": "The short link title", "tags": [ "Tag 1" ]}
)
data = response.json()
| Name | Type | In | Description |
|---|---|---|---|
| startDate * | string (date-time) | query | |
| endDate * | string (date-time) | query | |
| organizationId * | string | path | The organization Id. |
| codeId * | string | path | The short link id |
{
"clicks": {
"total": 100,
"unique": 50,
"byDay": [
{
"date": "2021-01-01",
"total": 10,
"unique": 5
}
]
},
"referrals": [
{
"url": "https://example.com",
"total": 10
}
],
"browsers": [
{
"name": "Chrome",
"total": 50
}
],
"devices": [
{
"name": "Desktop",
"total": 50
}
],
"locations": [
{
"country": "US",
"total": 50,
"unique": 25
}
]
}
{
"message": "Unable to validate JWT. Please make sure a valid JWT is sent as an Authorization header or access token cookie.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "Resource with id 'a1b2c3d4' not found or you do not have permission to access it.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "An unknown error occurred",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
curl -X GET "https://api.hyphen.ai/api/organizations/{organizationId}/link/codes/{codeId}/stats?startDate={startDate}&endDate={endDate}"
const response = await fetch('https://api.hyphen.ai/api/organizations/{organizationId}/link/codes/{codeId}/stats?startDate={startDate}&endDate={endDate}', {
method: 'GET'
});
const data = await response.json();
import requests
response = requests.get(
'https://api.hyphen.ai/api/organizations/{organizationId}/link/codes/{codeId}/stats',
params={
'startDate': '{startDate}',
'endDate': '{endDate}'
}
)
data = response.json()
QR Codes
| Name | Type | In | Description |
|---|---|---|---|
| pageNum | integer | query | The page number. |
| pageSize | integer | query | The page size. |
| organizationId * | string | path | The organization Id. |
| codeId * | string | path | The short link id |
{
"total": 0,
"pageNum": 0,
"pageSize": 0,
"data": [
{
"id": "lqr_66fc51fe144cf3a1bd2a35b1",
"title": "My QR Code",
"qrCode": "data:image/png;base64,iVBORw0KGgoA...",
"qrLink": "https://example.com/qr/lqr_66fc51fe144cf3a1bd2a35b1"
}
]
}
{
"message": "Unable to validate JWT. Please make sure a valid JWT is sent as an Authorization header or access token cookie.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "Resource with id 'a1b2c3d4' not found or you do not have permission to access it.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "An unknown error occurred",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
curl -X GET "https://api.hyphen.ai/api/organizations/{organizationId}/link/codes/{codeId}/qrs/?pageNum={pageNum}&pageSize={pageSize}"
const response = await fetch('https://api.hyphen.ai/api/organizations/{organizationId}/link/codes/{codeId}/qrs/?pageNum={pageNum}&pageSize={pageSize}', {
method: 'GET'
});
const data = await response.json();
import requests
response = requests.get(
'https://api.hyphen.ai/api/organizations/{organizationId}/link/codes/{codeId}/qrs/',
params={
'pageNum': '{pageNum}',
'pageSize': '{pageSize}'
}
)
data = response.json()
| Name | Type | In | Description |
|---|---|---|---|
| organizationId * | string | path | The organization Id. |
| codeId * | string | path | The short link id |
{
"title": "My QR Code",
"backgroundColor": "#FFFFFF",
"color": "#000000",
"size": "small",
"logo": "string"
}
{
"id": "lqr_66fc51fe144cf3a1bd2a35b1",
"title": "My QR Code",
"qrCode": "data:image/png;base64,iVBORw0KGgoA...",
"qrLink": "https://example.com/qr/lqr_66fc51fe144cf3a1bd2a35b1"
}
{
"message": "Unable to validate JWT. Please make sure a valid JWT is sent as an Authorization header or access token cookie.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "Resource with id 'a1b2c3d4' not found or you do not have permission to access it.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "An unknown error occurred",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
curl -X POST "https://api.hyphen.ai/api/organizations/{organizationId}/link/codes/{codeId}/qrs/" \
-H "Content-Type: multipart/form-data" \
-d '{ "title": "My QR Code", "backgroundColor": "#FFFFFF", "color": "#000000", "size": "small", "logo": "string"}'
const response = await fetch('https://api.hyphen.ai/api/organizations/{organizationId}/link/codes/{codeId}/qrs/', {
method: 'POST',
headers: {
'Content-Type': 'multipart/form-data'
},
body: JSON.stringify({ "title": "My QR Code", "backgroundColor": "#FFFFFF", "color": "#000000", "size": "small", "logo": "string"})
});
const data = await response.json();
import requests
response = requests.post(
'https://api.hyphen.ai/api/organizations/{organizationId}/link/codes/{codeId}/qrs/',
headers={
'Content-Type': 'multipart/form-data'
},
json={ "title": "My QR Code", "backgroundColor": "#FFFFFF", "color": "#000000", "size": "small", "logo": "string"}
)
data = response.json()
| Name | Type | In | Description |
|---|---|---|---|
| organizationId * | string | path | The organization Id. |
| codeId * | string | path | The short link id |
| qrId * | string | path | The QR code id |
{
"id": "lqr_66fc51fe144cf3a1bd2a35b1",
"title": "My QR Code",
"qrCode": "data:image/png;base64,iVBORw0KGgoA...",
"qrLink": "https://example.com/qr/lqr_66fc51fe144cf3a1bd2a35b1"
}
{
"message": "Unable to validate JWT. Please make sure a valid JWT is sent as an Authorization header or access token cookie.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "Resource with id 'a1b2c3d4' not found or you do not have permission to access it.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "An unknown error occurred",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
curl -X GET "https://api.hyphen.ai/api/organizations/{organizationId}/link/codes/{codeId}/qrs/{qrId}"
const response = await fetch('https://api.hyphen.ai/api/organizations/{organizationId}/link/codes/{codeId}/qrs/{qrId}', {
method: 'GET'
});
const data = await response.json();
import requests
response = requests.get('https://api.hyphen.ai/api/organizations/{organizationId}/link/codes/{codeId}/qrs/{qrId}')
data = response.json()
| Name | Type | In | Description |
|---|---|---|---|
| organizationId * | string | path | The organization Id. |
| codeId * | string | path | The short link id |
| qrId * | string | path | The QR code id |
{
"message": "Unable to validate JWT. Please make sure a valid JWT is sent as an Authorization header or access token cookie.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "Resource with id 'a1b2c3d4' not found or you do not have permission to access it.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "An unknown error occurred",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
curl -X DELETE "https://api.hyphen.ai/api/organizations/{organizationId}/link/codes/{codeId}/qrs/{qrId}"
const response = await fetch('https://api.hyphen.ai/api/organizations/{organizationId}/link/codes/{codeId}/qrs/{qrId}', {
method: 'DELETE'
});
const data = await response.json();
import requests
response = requests.delete('https://api.hyphen.ai/api/organizations/{organizationId}/link/codes/{codeId}/qrs/{qrId}')
data = response.json()
Members
| Name | Type | In | Description |
|---|---|---|---|
| pageNum | integer | query | The page number. |
| pageSize | integer | query | The page size. |
| search | string | query | Search by name or email |
| includeApiKeys | boolean | query | Include API keys Members. |
| includeOrganizationRoles | boolean | query | Include organization roles for each member. |
| organizationId * | string | path | The organization Id. |
{
"total": 0,
"pageNum": 0,
"pageSize": 0,
"data": [
{
"id": "memb_66bf99b72a0043f841769880",
"firstName": "John",
"lastName": "Doe",
"nickname": "John Doe",
"email": "[email protected]",
"organization": {
"id": "org_66bf99b72a0043f841769880",
"name": "Organization Name"
},
"connectedAccounts": [
{
"type": "github",
"identifier": "hyphenated-username",
"profileUrl": "https://github.com/hyphenated-username"
},
{
"type": "npm",
"identifier": "npm-username",
"email": "[email protected]"
},
{
"type": "newRelic",
"identifier": "newrelic-userid",
"email": "[email protected]"
},
{
"type": "incidentIo",
"identifier": "incident-io-userid",
"email": "[email protected]"
}
]
}
]
}
{
"message": "Unable to validate JWT. Please make sure a valid JWT is sent as an Authorization header or access token cookie.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "Resource with id 'a1b2c3d4' not found or you do not have permission to access it.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "An unknown error occurred",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
curl -X GET "https://api.hyphen.ai/api/organizations/{organizationId}/members/?pageNum={pageNum}&pageSize={pageSize}&search={search}&includeApiKeys={includeApiKeys}&includeOrganizationRoles={includeOrganizationRoles}"
const response = await fetch('https://api.hyphen.ai/api/organizations/{organizationId}/members/?pageNum={pageNum}&pageSize={pageSize}&search={search}&includeApiKeys={includeApiKeys}&includeOrganizationRoles={includeOrganizationRoles}', {
method: 'GET'
});
const data = await response.json();
import requests
response = requests.get(
'https://api.hyphen.ai/api/organizations/{organizationId}/members/',
params={
'pageNum': '{pageNum}',
'pageSize': '{pageSize}',
'search': '{search}',
'includeApiKeys': '{includeApiKeys}',
'includeOrganizationRoles': '{includeOrganizationRoles}'
}
)
data = response.json()
| Name | Type | In | Description |
|---|---|---|---|
| organizationId * | string | path | The organization Id. |
{
"firstName": "John",
"lastName": "Doe",
"email": "[email protected]"
}
{
"id": "memb_66bf99b72a0043f841769880",
"firstName": "John",
"lastName": "Doe",
"nickname": "John Doe",
"email": "[email protected]",
"organization": {
"id": "org_66bf99b72a0043f841769880",
"name": "Organization Name"
},
"connectedAccounts": [
{
"type": "github",
"identifier": "hyphenated-username",
"profileUrl": "https://github.com/hyphenated-username"
},
{
"type": "npm",
"identifier": "npm-username",
"email": "[email protected]"
},
{
"type": "newRelic",
"identifier": "newrelic-userid",
"email": "[email protected]"
},
{
"type": "incidentIo",
"identifier": "incident-io-userid",
"email": "[email protected]"
}
]
}
{
"message": "Unable to validate JWT. Please make sure a valid JWT is sent as an Authorization header or access token cookie.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "The resource could not be created because you do not have permission to create it.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "Resource with id 'a1b2c3d4' not found or you do not have permission to access it.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "An unknown error occurred",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
curl -X POST "https://api.hyphen.ai/api/organizations/{organizationId}/members/" \
-H "Content-Type: application/json" \
-d '{ "firstName": "John", "lastName": "Doe", "email": "[email protected]"}'
const response = await fetch('https://api.hyphen.ai/api/organizations/{organizationId}/members/', {
method: 'POST',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify({ "firstName": "John", "lastName": "Doe", "email": "[email protected]"})
});
const data = await response.json();
import requests
response = requests.post(
'https://api.hyphen.ai/api/organizations/{organizationId}/members/',
headers={
'Content-Type': 'application/json'
},
json={ "firstName": "John", "lastName": "Doe", "email": "[email protected]"}
)
data = response.json()
| Name | Type | In | Description |
|---|---|---|---|
| includeOrganizationRoles | boolean | query | Include organization roles for the member. |
| organizationId * | string | path | The organization Id. |
| memberId * | string | path | The member Id. |
{
"id": "memb_66bf99b72a0043f841769880",
"firstName": "John",
"lastName": "Doe",
"nickname": "John Doe",
"email": "[email protected]",
"organization": {
"id": "org_66bf99b72a0043f841769880",
"name": "Organization Name"
},
"connectedAccounts": [
{
"type": "github",
"identifier": "hyphenated-username",
"profileUrl": "https://github.com/hyphenated-username"
},
{
"type": "npm",
"identifier": "npm-username",
"email": "[email protected]"
},
{
"type": "newRelic",
"identifier": "newrelic-userid",
"email": "[email protected]"
},
{
"type": "incidentIo",
"identifier": "incident-io-userid",
"email": "[email protected]"
}
]
}
{
"message": "Unable to validate JWT. Please make sure a valid JWT is sent as an Authorization header or access token cookie.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "Resource with id 'a1b2c3d4' not found or you do not have permission to access it.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "An unknown error occurred",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
curl -X GET "https://api.hyphen.ai/api/organizations/{organizationId}/members/{memberId}/?includeOrganizationRoles={includeOrganizationRoles}"
const response = await fetch('https://api.hyphen.ai/api/organizations/{organizationId}/members/{memberId}/?includeOrganizationRoles={includeOrganizationRoles}', {
method: 'GET'
});
const data = await response.json();
import requests
response = requests.get(
'https://api.hyphen.ai/api/organizations/{organizationId}/members/{memberId}/',
params={
'includeOrganizationRoles': '{includeOrganizationRoles}'
}
)
data = response.json()
| Name | Type | In | Description |
|---|---|---|---|
| organizationId * | string | path | The organization Id. |
| memberId * | string | path | The member Id. |
{
"message": "Unable to validate JWT. Please make sure a valid JWT is sent as an Authorization header or access token cookie.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "Resource with id 'a1b2c3d4' not found or you do not have permission to access it.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "An unknown error occurred",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
curl -X DELETE "https://api.hyphen.ai/api/organizations/{organizationId}/members/{memberId}/"
const response = await fetch('https://api.hyphen.ai/api/organizations/{organizationId}/members/{memberId}/', {
method: 'DELETE'
});
const data = await response.json();
import requests
response = requests.delete('https://api.hyphen.ai/api/organizations/{organizationId}/members/{memberId}/')
data = response.json()
| Name | Type | In | Description |
|---|---|---|---|
| organizationId * | string | path | The organization Id. |
| memberId * | string | path | The member Id. |
{
"firstName": "John"
}
{
"id": "memb_66bf99b72a0043f841769880",
"firstName": "John",
"lastName": "Doe",
"nickname": "John Doe",
"email": "[email protected]",
"organization": {
"id": "org_66bf99b72a0043f841769880",
"name": "Organization Name"
},
"connectedAccounts": [
{
"type": "github",
"identifier": "hyphenated-username",
"profileUrl": "https://github.com/hyphenated-username"
},
{
"type": "npm",
"identifier": "npm-username",
"email": "[email protected]"
},
{
"type": "newRelic",
"identifier": "newrelic-userid",
"email": "[email protected]"
},
{
"type": "incidentIo",
"identifier": "incident-io-userid",
"email": "[email protected]"
}
]
}
{
"message": "Unable to validate JWT. Please make sure a valid JWT is sent as an Authorization header or access token cookie.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "Resource with id 'a1b2c3d4' not found or you do not have permission to access it.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "An unknown error occurred",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
curl -X PATCH "https://api.hyphen.ai/api/organizations/{organizationId}/members/{memberId}/" \
-H "Content-Type: application/json" \
-d '{ "firstName": "John"}'
const response = await fetch('https://api.hyphen.ai/api/organizations/{organizationId}/members/{memberId}/', {
method: 'PATCH',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify({ "firstName": "John"})
});
const data = await response.json();
import requests
response = requests.patch(
'https://api.hyphen.ai/api/organizations/{organizationId}/members/{memberId}/',
headers={
'Content-Type': 'application/json'
},
json={ "firstName": "John"}
)
data = response.json()
| Name | Type | In | Description |
|---|---|---|---|
| organizationId * | string | path | The organization Id. |
| memberId * | string | path | The member Id. |
{
"id": "team_123"
}
{
"favorites": [
null
]
}
{
"message": "Unable to validate JWT. Please make sure a valid JWT is sent as an Authorization header or access token cookie.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "Resource with id 'a1b2c3d4' not found or you do not have permission to access it.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "An unknown error occurred",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
curl -X POST "https://api.hyphen.ai/api/organizations/{organizationId}/members/{memberId}/favorites" \
-H "Content-Type: application/json" \
-d '{ "id": "team_123"}'
const response = await fetch('https://api.hyphen.ai/api/organizations/{organizationId}/members/{memberId}/favorites', {
method: 'POST',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify({ "id": "team_123"})
});
const data = await response.json();
import requests
response = requests.post(
'https://api.hyphen.ai/api/organizations/{organizationId}/members/{memberId}/favorites',
headers={
'Content-Type': 'application/json'
},
json={ "id": "team_123"}
)
data = response.json()
| Name | Type | In | Description |
|---|---|---|---|
| organizationId * | string | path | The organization Id. |
| memberId * | string | path | The member Id. |
| favoriteId * | oneOf | path | The favorite to delete for the member. |
{
"message": "Unable to validate JWT. Please make sure a valid JWT is sent as an Authorization header or access token cookie.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "Resource with id 'a1b2c3d4' not found or you do not have permission to access it.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "An unknown error occurred",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
curl -X DELETE "https://api.hyphen.ai/api/organizations/{organizationId}/members/{memberId}/favorites/{favoriteId}"
const response = await fetch('https://api.hyphen.ai/api/organizations/{organizationId}/members/{memberId}/favorites/{favoriteId}', {
method: 'DELETE'
});
const data = await response.json();
import requests
response = requests.delete('https://api.hyphen.ai/api/organizations/{organizationId}/members/{memberId}/favorites/{favoriteId}')
data = response.json()
| Name | Type | In | Description |
|---|---|---|---|
| organizationId * | string | path | The organization Id. |
| memberId * | string | path | The member Id. |
| favoriteId * | oneOf | path | The favorite to update for the member. |
{
"index": 0
}
{
"message": "Unable to validate JWT. Please make sure a valid JWT is sent as an Authorization header or access token cookie.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "Resource with id 'a1b2c3d4' not found or you do not have permission to access it.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "An unknown error occurred",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
curl -X PATCH "https://api.hyphen.ai/api/organizations/{organizationId}/members/{memberId}/favorites/{favoriteId}" \
-H "Content-Type: application/json" \
-d '{ "index": 0}'
const response = await fetch('https://api.hyphen.ai/api/organizations/{organizationId}/members/{memberId}/favorites/{favoriteId}', {
method: 'PATCH',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify({ "index": 0})
});
const data = await response.json();
import requests
response = requests.patch(
'https://api.hyphen.ai/api/organizations/{organizationId}/members/{memberId}/favorites/{favoriteId}',
headers={
'Content-Type': 'application/json'
},
json={ "index": 0}
)
data = response.json()
| Name | Type | In | Description |
|---|---|---|---|
| organizationId * | string | path | The organization Id. |
| memberId * | string | path | The member Id. |
{
"preferences": {
"channels": [
{
"type": "slack",
"integrationId": "string"
}
]
},
"slackWorkspaces": [
{
"integrationId": "string",
"workspaceId": "string",
"name": "string"
}
],
"connections": [
{
"id": "string",
"channel": {
"type": "slack",
"integrationId": "string"
},
"destination": {
"type": "slack",
"workspaceId": "string",
"userId": "string"
},
"email": "string",
"verifiedAt": "string"
}
],
"verification": {
"id": "string",
"integrationId": "string",
"email": "string",
"expiresAt": "string",
"resendAt": "string"
}
}
{
"message": "Invalid request body or query parameters",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "Unable to validate JWT. Please make sure a valid JWT is sent as an Authorization header or access token cookie.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "The resource could not be created because you do not have permission to create it.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "Resource with id 'a1b2c3d4' not found or you do not have permission to access it.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "The resource could not be created because of a conflict.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "string",
"requestId": "string",
"errorCode": "string",
"errors": [
"string"
]
}
{
"message": "An unknown error occurred",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "string",
"requestId": "string",
"errorCode": "string",
"errors": [
"string"
]
}
curl -X GET "https://api.hyphen.ai/api/organizations/{organizationId}/members/{memberId}/notifications/"
const response = await fetch('https://api.hyphen.ai/api/organizations/{organizationId}/members/{memberId}/notifications/', {
method: 'GET'
});
const data = await response.json();
import requests
response = requests.get('https://api.hyphen.ai/api/organizations/{organizationId}/members/{memberId}/notifications/')
data = response.json()
| Name | Type | In | Description |
|---|---|---|---|
| organizationId * | string | path | The organization Id. |
| memberId * | string | path | The member Id. |
{
"channels": [
{
"type": "slack",
"integrationId": "string"
}
]
}
{
"message": "Invalid request body or query parameters",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "Unable to validate JWT. Please make sure a valid JWT is sent as an Authorization header or access token cookie.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "The resource could not be created because you do not have permission to create it.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "Resource with id 'a1b2c3d4' not found or you do not have permission to access it.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "The resource could not be created because of a conflict.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "string",
"requestId": "string",
"errorCode": "string",
"errors": [
"string"
]
}
{
"message": "An unknown error occurred",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "string",
"requestId": "string",
"errorCode": "string",
"errors": [
"string"
]
}
curl -X PUT "https://api.hyphen.ai/api/organizations/{organizationId}/members/{memberId}/notifications/" \
-H "Content-Type: application/json" \
-d '{ "channels": [ { "type": "slack", "integrationId": "string" } ]}'
const response = await fetch('https://api.hyphen.ai/api/organizations/{organizationId}/members/{memberId}/notifications/', {
method: 'PUT',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify({ "channels": [ { "type": "slack", "integrationId": "string" } ]})
});
const data = await response.json();
import requests
response = requests.put(
'https://api.hyphen.ai/api/organizations/{organizationId}/members/{memberId}/notifications/',
headers={
'Content-Type': 'application/json'
},
json={ "channels": [ { "type": "slack", "integrationId": "string" } ]}
)
data = response.json()
| Name | Type | In | Description |
|---|---|---|---|
| organizationId * | string | path | The organization Id. |
| memberId * | string | path | The member Id. |
{
"requestId": "string"
}
{
"notificationId": "string",
"outcome": "queued"
}
{
"message": "Invalid request body or query parameters",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "Unable to validate JWT. Please make sure a valid JWT is sent as an Authorization header or access token cookie.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "The resource could not be created because you do not have permission to create it.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "Resource with id 'a1b2c3d4' not found or you do not have permission to access it.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "The resource could not be created because of a conflict.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "An unknown error occurred",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
curl -X POST "https://api.hyphen.ai/api/organizations/{organizationId}/members/{memberId}/notifications/test" \
-H "Content-Type: application/json" \
-d '{ "requestId": "string"}'
const response = await fetch('https://api.hyphen.ai/api/organizations/{organizationId}/members/{memberId}/notifications/test', {
method: 'POST',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify({ "requestId": "string"})
});
const data = await response.json();
import requests
response = requests.post(
'https://api.hyphen.ai/api/organizations/{organizationId}/members/{memberId}/notifications/test',
headers={
'Content-Type': 'application/json'
},
json={ "requestId": "string"}
)
data = response.json()
| Name | Type | In | Description |
|---|---|---|---|
| organizationId * | string | path | The organization Id. |
| memberId * | string | path | The member Id. |
{
"integrationId": "string",
"email": "string"
}
{
"preferences": {
"channels": [
{
"type": "slack",
"integrationId": "string"
}
]
},
"slackWorkspaces": [
{
"integrationId": "string",
"workspaceId": "string",
"name": "string"
}
],
"connections": [
{
"id": "string",
"channel": {
"type": "slack",
"integrationId": "string"
},
"destination": {
"type": "slack",
"workspaceId": "string",
"userId": "string"
},
"email": "string",
"verifiedAt": "string"
}
],
"verification": {
"id": "string",
"integrationId": "string",
"email": "string",
"expiresAt": "string",
"resendAt": "string"
}
}
{
"message": "Invalid request body or query parameters",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "Unable to validate JWT. Please make sure a valid JWT is sent as an Authorization header or access token cookie.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "The resource could not be created because you do not have permission to create it.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "Resource with id 'a1b2c3d4' not found or you do not have permission to access it.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "The resource could not be created because of a conflict.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "string",
"requestId": "string",
"errorCode": "string",
"errors": [
"string"
]
}
{
"message": "An unknown error occurred",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "string",
"requestId": "string",
"errorCode": "string",
"errors": [
"string"
]
}
curl -X POST "https://api.hyphen.ai/api/organizations/{organizationId}/members/{memberId}/notifications/slack/verifications" \
-H "Content-Type: application/json" \
-d '{ "integrationId": "string", "email": "string"}'
const response = await fetch('https://api.hyphen.ai/api/organizations/{organizationId}/members/{memberId}/notifications/slack/verifications', {
method: 'POST',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify({ "integrationId": "string", "email": "string"})
});
const data = await response.json();
import requests
response = requests.post(
'https://api.hyphen.ai/api/organizations/{organizationId}/members/{memberId}/notifications/slack/verifications',
headers={
'Content-Type': 'application/json'
},
json={ "integrationId": "string", "email": "string"}
)
data = response.json()
| Name | Type | In | Description |
|---|---|---|---|
| organizationId * | string | path | The organization Id. |
| memberId * | string | path | The member Id. |
| verificationId * | string (uuid) | path |
{
"code": "string"
}
{
"preferences": {
"channels": [
{
"type": "slack",
"integrationId": "string"
}
]
},
"slackWorkspaces": [
{
"integrationId": "string",
"workspaceId": "string",
"name": "string"
}
],
"connections": [
{
"id": "string",
"channel": {
"type": "slack",
"integrationId": "string"
},
"destination": {
"type": "slack",
"workspaceId": "string",
"userId": "string"
},
"email": "string",
"verifiedAt": "string"
}
],
"verification": {
"id": "string",
"integrationId": "string",
"email": "string",
"expiresAt": "string",
"resendAt": "string"
}
}
{
"message": "Invalid request body or query parameters",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "Unable to validate JWT. Please make sure a valid JWT is sent as an Authorization header or access token cookie.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "The resource could not be created because you do not have permission to create it.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "Resource with id 'a1b2c3d4' not found or you do not have permission to access it.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "The resource could not be created because of a conflict.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "string",
"requestId": "string",
"errorCode": "string",
"errors": [
"string"
]
}
{
"message": "An unknown error occurred",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "string",
"requestId": "string",
"errorCode": "string",
"errors": [
"string"
]
}
curl -X POST "https://api.hyphen.ai/api/organizations/{organizationId}/members/{memberId}/notifications/slack/verifications/{verificationId}/confirm" \
-H "Content-Type: application/json" \
-d '{ "code": "string"}'
const response = await fetch('https://api.hyphen.ai/api/organizations/{organizationId}/members/{memberId}/notifications/slack/verifications/{verificationId}/confirm', {
method: 'POST',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify({ "code": "string"})
});
const data = await response.json();
import requests
response = requests.post(
'https://api.hyphen.ai/api/organizations/{organizationId}/members/{memberId}/notifications/slack/verifications/{verificationId}/confirm',
headers={
'Content-Type': 'application/json'
},
json={ "code": "string"}
)
data = response.json()
| Name | Type | In | Description |
|---|---|---|---|
| organizationId * | string | path | The organization Id. |
| memberId * | string | path | The member Id. |
{
"message": "Invalid request body or query parameters",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "Unable to validate JWT. Please make sure a valid JWT is sent as an Authorization header or access token cookie.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "The resource could not be created because you do not have permission to create it.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "Resource with id 'a1b2c3d4' not found or you do not have permission to access it.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "The resource could not be created because of a conflict.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "string",
"requestId": "string",
"errorCode": "string",
"errors": [
"string"
]
}
{
"message": "An unknown error occurred",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "string",
"requestId": "string",
"errorCode": "string",
"errors": [
"string"
]
}
curl -X DELETE "https://api.hyphen.ai/api/organizations/{organizationId}/members/{memberId}/notifications/slack/connection"
const response = await fetch('https://api.hyphen.ai/api/organizations/{organizationId}/members/{memberId}/notifications/slack/connection', {
method: 'DELETE'
});
const data = await response.json();
import requests
response = requests.delete('https://api.hyphen.ai/api/organizations/{organizationId}/members/{memberId}/notifications/slack/connection')
data = response.json()
| Name | Type | In | Description |
|---|---|---|---|
| organizationId * | string | path | The organization Id. |
| memberId * | string | path | The member Id. |
{
"phone": {
"phoneNumber": "string",
"verifiedAt": "string",
"memberId": "string",
"organization": {
"id": "string",
"name": "string"
}
},
"verification": {
"id": "string",
"phoneNumber": "string",
"expiresAt": "string",
"resendAt": "string",
"requiresMoveConfirmation": true,
"previousOrganizationName": "string"
}
}
{
"message": "Invalid request body or query parameters",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "Unable to validate JWT. Please make sure a valid JWT is sent as an Authorization header or access token cookie.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "The resource could not be created because you do not have permission to create it.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "Resource with id 'a1b2c3d4' not found or you do not have permission to access it.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "The resource could not be created because of a conflict.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "string",
"requestId": "string",
"errorCode": "string",
"errors": [
"string"
]
}
{
"message": "An unknown error occurred",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "string",
"requestId": "string",
"errorCode": "string",
"errors": [
"string"
]
}
curl -X GET "https://api.hyphen.ai/api/organizations/{organizationId}/members/{memberId}/phone/"
const response = await fetch('https://api.hyphen.ai/api/organizations/{organizationId}/members/{memberId}/phone/', {
method: 'GET'
});
const data = await response.json();
import requests
response = requests.get('https://api.hyphen.ai/api/organizations/{organizationId}/members/{memberId}/phone/')
data = response.json()
| Name | Type | In | Description |
|---|---|---|---|
| organizationId * | string | path | The organization Id. |
| memberId * | string | path | The member Id. |
{
"message": "Invalid request body or query parameters",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "Unable to validate JWT. Please make sure a valid JWT is sent as an Authorization header or access token cookie.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "The resource could not be created because you do not have permission to create it.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "Resource with id 'a1b2c3d4' not found or you do not have permission to access it.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "The resource could not be created because of a conflict.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "string",
"requestId": "string",
"errorCode": "string",
"errors": [
"string"
]
}
{
"message": "An unknown error occurred",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "string",
"requestId": "string",
"errorCode": "string",
"errors": [
"string"
]
}
curl -X DELETE "https://api.hyphen.ai/api/organizations/{organizationId}/members/{memberId}/phone/"
const response = await fetch('https://api.hyphen.ai/api/organizations/{organizationId}/members/{memberId}/phone/', {
method: 'DELETE'
});
const data = await response.json();
import requests
response = requests.delete('https://api.hyphen.ai/api/organizations/{organizationId}/members/{memberId}/phone/')
data = response.json()
| Name | Type | In | Description |
|---|---|---|---|
| organizationId * | string | path | The organization Id. |
| memberId * | string | path | The member Id. |
{
"phoneNumber": "string"
}
{
"phone": {
"phoneNumber": "string",
"verifiedAt": "string",
"memberId": "string",
"organization": {
"id": "string",
"name": "string"
}
},
"verification": {
"id": "string",
"phoneNumber": "string",
"expiresAt": "string",
"resendAt": "string",
"requiresMoveConfirmation": true,
"previousOrganizationName": "string"
}
}
{
"message": "Invalid request body or query parameters",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "Unable to validate JWT. Please make sure a valid JWT is sent as an Authorization header or access token cookie.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "The resource could not be created because you do not have permission to create it.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "Resource with id 'a1b2c3d4' not found or you do not have permission to access it.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "The resource could not be created because of a conflict.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "string",
"requestId": "string",
"errorCode": "string",
"errors": [
"string"
]
}
{
"message": "An unknown error occurred",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "string",
"requestId": "string",
"errorCode": "string",
"errors": [
"string"
]
}
curl -X POST "https://api.hyphen.ai/api/organizations/{organizationId}/members/{memberId}/phone/verifications" \
-H "Content-Type: application/json" \
-d '{ "phoneNumber": "string"}'
const response = await fetch('https://api.hyphen.ai/api/organizations/{organizationId}/members/{memberId}/phone/verifications', {
method: 'POST',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify({ "phoneNumber": "string"})
});
const data = await response.json();
import requests
response = requests.post(
'https://api.hyphen.ai/api/organizations/{organizationId}/members/{memberId}/phone/verifications',
headers={
'Content-Type': 'application/json'
},
json={ "phoneNumber": "string"}
)
data = response.json()
| Name | Type | In | Description |
|---|---|---|---|
| organizationId * | string | path | The organization Id. |
| memberId * | string | path | The member Id. |
| verificationId * | string (uuid) | path |
{
"phone": {
"phoneNumber": "string",
"verifiedAt": "string",
"memberId": "string",
"organization": {
"id": "string",
"name": "string"
}
},
"verification": {
"id": "string",
"phoneNumber": "string",
"expiresAt": "string",
"resendAt": "string",
"requiresMoveConfirmation": true,
"previousOrganizationName": "string"
}
}
{
"message": "Invalid request body or query parameters",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "Unable to validate JWT. Please make sure a valid JWT is sent as an Authorization header or access token cookie.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "The resource could not be created because you do not have permission to create it.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "Resource with id 'a1b2c3d4' not found or you do not have permission to access it.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "The resource could not be created because of a conflict.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "string",
"requestId": "string",
"errorCode": "string",
"errors": [
"string"
]
}
{
"message": "An unknown error occurred",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "string",
"requestId": "string",
"errorCode": "string",
"errors": [
"string"
]
}
curl -X POST "https://api.hyphen.ai/api/organizations/{organizationId}/members/{memberId}/phone/verifications/{verificationId}/resend"
const response = await fetch('https://api.hyphen.ai/api/organizations/{organizationId}/members/{memberId}/phone/verifications/{verificationId}/resend', {
method: 'POST'
});
const data = await response.json();
import requests
response = requests.post('https://api.hyphen.ai/api/organizations/{organizationId}/members/{memberId}/phone/verifications/{verificationId}/resend')
data = response.json()
| Name | Type | In | Description |
|---|---|---|---|
| organizationId * | string | path | The organization Id. |
| memberId * | string | path | The member Id. |
| verificationId * | string (uuid) | path |
{
"code": "string",
"confirmMove": true
}
{
"phone": {
"phoneNumber": "string",
"verifiedAt": "string",
"memberId": "string",
"organization": {
"id": "string",
"name": "string"
}
},
"verification": {
"id": "string",
"phoneNumber": "string",
"expiresAt": "string",
"resendAt": "string",
"requiresMoveConfirmation": true,
"previousOrganizationName": "string"
}
}
{
"message": "Invalid request body or query parameters",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "Unable to validate JWT. Please make sure a valid JWT is sent as an Authorization header or access token cookie.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "The resource could not be created because you do not have permission to create it.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "Resource with id 'a1b2c3d4' not found or you do not have permission to access it.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "The resource could not be created because of a conflict.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "string",
"requestId": "string",
"errorCode": "string",
"errors": [
"string"
]
}
{
"message": "An unknown error occurred",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "string",
"requestId": "string",
"errorCode": "string",
"errors": [
"string"
]
}
curl -X POST "https://api.hyphen.ai/api/organizations/{organizationId}/members/{memberId}/phone/verifications/{verificationId}/confirm" \
-H "Content-Type: application/json" \
-d '{ "code": "string", "confirmMove": true}'
const response = await fetch('https://api.hyphen.ai/api/organizations/{organizationId}/members/{memberId}/phone/verifications/{verificationId}/confirm', {
method: 'POST',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify({ "code": "string", "confirmMove": true})
});
const data = await response.json();
import requests
response = requests.post(
'https://api.hyphen.ai/api/organizations/{organizationId}/members/{memberId}/phone/verifications/{verificationId}/confirm',
headers={
'Content-Type': 'application/json'
},
json={ "code": "string", "confirmMove": true}
)
data = response.json()
Planned Events
| Name | Type | In | Description |
|---|---|---|---|
| status | string | query | Filter by planned event status. |
| organizationId * | string | path | The organization Id. |
{
"data": [
{
"id": "string",
"name": "string",
"description": "string",
"status": "active",
"scheduledStart": "string",
"scheduledEnd": "string",
"recurring": {
"cron": "string",
"timezone": "string",
"startAt": "string",
"endAt": "string"
},
"references": [
null
],
"organization": {
"id": "string",
"name": "string"
},
"meta": {
"createdAt": "2024-07-08T15:58:34.219+00:00",
"createdBy": "string",
"modifiedAt": "2024-07-08T15:58:34.219+00:00",
"modifiedBy": "string",
"deletedAt": "2024-07-08T15:58:34.219+00:00",
"deletedBy": "string"
}
}
]
}
{
"message": "Unable to validate JWT. Please make sure a valid JWT is sent as an Authorization header or access token cookie.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "An unknown error occurred",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
curl -X GET "https://api.hyphen.ai/api/organizations/{organizationId}/planned-events/?status={status}"
const response = await fetch('https://api.hyphen.ai/api/organizations/{organizationId}/planned-events/?status={status}', {
method: 'GET'
});
const data = await response.json();
import requests
response = requests.get(
'https://api.hyphen.ai/api/organizations/{organizationId}/planned-events/',
params={
'status': '{status}'
}
)
data = response.json()
| Name | Type | In | Description |
|---|---|---|---|
| organizationId * | string | path | The organization Id. |
{
"name": "string",
"description": "string",
"scheduledStart": "string",
"scheduledEnd": "string",
"recurring": {
"cron": "string",
"timezone": "string",
"startAt": "string",
"endAt": "string"
},
"references": [
null
]
}
{
"id": "string",
"name": "string",
"description": "string",
"status": "active",
"scheduledStart": "string",
"scheduledEnd": "string",
"recurring": {
"cron": "string",
"timezone": "string",
"startAt": "string",
"endAt": "string"
},
"references": [
null
],
"organization": {
"id": "string",
"name": "string"
},
"meta": {
"createdAt": "2024-07-08T15:58:34.219+00:00",
"createdBy": "string",
"modifiedAt": "2024-07-08T15:58:34.219+00:00",
"modifiedBy": "string",
"deletedAt": "2024-07-08T15:58:34.219+00:00",
"deletedBy": "string"
}
}
{
"message": "Unable to validate JWT. Please make sure a valid JWT is sent as an Authorization header or access token cookie.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "An unknown error occurred",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
curl -X POST "https://api.hyphen.ai/api/organizations/{organizationId}/planned-events/" \
-H "Content-Type: application/json" \
-d '{ "name": "string", "description": "string", "scheduledStart": "string", "scheduledEnd": "string", "recurring": { "cron": "string", "timezone": "string", "startAt": "string", "endAt": "string" }, "references": [ null ]}'
const response = await fetch('https://api.hyphen.ai/api/organizations/{organizationId}/planned-events/', {
method: 'POST',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify({ "name": "string", "description": "string", "scheduledStart": "string", "scheduledEnd": "string", "recurring": { "cron": "string", "timezone": "string", "startAt": "string", "endAt": "string" }, "references": [ null ]})
});
const data = await response.json();
import requests
response = requests.post(
'https://api.hyphen.ai/api/organizations/{organizationId}/planned-events/',
headers={
'Content-Type': 'application/json'
},
json={ "name": "string", "description": "string", "scheduledStart": "string", "scheduledEnd": "string", "recurring": { "cron": "string", "timezone": "string", "startAt": "string", "endAt": "string" }, "references": [ null ]}
)
data = response.json()
| Name | Type | In | Description |
|---|---|---|---|
| organizationId * | string | path | The organization Id. |
| plannedEventId * | string | path | The planned event ID. |
{
"id": "string",
"name": "string",
"description": "string",
"status": "active",
"scheduledStart": "string",
"scheduledEnd": "string",
"recurring": {
"cron": "string",
"timezone": "string",
"startAt": "string",
"endAt": "string"
},
"references": [
null
],
"organization": {
"id": "string",
"name": "string"
},
"meta": {
"createdAt": "2024-07-08T15:58:34.219+00:00",
"createdBy": "string",
"modifiedAt": "2024-07-08T15:58:34.219+00:00",
"modifiedBy": "string",
"deletedAt": "2024-07-08T15:58:34.219+00:00",
"deletedBy": "string"
}
}
{
"message": "Unable to validate JWT. Please make sure a valid JWT is sent as an Authorization header or access token cookie.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "Resource with id 'a1b2c3d4' not found or you do not have permission to access it.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "An unknown error occurred",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
curl -X GET "https://api.hyphen.ai/api/organizations/{organizationId}/planned-events/{plannedEventId}/"
const response = await fetch('https://api.hyphen.ai/api/organizations/{organizationId}/planned-events/{plannedEventId}/', {
method: 'GET'
});
const data = await response.json();
import requests
response = requests.get('https://api.hyphen.ai/api/organizations/{organizationId}/planned-events/{plannedEventId}/')
data = response.json()
| Name | Type | In | Description |
|---|---|---|---|
| organizationId * | string | path | The organization Id. |
| plannedEventId * | string | path | The planned event ID. |
{
"message": "Unable to validate JWT. Please make sure a valid JWT is sent as an Authorization header or access token cookie.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "Resource with id 'a1b2c3d4' not found or you do not have permission to access it.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "An unknown error occurred",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
curl -X DELETE "https://api.hyphen.ai/api/organizations/{organizationId}/planned-events/{plannedEventId}/"
const response = await fetch('https://api.hyphen.ai/api/organizations/{organizationId}/planned-events/{plannedEventId}/', {
method: 'DELETE'
});
const data = await response.json();
import requests
response = requests.delete('https://api.hyphen.ai/api/organizations/{organizationId}/planned-events/{plannedEventId}/')
data = response.json()
| Name | Type | In | Description |
|---|---|---|---|
| organizationId * | string | path | The organization Id. |
| plannedEventId * | string | path | The planned event ID. |
{
"name": "string",
"description": "string",
"scheduledStart": "string",
"scheduledEnd": "string",
"status": "active",
"recurring": {
"cron": "string",
"timezone": "string",
"startAt": "string",
"endAt": "string"
},
"references": [
null
]
}
{
"id": "string",
"name": "string",
"description": "string",
"status": "active",
"scheduledStart": "string",
"scheduledEnd": "string",
"recurring": {
"cron": "string",
"timezone": "string",
"startAt": "string",
"endAt": "string"
},
"references": [
null
],
"organization": {
"id": "string",
"name": "string"
},
"meta": {
"createdAt": "2024-07-08T15:58:34.219+00:00",
"createdBy": "string",
"modifiedAt": "2024-07-08T15:58:34.219+00:00",
"modifiedBy": "string",
"deletedAt": "2024-07-08T15:58:34.219+00:00",
"deletedBy": "string"
}
}
{
"message": "Unable to validate JWT. Please make sure a valid JWT is sent as an Authorization header or access token cookie.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "Resource with id 'a1b2c3d4' not found or you do not have permission to access it.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "An unknown error occurred",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
curl -X PATCH "https://api.hyphen.ai/api/organizations/{organizationId}/planned-events/{plannedEventId}/" \
-H "Content-Type: application/json" \
-d '{ "name": "string", "description": "string", "scheduledStart": "string", "scheduledEnd": "string", "status": "active", "recurring": { "cron": "string", "timezone": "string", "startAt": "string", "endAt": "string" }, "references": [ null ]}'
const response = await fetch('https://api.hyphen.ai/api/organizations/{organizationId}/planned-events/{plannedEventId}/', {
method: 'PATCH',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify({ "name": "string", "description": "string", "scheduledStart": "string", "scheduledEnd": "string", "status": "active", "recurring": { "cron": "string", "timezone": "string", "startAt": "string", "endAt": "string" }, "references": [ null ]})
});
const data = await response.json();
import requests
response = requests.patch(
'https://api.hyphen.ai/api/organizations/{organizationId}/planned-events/{plannedEventId}/',
headers={
'Content-Type': 'application/json'
},
json={ "name": "string", "description": "string", "scheduledStart": "string", "scheduledEnd": "string", "status": "active", "recurring": { "cron": "string", "timezone": "string", "startAt": "string", "endAt": "string" }, "references": [ null ]}
)
data = response.json()
Policies
| Name | Type | In | Description |
|---|---|---|---|
| type | string | query | |
| taskType | string | query | |
| referenceId | string | query | |
| organizationId * | string | path | The organization Id. |
[
{}
]
{
"message": "Invalid request body or query parameters",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "Unable to validate JWT. Please make sure a valid JWT is sent as an Authorization header or access token cookie.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "The resource could not be created because you do not have permission to create it.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "An unknown error occurred",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
curl -X GET "https://api.hyphen.ai/api/organizations/{organizationId}/policies/?type={type}&taskType={taskType}&referenceId={referenceId}"
const response = await fetch('https://api.hyphen.ai/api/organizations/{organizationId}/policies/?type={type}&taskType={taskType}&referenceId={referenceId}', {
method: 'GET'
});
const data = await response.json();
import requests
response = requests.get(
'https://api.hyphen.ai/api/organizations/{organizationId}/policies/',
params={
'type': '{type}',
'taskType': '{taskType}',
'referenceId': '{referenceId}'
}
)
data = response.json()
Creates a new policy with the specified configuration and references. The policy type is determined by the URL path parameter.
| Name | Type | In | Description |
|---|---|---|---|
| organizationId * | string | path | The organization Id. |
{}
{}
{
"message": "Invalid request body or query parameters",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "Unable to validate JWT. Please make sure a valid JWT is sent as an Authorization header or access token cookie.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "The resource could not be created because you do not have permission to create it.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "Resource with id 'a1b2c3d4' not found or you do not have permission to access it.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "The resource could not be created because of a conflict.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "An unknown error occurred",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
curl -X POST "https://api.hyphen.ai/api/organizations/{organizationId}/policies/" \
-H "Content-Type: application/json" \
-d '{}'
const response = await fetch('https://api.hyphen.ai/api/organizations/{organizationId}/policies/', {
method: 'POST',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify({})
});
const data = await response.json();
import requests
response = requests.post(
'https://api.hyphen.ai/api/organizations/{organizationId}/policies/',
headers={
'Content-Type': 'application/json'
},
json={}
)
data = response.json()
| Name | Type | In | Description |
|---|---|---|---|
| organizationId * | string | path | The organization Id. |
| policyId * | string | path | The policy ID. |
{}
{
"message": "Unable to validate JWT. Please make sure a valid JWT is sent as an Authorization header or access token cookie.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "The resource could not be created because you do not have permission to create it.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "Resource with id 'a1b2c3d4' not found or you do not have permission to access it.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "An unknown error occurred",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
curl -X GET "https://api.hyphen.ai/api/organizations/{organizationId}/policies/{policyId}/"
const response = await fetch('https://api.hyphen.ai/api/organizations/{organizationId}/policies/{policyId}/', {
method: 'GET'
});
const data = await response.json();
import requests
response = requests.get('https://api.hyphen.ai/api/organizations/{organizationId}/policies/{policyId}/')
data = response.json()
| Name | Type | In | Description |
|---|---|---|---|
| organizationId * | string | path | The organization Id. |
| policyId * | string | path | The policy ID. |
{
"message": "Unable to validate JWT. Please make sure a valid JWT is sent as an Authorization header or access token cookie.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "The resource could not be created because you do not have permission to create it.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "Resource with id 'a1b2c3d4' not found or you do not have permission to access it.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "An unknown error occurred",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
curl -X DELETE "https://api.hyphen.ai/api/organizations/{organizationId}/policies/{policyId}/"
const response = await fetch('https://api.hyphen.ai/api/organizations/{organizationId}/policies/{policyId}/', {
method: 'DELETE'
});
const data = await response.json();
import requests
response = requests.delete('https://api.hyphen.ai/api/organizations/{organizationId}/policies/{policyId}/')
data = response.json()
| Name | Type | In | Description |
|---|---|---|---|
| organizationId * | string | path | The organization Id. |
| policyId * | string | path | The policy ID. |
{}
{}
{
"message": "Invalid request body or query parameters",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "Unable to validate JWT. Please make sure a valid JWT is sent as an Authorization header or access token cookie.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "The resource could not be created because you do not have permission to create it.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "Resource with id 'a1b2c3d4' not found or you do not have permission to access it.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "An unknown error occurred",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
curl -X PATCH "https://api.hyphen.ai/api/organizations/{organizationId}/policies/{policyId}/" \
-H "Content-Type: application/json" \
-d '{}'
const response = await fetch('https://api.hyphen.ai/api/organizations/{organizationId}/policies/{policyId}/', {
method: 'PATCH',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify({})
});
const data = await response.json();
import requests
response = requests.patch(
'https://api.hyphen.ai/api/organizations/{organizationId}/policies/{policyId}/',
headers={
'Content-Type': 'application/json'
},
json={}
)
data = response.json()
| Name | Type | In | Description |
|---|---|---|---|
| type * | string | query | The policy type to resolve. |
| taskType | string | query | The AgentTask policy task type to resolve. |
| projectId | string | query | Optional project ID to resolve policy scope. |
| projectEnvironmentId | string | query | Optional project environment ID to resolve policy scope. |
| deploymentId | string | query | Optional deployment ID to resolve policy scope. |
| kubernetesClusterId | string | query | Optional Kubernetes cluster ID to resolve policy scope. |
| environmentType | string | query | Optional environment type to resolve environment-scoped AgentTask policy defaults. |
| organizationId * | string | path | The organization Id. |
{}
{
"message": "Invalid request body or query parameters",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "Unable to validate JWT. Please make sure a valid JWT is sent as an Authorization header or access token cookie.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "The resource could not be created because you do not have permission to create it.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "Resource with id 'a1b2c3d4' not found or you do not have permission to access it.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "An unknown error occurred",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
curl -X GET "https://api.hyphen.ai/api/organizations/{organizationId}/policies/resolved/?type={type}&taskType={taskType}&projectId={projectId}&projectEnvironmentId={projectEnvironmentId}&deploymentId={deploymentId}&kubernetesClusterId={kubernetesClusterId}&environmentType={environmentType}"
const response = await fetch('https://api.hyphen.ai/api/organizations/{organizationId}/policies/resolved/?type={type}&taskType={taskType}&projectId={projectId}&projectEnvironmentId={projectEnvironmentId}&deploymentId={deploymentId}&kubernetesClusterId={kubernetesClusterId}&environmentType={environmentType}', {
method: 'GET'
});
const data = await response.json();
import requests
response = requests.get(
'https://api.hyphen.ai/api/organizations/{organizationId}/policies/resolved/',
params={
'type': '{type}',
'taskType': '{taskType}',
'projectId': '{projectId}',
'projectEnvironmentId': '{projectEnvironmentId}',
'deploymentId': '{deploymentId}',
'kubernetesClusterId': '{kubernetesClusterId}',
'environmentType': '{environmentType}'
}
)
data = response.json()
Projects
| Name | Type | In | Description |
|---|---|---|---|
| pageNum | integer | query | The page number. |
| pageSize | integer | query | The page size. |
| organizationId * | string | path | The organization Id. |
{
"total": 0,
"pageNum": 0,
"pageSize": 0,
"data": [
{
"id": "proj_66bf99b72a0043f841769880",
"alternateId": "my-project",
"name": "My Project",
"isMonorepo": false,
"organization": {
"id": "org_66bf99b72a0043f841769880",
"name": "My Org"
},
"meta": {
"createdAt": "2025-01-14T22:56:14.234Z",
"createdBy": "memb_66f30abb67ebc6bb0c5e0af9"
}
}
]
}
{
"message": "Unable to validate JWT. Please make sure a valid JWT is sent as an Authorization header or access token cookie.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "An unknown error occurred",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
curl -X GET "https://api.hyphen.ai/api/organizations/{organizationId}/projects/?pageNum={pageNum}&pageSize={pageSize}"
const response = await fetch('https://api.hyphen.ai/api/organizations/{organizationId}/projects/?pageNum={pageNum}&pageSize={pageSize}', {
method: 'GET'
});
const data = await response.json();
import requests
response = requests.get(
'https://api.hyphen.ai/api/organizations/{organizationId}/projects/',
params={
'pageNum': '{pageNum}',
'pageSize': '{pageSize}'
}
)
data = response.json()
| Name | Type | In | Description |
|---|---|---|---|
| organizationId * | string | path | The organization Id. |
{
"alternateId": "my-project",
"name": "My Project",
"isMonorepo": false
}
{
"id": "proj_66bf99b72a0043f841769880",
"alternateId": "my-project",
"name": "My Project",
"isMonorepo": false,
"organization": {
"id": "org_66bf99b72a0043f841769880",
"name": "My Org"
},
"meta": {
"createdAt": "2025-01-14T22:56:14.234Z",
"createdBy": "memb_66f30abb67ebc6bb0c5e0af9"
}
}
{
"message": "Unable to validate JWT. Please make sure a valid JWT is sent as an Authorization header or access token cookie.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "The resource could not be created because you do not have permission to create it.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "Resource with id 'a1b2c3d4' not found or you do not have permission to access it.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "The resource could not be created because of a conflict.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "An unknown error occurred",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
curl -X POST "https://api.hyphen.ai/api/organizations/{organizationId}/projects/" \
-H "Content-Type: application/json" \
-d '{ "alternateId": "my-project", "name": "My Project", "isMonorepo": false}'
const response = await fetch('https://api.hyphen.ai/api/organizations/{organizationId}/projects/', {
method: 'POST',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify({ "alternateId": "my-project", "name": "My Project", "isMonorepo": false})
});
const data = await response.json();
import requests
response = requests.post(
'https://api.hyphen.ai/api/organizations/{organizationId}/projects/',
headers={
'Content-Type': 'application/json'
},
json={ "alternateId": "my-project", "name": "My Project", "isMonorepo": false}
)
data = response.json()
| Name | Type | In | Description |
|---|---|---|---|
| organizationId * | string | path | The organization Id. |
| projectId * | string | path | The project Id or alternate Id. |
{
"id": "proj_66bf99b72a0043f841769880",
"alternateId": "my-project",
"name": "My Project",
"isMonorepo": false,
"organization": {
"id": "org_66bf99b72a0043f841769880",
"name": "My Org"
},
"meta": {
"createdAt": "2025-01-14T22:56:14.234Z",
"createdBy": "memb_66f30abb67ebc6bb0c5e0af9"
}
}
{
"message": "Unable to validate JWT. Please make sure a valid JWT is sent as an Authorization header or access token cookie.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "Resource with id 'a1b2c3d4' not found or you do not have permission to access it.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "An unknown error occurred",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
curl -X GET "https://api.hyphen.ai/api/organizations/{organizationId}/projects/{projectId}/"
const response = await fetch('https://api.hyphen.ai/api/organizations/{organizationId}/projects/{projectId}/', {
method: 'GET'
});
const data = await response.json();
import requests
response = requests.get('https://api.hyphen.ai/api/organizations/{organizationId}/projects/{projectId}/')
data = response.json()
| Name | Type | In | Description |
|---|---|---|---|
| organizationId * | string | path | The organization Id. |
| projectId * | string | path | The project Id or alternate Id. |
{
"message": "Unable to validate JWT. Please make sure a valid JWT is sent as an Authorization header or access token cookie.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "Resource with id 'a1b2c3d4' not found or you do not have permission to access it.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "An unknown error occurred",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
curl -X DELETE "https://api.hyphen.ai/api/organizations/{organizationId}/projects/{projectId}/"
const response = await fetch('https://api.hyphen.ai/api/organizations/{organizationId}/projects/{projectId}/', {
method: 'DELETE'
});
const data = await response.json();
import requests
response = requests.delete('https://api.hyphen.ai/api/organizations/{organizationId}/projects/{projectId}/')
data = response.json()
| Name | Type | In | Description |
|---|---|---|---|
| organizationId * | string | path | The organization Id. |
| projectId * | string | path | The project Id or alternate Id. |
{
"name": "string",
"isMonorepo": true
}
{
"id": "proj_66bf99b72a0043f841769880",
"alternateId": "my-project",
"name": "My Project",
"isMonorepo": false,
"organization": {
"id": "org_66bf99b72a0043f841769880",
"name": "My Org"
},
"meta": {
"createdAt": "2025-01-14T22:56:14.234Z",
"createdBy": "memb_66f30abb67ebc6bb0c5e0af9"
}
}
{
"message": "Unable to validate JWT. Please make sure a valid JWT is sent as an Authorization header or access token cookie.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "Resource with id 'a1b2c3d4' not found or you do not have permission to access it.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "An unknown error occurred",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
curl -X PATCH "https://api.hyphen.ai/api/organizations/{organizationId}/projects/{projectId}/" \
-H "Content-Type: application/json" \
-d '{ "name": "string", "isMonorepo": true}'
const response = await fetch('https://api.hyphen.ai/api/organizations/{organizationId}/projects/{projectId}/', {
method: 'PATCH',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify({ "name": "string", "isMonorepo": true})
});
const data = await response.json();
import requests
response = requests.patch(
'https://api.hyphen.ai/api/organizations/{organizationId}/projects/{projectId}/',
headers={
'Content-Type': 'application/json'
},
json={ "name": "string", "isMonorepo": true}
)
data = response.json()
Project Environments
| Name | Type | In | Description |
|---|---|---|---|
| pageNum | integer | query | The page number. |
| pageSize | integer | query | The page size. |
| organizationId * | string | path | The organization Id. |
| projectId * | string | path | The project Id or alternate Id. |
{
"total": 0,
"pageNum": 0,
"pageSize": 0,
"data": [
{
"id": "env_66bf99b72a0043f841769880",
"alternateId": "production",
"name": "Production",
"color": "#00FF00",
"organization": {
"id": "org_66bf99b72a0043f841769880",
"name": "My Org"
},
"project": {
"id": "proj_66bf99b72a0043f841769880",
"alternateId": "my-project",
"name": "My Project"
}
}
]
}
{
"message": "Unable to validate JWT. Please make sure a valid JWT is sent as an Authorization header or access token cookie.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "An unknown error occurred",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
curl -X GET "https://api.hyphen.ai/api/organizations/{organizationId}/projects/{projectId}/environments/?pageNum={pageNum}&pageSize={pageSize}"
const response = await fetch('https://api.hyphen.ai/api/organizations/{organizationId}/projects/{projectId}/environments/?pageNum={pageNum}&pageSize={pageSize}', {
method: 'GET'
});
const data = await response.json();
import requests
response = requests.get(
'https://api.hyphen.ai/api/organizations/{organizationId}/projects/{projectId}/environments/',
params={
'pageNum': '{pageNum}',
'pageSize': '{pageSize}'
}
)
data = response.json()
| Name | Type | In | Description |
|---|---|---|---|
| organizationId * | string | path | The organization Id. |
| projectId * | string | path | The project Id or alternate Id. |
{
"alternateId": "production",
"name": "Production",
"color": "#00FF00",
"type": "production"
}
{
"id": "env_66bf99b72a0043f841769880",
"alternateId": "production",
"name": "Production",
"color": "#00FF00",
"organization": {
"id": "org_66bf99b72a0043f841769880",
"name": "My Org"
},
"project": {
"id": "proj_66bf99b72a0043f841769880",
"alternateId": "my-project",
"name": "My Project"
}
}
{
"message": "Unable to validate JWT. Please make sure a valid JWT is sent as an Authorization header or access token cookie.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "The resource could not be created because you do not have permission to create it.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "Resource with id 'a1b2c3d4' not found or you do not have permission to access it.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "The resource could not be created because of a conflict.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "An unknown error occurred",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
curl -X POST "https://api.hyphen.ai/api/organizations/{organizationId}/projects/{projectId}/environments/" \
-H "Content-Type: application/json" \
-d '{ "alternateId": "production", "name": "Production", "color": "#00FF00", "type": "production"}'
const response = await fetch('https://api.hyphen.ai/api/organizations/{organizationId}/projects/{projectId}/environments/', {
method: 'POST',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify({ "alternateId": "production", "name": "Production", "color": "#00FF00", "type": "production"})
});
const data = await response.json();
import requests
response = requests.post(
'https://api.hyphen.ai/api/organizations/{organizationId}/projects/{projectId}/environments/',
headers={
'Content-Type': 'application/json'
},
json={ "alternateId": "production", "name": "Production", "color": "#00FF00", "type": "production"}
)
data = response.json()
| Name | Type | In | Description |
|---|---|---|---|
| organizationId * | string | path | The organization Id. |
| projectId * | string | path | The project Id or alternate Id. |
| environmentId * | string | path | The environment Id or alternate Id. |
{
"id": "env_66bf99b72a0043f841769880",
"alternateId": "production",
"name": "Production",
"color": "#00FF00",
"organization": {
"id": "org_66bf99b72a0043f841769880",
"name": "My Org"
},
"project": {
"id": "proj_66bf99b72a0043f841769880",
"alternateId": "my-project",
"name": "My Project"
}
}
{
"message": "Unable to validate JWT. Please make sure a valid JWT is sent as an Authorization header or access token cookie.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "Resource with id 'a1b2c3d4' not found or you do not have permission to access it.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "An unknown error occurred",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
curl -X GET "https://api.hyphen.ai/api/organizations/{organizationId}/projects/{projectId}/environments/{environmentId}/"
const response = await fetch('https://api.hyphen.ai/api/organizations/{organizationId}/projects/{projectId}/environments/{environmentId}/', {
method: 'GET'
});
const data = await response.json();
import requests
response = requests.get('https://api.hyphen.ai/api/organizations/{organizationId}/projects/{projectId}/environments/{environmentId}/')
data = response.json()
| Name | Type | In | Description |
|---|---|---|---|
| organizationId * | string | path | The organization Id. |
| projectId * | string | path | The project Id or alternate Id. |
| environmentId * | string | path | The environment Id or alternate Id. |
curl -X DELETE "https://api.hyphen.ai/api/organizations/{organizationId}/projects/{projectId}/environments/{environmentId}/"
const response = await fetch('https://api.hyphen.ai/api/organizations/{organizationId}/projects/{projectId}/environments/{environmentId}/', {
method: 'DELETE'
});
const data = await response.json();
import requests
response = requests.delete('https://api.hyphen.ai/api/organizations/{organizationId}/projects/{projectId}/environments/{environmentId}/')
data = response.json()
| Name | Type | In | Description |
|---|---|---|---|
| organizationId * | string | path | The organization Id. |
| projectId * | string | path | The project Id or alternate Id. |
| environmentId * | string | path | The environment Id or alternate Id. |
{
"name": "Production"
}
{
"id": "env_66bf99b72a0043f841769880",
"alternateId": "production",
"name": "Production",
"color": "#00FF00",
"organization": {
"id": "org_66bf99b72a0043f841769880",
"name": "My Org"
},
"project": {
"id": "proj_66bf99b72a0043f841769880",
"alternateId": "my-project",
"name": "My Project"
}
}
curl -X PATCH "https://api.hyphen.ai/api/organizations/{organizationId}/projects/{projectId}/environments/{environmentId}/" \
-H "Content-Type: application/json" \
-d '{ "name": "Production"}'
const response = await fetch('https://api.hyphen.ai/api/organizations/{organizationId}/projects/{projectId}/environments/{environmentId}/', {
method: 'PATCH',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify({ "name": "Production"})
});
const data = await response.json();
import requests
response = requests.patch(
'https://api.hyphen.ai/api/organizations/{organizationId}/projects/{projectId}/environments/{environmentId}/',
headers={
'Content-Type': 'application/json'
},
json={ "name": "Production"}
)
data = response.json()
| Name | Type | In | Description |
|---|---|---|---|
| pageNum | integer | query | The page number. |
| pageSize | integer | query | The page size. |
| organizationId * | string | path | The organization Id. |
{
"total": 0,
"pageNum": 0,
"pageSize": 0,
"data": [
{
"id": "env_66bf99b72a0043f841769880",
"alternateId": "production",
"name": "Production",
"color": "#00FF00",
"organization": {
"id": "org_66bf99b72a0043f841769880",
"name": "My Org"
},
"project": {
"id": "proj_66bf99b72a0043f841769880",
"alternateId": "my-project",
"name": "My Project"
}
}
]
}
{
"message": "Unable to validate JWT. Please make sure a valid JWT is sent as an Authorization header or access token cookie.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "An unknown error occurred",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
curl -X GET "https://api.hyphen.ai/api/organizations/{organizationId}/projects/environments/?pageNum={pageNum}&pageSize={pageSize}"
const response = await fetch('https://api.hyphen.ai/api/organizations/{organizationId}/projects/environments/?pageNum={pageNum}&pageSize={pageSize}', {
method: 'GET'
});
const data = await response.json();
import requests
response = requests.get(
'https://api.hyphen.ai/api/organizations/{organizationId}/projects/environments/',
params={
'pageNum': '{pageNum}',
'pageSize': '{pageSize}'
}
)
data = response.json()
Segments
| Name | Type | In | Description |
|---|---|---|---|
| search | string | query | Search for a segment by name |
| availableFor | string | query | Filter segments available as dependencies for the specified segment ID |
| organizationId * | string | path | The organization Id. |
| projectId * | string | path | The project Id or alternate Id. |
{
"data": [
{
"id": "string",
"alternateId": "string",
"name": "string",
"description": "string",
"logic": "string",
"tags": [
"string"
],
"usages": {
"toggles": [
{
"key": "string",
"description": "string",
"tags": [
"string"
],
"type": "boolean",
"targets": [
{
"logic": "string",
"value": null
}
],
"defaultValue": null,
"perpetual": true,
"meta": {
"createdAt": "2024-07-08T15:58:34.219+00:00",
"createdBy": "string",
"modifiedAt": "2024-07-08T15:58:34.219+00:00",
"modifiedBy": "string",
"deletedAt": "2024-07-08T15:58:34.219+00:00",
"deletedBy": "string"
}
}
]
},
"meta": {
"createdAt": "2024-07-08T15:58:34.219+00:00",
"createdBy": "string",
"modifiedAt": "2024-07-08T15:58:34.219+00:00",
"modifiedBy": "string",
"deletedAt": "2024-07-08T15:58:34.219+00:00",
"deletedBy": "string"
}
}
]
}
{
"message": "Unable to validate JWT. Please make sure a valid JWT is sent as an Authorization header or access token cookie.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "Resource with id 'a1b2c3d4' not found or you do not have permission to access it.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "An unknown error occurred",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
curl -X GET "https://api.hyphen.ai/api/organizations/{organizationId}/projects/{projectId}/segments/?search={search}&availableFor={availableFor}"
const response = await fetch('https://api.hyphen.ai/api/organizations/{organizationId}/projects/{projectId}/segments/?search={search}&availableFor={availableFor}', {
method: 'GET'
});
const data = await response.json();
import requests
response = requests.get(
'https://api.hyphen.ai/api/organizations/{organizationId}/projects/{projectId}/segments/',
params={
'search': '{search}',
'availableFor': '{availableFor}'
}
)
data = response.json()
| Name | Type | In | Description |
|---|---|---|---|
| organizationId * | string | path | The organization Id. |
| projectId * | string | path | The project Id or alternate Id. |
{
"alternateId": "string",
"name": "string",
"description": "string",
"tags": [
"string"
],
"logic": "string"
}
{
"id": "string",
"alternateId": "string",
"name": "string",
"description": "string",
"logic": "string",
"tags": [
"string"
],
"usages": {
"toggles": [
{
"key": "string",
"description": "string",
"tags": [
"string"
],
"type": "boolean",
"targets": [
{
"logic": "string",
"value": null
}
],
"defaultValue": null,
"perpetual": true,
"meta": {
"createdAt": "2024-07-08T15:58:34.219+00:00",
"createdBy": "string",
"modifiedAt": "2024-07-08T15:58:34.219+00:00",
"modifiedBy": "string",
"deletedAt": "2024-07-08T15:58:34.219+00:00",
"deletedBy": "string"
}
}
]
},
"meta": {
"createdAt": "2024-07-08T15:58:34.219+00:00",
"createdBy": "string",
"modifiedAt": "2024-07-08T15:58:34.219+00:00",
"modifiedBy": "string",
"deletedAt": "2024-07-08T15:58:34.219+00:00",
"deletedBy": "string"
}
}
{
"message": "Unable to validate JWT. Please make sure a valid JWT is sent as an Authorization header or access token cookie.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "Resource with id 'a1b2c3d4' not found or you do not have permission to access it.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "An unknown error occurred",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
curl -X POST "https://api.hyphen.ai/api/organizations/{organizationId}/projects/{projectId}/segments/" \
-H "Content-Type: application/json" \
-d '{ "alternateId": "string", "name": "string", "description": "string", "tags": [ "string" ], "logic": "string"}'
const response = await fetch('https://api.hyphen.ai/api/organizations/{organizationId}/projects/{projectId}/segments/', {
method: 'POST',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify({ "alternateId": "string", "name": "string", "description": "string", "tags": [ "string" ], "logic": "string"})
});
const data = await response.json();
import requests
response = requests.post(
'https://api.hyphen.ai/api/organizations/{organizationId}/projects/{projectId}/segments/',
headers={
'Content-Type': 'application/json'
},
json={ "alternateId": "string", "name": "string", "description": "string", "tags": [ "string" ], "logic": "string"}
)
data = response.json()
| Name | Type | In | Description |
|---|---|---|---|
| organizationId * | string | path | The organization Id. |
| projectId * | string | path | The project Id or alternate Id. |
| segmentId * | string | path | The segment id or alternate id. |
{
"id": "string",
"alternateId": "string",
"name": "string",
"description": "string",
"logic": "string",
"tags": [
"string"
],
"usages": {
"toggles": [
{
"key": "string",
"description": "string",
"tags": [
"string"
],
"type": "boolean",
"targets": [
{
"logic": "string",
"value": null
}
],
"defaultValue": null,
"perpetual": true,
"meta": {
"createdAt": "2024-07-08T15:58:34.219+00:00",
"createdBy": "string",
"modifiedAt": "2024-07-08T15:58:34.219+00:00",
"modifiedBy": "string",
"deletedAt": "2024-07-08T15:58:34.219+00:00",
"deletedBy": "string"
}
}
]
},
"meta": {
"createdAt": "2024-07-08T15:58:34.219+00:00",
"createdBy": "string",
"modifiedAt": "2024-07-08T15:58:34.219+00:00",
"modifiedBy": "string",
"deletedAt": "2024-07-08T15:58:34.219+00:00",
"deletedBy": "string"
}
}
{
"message": "Unable to validate JWT. Please make sure a valid JWT is sent as an Authorization header or access token cookie.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "Resource with id 'a1b2c3d4' not found or you do not have permission to access it.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "An unknown error occurred",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
curl -X GET "https://api.hyphen.ai/api/organizations/{organizationId}/projects/{projectId}/segments/{segmentId}"
const response = await fetch('https://api.hyphen.ai/api/organizations/{organizationId}/projects/{projectId}/segments/{segmentId}', {
method: 'GET'
});
const data = await response.json();
import requests
response = requests.get('https://api.hyphen.ai/api/organizations/{organizationId}/projects/{projectId}/segments/{segmentId}')
data = response.json()
| Name | Type | In | Description |
|---|---|---|---|
| organizationId * | string | path | The organization Id. |
| projectId * | string | path | The project Id or alternate Id. |
| segmentId * | string | path | The segment id or alternate id. |
{
"message": "Unable to validate JWT. Please make sure a valid JWT is sent as an Authorization header or access token cookie.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "Resource with id 'a1b2c3d4' not found or you do not have permission to access it.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "An unknown error occurred",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
curl -X DELETE "https://api.hyphen.ai/api/organizations/{organizationId}/projects/{projectId}/segments/{segmentId}"
const response = await fetch('https://api.hyphen.ai/api/organizations/{organizationId}/projects/{projectId}/segments/{segmentId}', {
method: 'DELETE'
});
const data = await response.json();
import requests
response = requests.delete('https://api.hyphen.ai/api/organizations/{organizationId}/projects/{projectId}/segments/{segmentId}')
data = response.json()
| Name | Type | In | Description |
|---|---|---|---|
| organizationId * | string | path | The organization Id. |
| projectId * | string | path | The project Id or alternate Id. |
| segmentId * | string | path | The segment id or alternate id. |
{
"name": "string",
"description": "string",
"tags": [
"string"
],
"logic": "string"
}
{
"id": "string",
"alternateId": "string",
"name": "string",
"description": "string",
"logic": "string",
"tags": [
"string"
],
"usages": {
"toggles": [
{
"key": "string",
"description": "string",
"tags": [
"string"
],
"type": "boolean",
"targets": [
{
"logic": "string",
"value": null
}
],
"defaultValue": null,
"perpetual": true,
"meta": {
"createdAt": "2024-07-08T15:58:34.219+00:00",
"createdBy": "string",
"modifiedAt": "2024-07-08T15:58:34.219+00:00",
"modifiedBy": "string",
"deletedAt": "2024-07-08T15:58:34.219+00:00",
"deletedBy": "string"
}
}
]
},
"meta": {
"createdAt": "2024-07-08T15:58:34.219+00:00",
"createdBy": "string",
"modifiedAt": "2024-07-08T15:58:34.219+00:00",
"modifiedBy": "string",
"deletedAt": "2024-07-08T15:58:34.219+00:00",
"deletedBy": "string"
}
}
{
"message": "Unable to validate JWT. Please make sure a valid JWT is sent as an Authorization header or access token cookie.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "Resource with id 'a1b2c3d4' not found or you do not have permission to access it.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "An unknown error occurred",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
curl -X PATCH "https://api.hyphen.ai/api/organizations/{organizationId}/projects/{projectId}/segments/{segmentId}" \
-H "Content-Type: application/json" \
-d '{ "name": "string", "description": "string", "tags": [ "string" ], "logic": "string"}'
const response = await fetch('https://api.hyphen.ai/api/organizations/{organizationId}/projects/{projectId}/segments/{segmentId}', {
method: 'PATCH',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify({ "name": "string", "description": "string", "tags": [ "string" ], "logic": "string"})
});
const data = await response.json();
import requests
response = requests.patch(
'https://api.hyphen.ai/api/organizations/{organizationId}/projects/{projectId}/segments/{segmentId}',
headers={
'Content-Type': 'application/json'
},
json={ "name": "string", "description": "string", "tags": [ "string" ], "logic": "string"}
)
data = response.json()
| Name | Type | In | Description |
|---|---|---|---|
| pageNum | integer | query | The page number. |
| pageSize | integer | query | The page size. |
| search | string | query | Search for segments by name or description |
| organizationId * | string | path | The organization Id. |
{
"data": [
{
"id": "string",
"alternateId": "string",
"name": "string",
"description": "string",
"logic": "string",
"tags": [
"string"
],
"usages": {
"toggles": [
{
"key": "string",
"description": "string",
"tags": [
"string"
],
"type": "boolean",
"targets": [
{
"logic": "string",
"value": null
}
],
"defaultValue": null,
"perpetual": true,
"meta": {
"createdAt": "2024-07-08T15:58:34.219+00:00",
"createdBy": "string",
"modifiedAt": "2024-07-08T15:58:34.219+00:00",
"modifiedBy": "string",
"deletedAt": "2024-07-08T15:58:34.219+00:00",
"deletedBy": "string"
}
}
]
},
"meta": {
"createdAt": "2024-07-08T15:58:34.219+00:00",
"createdBy": "string",
"modifiedAt": "2024-07-08T15:58:34.219+00:00",
"modifiedBy": "string",
"deletedAt": "2024-07-08T15:58:34.219+00:00",
"deletedBy": "string"
},
"project": {
"id": "string",
"alternateId": "string",
"name": "string"
},
"organization": {
"id": "string",
"name": "string"
}
}
],
"total": 0,
"pageNum": 0,
"pageSize": 0
}
{
"message": "Unable to validate JWT. Please make sure a valid JWT is sent as an Authorization header or access token cookie.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "Resource with id 'a1b2c3d4' not found or you do not have permission to access it.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "An unknown error occurred",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
curl -X GET "https://api.hyphen.ai/api/organizations/{organizationId}/segments/?pageNum={pageNum}&pageSize={pageSize}&search={search}"
const response = await fetch('https://api.hyphen.ai/api/organizations/{organizationId}/segments/?pageNum={pageNum}&pageSize={pageSize}&search={search}', {
method: 'GET'
});
const data = await response.json();
import requests
response = requests.get(
'https://api.hyphen.ai/api/organizations/{organizationId}/segments/',
params={
'pageNum': '{pageNum}',
'pageSize': '{pageSize}',
'search': '{search}'
}
)
data = response.json()
Toggles
| Name | Type | In | Description |
|---|---|---|---|
| organizationId * | string | path | The organization Id. |
| projectId * | string | path | The project Id or alternate Id. |
{
"data": [
{
"key": "string",
"description": "string",
"tags": [
"string"
],
"type": "boolean",
"targets": [
{
"logic": "string",
"value": null
}
],
"defaultValue": null,
"perpetual": true,
"meta": {
"createdAt": "2024-07-08T15:58:34.219+00:00",
"createdBy": "string",
"modifiedAt": "2024-07-08T15:58:34.219+00:00",
"modifiedBy": "string",
"deletedAt": "2024-07-08T15:58:34.219+00:00",
"deletedBy": "string"
}
}
]
}
{
"message": "Unable to validate JWT. Please make sure a valid JWT is sent as an Authorization header or access token cookie.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "Resource with id 'a1b2c3d4' not found or you do not have permission to access it.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "An unknown error occurred",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
curl -X GET "https://api.hyphen.ai/api/organizations/{organizationId}/projects/{projectId}/toggles/"
const response = await fetch('https://api.hyphen.ai/api/organizations/{organizationId}/projects/{projectId}/toggles/', {
method: 'GET'
});
const data = await response.json();
import requests
response = requests.get('https://api.hyphen.ai/api/organizations/{organizationId}/projects/{projectId}/toggles/')
data = response.json()
| Name | Type | In | Description |
|---|---|---|---|
| organizationId * | string | path | The organization Id. |
| projectId * | string | path | The project Id or alternate Id. |
{
"key": "string",
"description": "string",
"tags": [
"string"
],
"type": "boolean",
"targets": [
{
"logic": "string",
"value": null
}
],
"defaultValue": null,
"perpetual": true
}
{
"key": "string",
"description": "string",
"tags": [
"string"
],
"type": "boolean",
"targets": [
{
"logic": "string",
"value": null
}
],
"defaultValue": null,
"perpetual": true,
"meta": {
"createdAt": "2024-07-08T15:58:34.219+00:00",
"createdBy": "string",
"modifiedAt": "2024-07-08T15:58:34.219+00:00",
"modifiedBy": "string",
"deletedAt": "2024-07-08T15:58:34.219+00:00",
"deletedBy": "string"
}
}
{
"message": "Unable to validate JWT. Please make sure a valid JWT is sent as an Authorization header or access token cookie.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "Resource with id 'a1b2c3d4' not found or you do not have permission to access it.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "An unknown error occurred",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
curl -X POST "https://api.hyphen.ai/api/organizations/{organizationId}/projects/{projectId}/toggles/" \
-H "Content-Type: application/json" \
-d '{ "key": "string", "description": "string", "tags": [ "string" ], "type": "boolean", "targets": [ { "logic": "string", "value": null } ], "defaultValue": null, "perpetual": true}'
const response = await fetch('https://api.hyphen.ai/api/organizations/{organizationId}/projects/{projectId}/toggles/', {
method: 'POST',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify({ "key": "string", "description": "string", "tags": [ "string" ], "type": "boolean", "targets": [ { "logic": "string", "value": null } ], "defaultValue": null, "perpetual": true})
});
const data = await response.json();
import requests
response = requests.post(
'https://api.hyphen.ai/api/organizations/{organizationId}/projects/{projectId}/toggles/',
headers={
'Content-Type': 'application/json'
},
json={ "key": "string", "description": "string", "tags": [ "string" ], "type": "boolean", "targets": [ { "logic": "string", "value": null } ], "defaultValue": null, "perpetual": true}
)
data = response.json()
| Name | Type | In | Description |
|---|---|---|---|
| organizationId * | string | path | The organization Id. |
| projectId * | string | path | The project Id or alternate Id. |
| toggleKey * | string | path | The toggle key. |
{
"id": "string",
"key": "string",
"description": "string",
"tags": [
"string"
],
"type": "boolean",
"targets": [
{
"logic": "string",
"value": null
}
],
"defaultValue": null,
"perpetual": true,
"meta": {
"createdAt": "2024-07-08T15:58:34.219+00:00",
"createdBy": "string",
"modifiedAt": "2024-07-08T15:58:34.219+00:00",
"modifiedBy": "string",
"deletedAt": "2024-07-08T15:58:34.219+00:00",
"deletedBy": "string"
}
}
{
"message": "Unable to validate JWT. Please make sure a valid JWT is sent as an Authorization header or access token cookie.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "Resource with id 'a1b2c3d4' not found or you do not have permission to access it.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "An unknown error occurred",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
curl -X GET "https://api.hyphen.ai/api/organizations/{organizationId}/projects/{projectId}/toggles/{toggleKey}"
const response = await fetch('https://api.hyphen.ai/api/organizations/{organizationId}/projects/{projectId}/toggles/{toggleKey}', {
method: 'GET'
});
const data = await response.json();
import requests
response = requests.get('https://api.hyphen.ai/api/organizations/{organizationId}/projects/{projectId}/toggles/{toggleKey}')
data = response.json()
| Name | Type | In | Description |
|---|---|---|---|
| organizationId * | string | path | The organization Id. |
| projectId * | string | path | The project Id or alternate Id. |
| toggleKey * | string | path | The toggle key. |
{
"message": "Unable to validate JWT. Please make sure a valid JWT is sent as an Authorization header or access token cookie.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "Resource with id 'a1b2c3d4' not found or you do not have permission to access it.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "An unknown error occurred",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
curl -X DELETE "https://api.hyphen.ai/api/organizations/{organizationId}/projects/{projectId}/toggles/{toggleKey}"
const response = await fetch('https://api.hyphen.ai/api/organizations/{organizationId}/projects/{projectId}/toggles/{toggleKey}', {
method: 'DELETE'
});
const data = await response.json();
import requests
response = requests.delete('https://api.hyphen.ai/api/organizations/{organizationId}/projects/{projectId}/toggles/{toggleKey}')
data = response.json()
| Name | Type | In | Description |
|---|---|---|---|
| organizationId * | string | path | The organization Id. |
| projectId * | string | path | The project Id or alternate Id. |
| toggleKey * | string | path | The toggle key. |
{
"description": "string",
"tags": [
"string"
],
"targets": [
{
"logic": "string",
"value": null
}
],
"defaultValue": null,
"perpetual": true
}
{
"key": "string",
"description": "string",
"tags": [
"string"
],
"type": "boolean",
"targets": [
{
"logic": "string",
"value": null
}
],
"defaultValue": null,
"perpetual": true,
"meta": {
"createdAt": "2024-07-08T15:58:34.219+00:00",
"createdBy": "string",
"modifiedAt": "2024-07-08T15:58:34.219+00:00",
"modifiedBy": "string",
"deletedAt": "2024-07-08T15:58:34.219+00:00",
"deletedBy": "string"
}
}
{
"message": "Unable to validate JWT. Please make sure a valid JWT is sent as an Authorization header or access token cookie.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "Resource with id 'a1b2c3d4' not found or you do not have permission to access it.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "An unknown error occurred",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
curl -X PATCH "https://api.hyphen.ai/api/organizations/{organizationId}/projects/{projectId}/toggles/{toggleKey}" \
-H "Content-Type: application/json" \
-d '{ "description": "string", "tags": [ "string" ], "targets": [ { "logic": "string", "value": null } ], "defaultValue": null, "perpetual": true}'
const response = await fetch('https://api.hyphen.ai/api/organizations/{organizationId}/projects/{projectId}/toggles/{toggleKey}', {
method: 'PATCH',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify({ "description": "string", "tags": [ "string" ], "targets": [ { "logic": "string", "value": null } ], "defaultValue": null, "perpetual": true})
});
const data = await response.json();
import requests
response = requests.patch(
'https://api.hyphen.ai/api/organizations/{organizationId}/projects/{projectId}/toggles/{toggleKey}',
headers={
'Content-Type': 'application/json'
},
json={ "description": "string", "tags": [ "string" ], "targets": [ { "logic": "string", "value": null } ], "defaultValue": null, "perpetual": true}
)
data = response.json()
| Name | Type | In | Description |
|---|---|---|---|
| organizationId * | string | path | The organization ID. |
{
"data": [
{
"key": "string",
"description": "string",
"tags": [
"string"
],
"type": "boolean",
"targets": [
{
"logic": "string",
"value": null
}
],
"defaultValue": null,
"perpetual": true,
"meta": {
"createdAt": "2024-07-08T15:58:34.219+00:00",
"createdBy": "string",
"modifiedAt": "2024-07-08T15:58:34.219+00:00",
"modifiedBy": "string",
"deletedAt": "2024-07-08T15:58:34.219+00:00",
"deletedBy": "string"
},
"project": {
"id": "string",
"alternateId": "string",
"name": "string"
}
}
]
}
{
"message": "Unable to validate JWT. Please make sure a valid JWT is sent as an Authorization header or access token cookie.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "Resource with id 'a1b2c3d4' not found or you do not have permission to access it.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "An unknown error occurred",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
curl -X GET "https://api.hyphen.ai/api/organizations/{organizationId}/toggles/"
const response = await fetch('https://api.hyphen.ai/api/organizations/{organizationId}/toggles/', {
method: 'GET'
});
const data = await response.json();
import requests
response = requests.get('https://api.hyphen.ai/api/organizations/{organizationId}/toggles/')
data = response.json()
Teams
| Name | Type | In | Description |
|---|---|---|---|
| name | string | query | Filter by team name starts with (case insensitive) |
| organizationId * | string | path | The organization Id. |
{
"data": [
{
"id": "string",
"name": "string",
"type": "static",
"memberCount": 0,
"organization": {
"id": "string",
"name": "string"
},
"criteria": [
null
],
"distributionList": {
"name": "string",
"email": "string"
},
"channels": [
{
"id": "string",
"type": "slack"
}
]
}
]
}
{
"message": "Unable to validate JWT. Please make sure a valid JWT is sent as an Authorization header or access token cookie.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "An unknown error occurred",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
curl -X GET "https://api.hyphen.ai/api/organizations/{organizationId}/teams/?name={name}"
const response = await fetch('https://api.hyphen.ai/api/organizations/{organizationId}/teams/?name={name}', {
method: 'GET'
});
const data = await response.json();
import requests
response = requests.get(
'https://api.hyphen.ai/api/organizations/{organizationId}/teams/',
params={
'name': '{name}'
}
)
data = response.json()
| Name | Type | In | Description |
|---|---|---|---|
| organizationId * | string | path | The organization Id. |
{
"name": "string",
"type": "static",
"memberCount": 0,
"channels": [
{
"id": "string",
"type": "slack"
}
],
"criteria": [
{
"type": "property",
"field": "firstName",
"value": "string",
"operator": "equals"
}
]
}
{
"id": "string",
"name": "string",
"type": "static",
"memberCount": 0,
"organization": {
"id": "string",
"name": "string"
},
"criteria": [
null
],
"distributionList": {
"name": "string",
"email": "string"
},
"channels": [
{
"id": "string",
"type": "slack"
}
]
}
{
"message": "Invalid request body or query parameters",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "Unable to validate JWT. Please make sure a valid JWT is sent as an Authorization header or access token cookie.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "Resource with id 'a1b2c3d4' not found or you do not have permission to access it.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "The resource could not be created because of a conflict.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "An unknown error occurred",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
curl -X POST "https://api.hyphen.ai/api/organizations/{organizationId}/teams/" \
-H "Content-Type: application/json" \
-d '{ "name": "string", "type": "static", "memberCount": 0, "channels": [ { "id": "string", "type": "slack" } ], "criteria": [ { "type": "property", "field": "firstName", "value": "string", "operator": "equals" } ]}'
const response = await fetch('https://api.hyphen.ai/api/organizations/{organizationId}/teams/', {
method: 'POST',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify({ "name": "string", "type": "static", "memberCount": 0, "channels": [ { "id": "string", "type": "slack" } ], "criteria": [ { "type": "property", "field": "firstName", "value": "string", "operator": "equals" } ]})
});
const data = await response.json();
import requests
response = requests.post(
'https://api.hyphen.ai/api/organizations/{organizationId}/teams/',
headers={
'Content-Type': 'application/json'
},
json={ "name": "string", "type": "static", "memberCount": 0, "channels": [ { "id": "string", "type": "slack" } ], "criteria": [ { "type": "property", "field": "firstName", "value": "string", "operator": "equals" } ]}
)
data = response.json()
| Name | Type | In | Description |
|---|---|---|---|
| organizationId * | string | path | The organization Id. |
| teamId * | string | path | The team Id. |
{
"id": "string",
"name": "string",
"type": "static",
"memberCount": 0,
"organization": {
"id": "string",
"name": "string"
},
"criteria": [
null
],
"distributionList": {
"name": "string",
"email": "string"
},
"channels": [
{
"id": "string",
"type": "slack"
}
]
}
{
"message": "Unable to validate JWT. Please make sure a valid JWT is sent as an Authorization header or access token cookie.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "Resource with id 'a1b2c3d4' not found or you do not have permission to access it.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "An unknown error occurred",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
curl -X GET "https://api.hyphen.ai/api/organizations/{organizationId}/teams/{teamId}/"
const response = await fetch('https://api.hyphen.ai/api/organizations/{organizationId}/teams/{teamId}/', {
method: 'GET'
});
const data = await response.json();
import requests
response = requests.get('https://api.hyphen.ai/api/organizations/{organizationId}/teams/{teamId}/')
data = response.json()
| Name | Type | In | Description |
|---|---|---|---|
| organizationId * | string | path | The organization Id. |
| teamId * | string | path | The team Id. |
{
"message": "Unable to validate JWT. Please make sure a valid JWT is sent as an Authorization header or access token cookie.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "An unknown error occurred",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
curl -X DELETE "https://api.hyphen.ai/api/organizations/{organizationId}/teams/{teamId}/"
const response = await fetch('https://api.hyphen.ai/api/organizations/{organizationId}/teams/{teamId}/', {
method: 'DELETE'
});
const data = await response.json();
import requests
response = requests.delete('https://api.hyphen.ai/api/organizations/{organizationId}/teams/{teamId}/')
data = response.json()
| Name | Type | In | Description |
|---|---|---|---|
| organizationId * | string | path | The organization Id. |
| teamId * | string | path | The team Id. |
{
"name": "string",
"type": "static",
"memberCount": 0,
"channels": [
{
"id": "string",
"type": "slack"
}
],
"criteria": [
{
"type": "property",
"field": "firstName",
"value": "string",
"operator": "equals"
}
]
}
{
"id": "string",
"name": "string",
"type": "static",
"memberCount": 0,
"organization": {
"id": "string",
"name": "string"
},
"criteria": [
null
],
"distributionList": {
"name": "string",
"email": "string"
},
"channels": [
{
"id": "string",
"type": "slack"
}
]
}
{
"message": "Unable to validate JWT. Please make sure a valid JWT is sent as an Authorization header or access token cookie.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "Resource with id 'a1b2c3d4' not found or you do not have permission to access it.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "An unknown error occurred",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
curl -X PATCH "https://api.hyphen.ai/api/organizations/{organizationId}/teams/{teamId}/" \
-H "Content-Type: application/json" \
-d '{ "name": "string", "type": "static", "memberCount": 0, "channels": [ { "id": "string", "type": "slack" } ], "criteria": [ { "type": "property", "field": "firstName", "value": "string", "operator": "equals" } ]}'
const response = await fetch('https://api.hyphen.ai/api/organizations/{organizationId}/teams/{teamId}/', {
method: 'PATCH',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify({ "name": "string", "type": "static", "memberCount": 0, "channels": [ { "id": "string", "type": "slack" } ], "criteria": [ { "type": "property", "field": "firstName", "value": "string", "operator": "equals" } ]})
});
const data = await response.json();
import requests
response = requests.patch(
'https://api.hyphen.ai/api/organizations/{organizationId}/teams/{teamId}/',
headers={
'Content-Type': 'application/json'
},
json={ "name": "string", "type": "static", "memberCount": 0, "channels": [ { "id": "string", "type": "slack" } ], "criteria": [ { "type": "property", "field": "firstName", "value": "string", "operator": "equals" } ]}
)
data = response.json()
| Name | Type | In | Description |
|---|---|---|---|
| organizationId * | string | path | The organization Id. |
| teamId * | string | path | The team Id. |
{
"data": [
{
"id": "memb_66bf99b72a0043f841769880",
"firstName": "John",
"lastName": "Doe",
"nickname": "John Doe",
"email": "[email protected]",
"organization": {
"id": "org_66bf99b72a0043f841769880",
"name": "Organization Name"
},
"connectedAccounts": [
{
"type": "github",
"identifier": "hyphenated-username",
"profileUrl": "https://github.com/hyphenated-username"
},
{
"type": "npm",
"identifier": "npm-username",
"email": "[email protected]"
},
{
"type": "newRelic",
"identifier": "newrelic-userid",
"email": "[email protected]"
},
{
"type": "incidentIo",
"identifier": "incident-io-userid",
"email": "[email protected]"
}
]
}
]
}
{
"message": "Unable to validate JWT. Please make sure a valid JWT is sent as an Authorization header or access token cookie.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "An unknown error occurred",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
curl -X GET "https://api.hyphen.ai/api/organizations/{organizationId}/teams/{teamId}/members"
const response = await fetch('https://api.hyphen.ai/api/organizations/{organizationId}/teams/{teamId}/members', {
method: 'GET'
});
const data = await response.json();
import requests
response = requests.get('https://api.hyphen.ai/api/organizations/{organizationId}/teams/{teamId}/members')
data = response.json()
| Name | Type | In | Description |
|---|---|---|---|
| organizationId * | string | path | The organization Id. |
| teamId * | string | path | The team Id. |
{}
{
"message": "Invalid request body or query parameters",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "Unable to validate JWT. Please make sure a valid JWT is sent as an Authorization header or access token cookie.",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
{
"message": "An unknown error occurred",
"requestId": "a1b2c3d4",
"errorCode": "a1b2c3d4"
}
curl -X PUT "https://api.hyphen.ai/api/organizations/{organizationId}/teams/{teamId}/members" \
-H "Content-Type: application/json" \
-d '{}'
const response = await fetch('https://api.hyphen.ai/api/organizations/{organizationId}/teams/{teamId}/members', {
method: 'PUT',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify({})
});
const data = await response.json();
import requests
response = requests.put(
'https://api.hyphen.ai/api/organizations/{organizationId}/teams/{teamId}/members',
headers={
'Content-Type': 'application/json'
},
json={}
)
data = response.json()
| Name | Type | In | Description |
|---|---|---|---|
| organizationId * | string | path | |
| teamId * | string | path | |
| memberId * | string | path |
curl -X DELETE "https://api.hyphen.ai/api/organizations/{organizationId}/teams/{teamId}/members/{memberId}"
const response = await fetch('https://api.hyphen.ai/api/organizations/{organizationId}/teams/{teamId}/members/{memberId}', {
method: 'DELETE'
});
const data = await response.json();
import requests
response = requests.delete('https://api.hyphen.ai/api/organizations/{organizationId}/teams/{teamId}/members/{memberId}')
data = response.json()
Public Keys
| Name | Type | In | Description |
|---|---|---|---|
| organizationId | string | query | |
| projectId | string | query | The project Id or alternate Id. |
curl -X GET "https://api.hyphen.ai/api/public-keys/?organizationId={organizationId}&projectId={projectId}"
const response = await fetch('https://api.hyphen.ai/api/public-keys/?organizationId={organizationId}&projectId={projectId}', {
method: 'GET'
});
const data = await response.json();
import requests
response = requests.get(
'https://api.hyphen.ai/api/public-keys/',
params={
'organizationId': '{organizationId}',
'projectId': '{projectId}'
}
)
data = response.json()
{
"organizationId": "string",
"projectId": "string",
"name": "string"
}
curl -X POST "https://api.hyphen.ai/api/public-keys/" \
-H "Content-Type: application/json" \
-d '{ "organizationId": "string", "projectId": "string", "name": "string"}'
const response = await fetch('https://api.hyphen.ai/api/public-keys/', {
method: 'POST',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify({ "organizationId": "string", "projectId": "string", "name": "string"})
});
const data = await response.json();
import requests
response = requests.post(
'https://api.hyphen.ai/api/public-keys/',
headers={
'Content-Type': 'application/json'
},
json={ "organizationId": "string", "projectId": "string", "name": "string"}
)
data = response.json()
| Name | Type | In | Description |
|---|---|---|---|
| id * | string | path | Public Key ID or the Key itself |
curl -X GET "https://api.hyphen.ai/api/public-keys/{id}"
const response = await fetch('https://api.hyphen.ai/api/public-keys/{id}', {
method: 'GET'
});
const data = await response.json();
import requests
response = requests.get('https://api.hyphen.ai/api/public-keys/{id}')
data = response.json()
net.info API
v3.6.6Enable location-based experiences, security and analytics with city-level ip geolocation information, including latitude, longitude, time zone, postal code, and more.
Free IP geolocation. No API key is required. Legacy API-key headers are ignored.
Sources and Licenses explains the data providers, attribution requirements, and our work on geo-db.org.
To learn more about this service visit net.info
https://net.info
ip address
{
"ip": "string",
"type": "private",
"location": {
"country": "string",
"region": "string",
"city": "string",
"lat": 0,
"lng": 0,
"postalCode": "string",
"timezone": "string",
"geonameId": 0
}
}
{
"statusCode": 400,
"error": "Bad Request",
"message": "Invalid IP Address"
}
{
"statusCode": 404,
"error": "Not Found",
"message": "IP Address not found: ::1"
}
{
"statusCode": 429,
"error": "Too Many Requests",
"message": "Lookup quota exceeded: the request costs 3; retry after 2s"
}
{
"statusCode": 500,
"error": "Internal Server Error",
"message": "Unable to lookup Ip: ::1"
}
{
"statusCode": 503,
"error": "Service Unavailable",
"message": "The lookup quota is unavailable"
}
curl -X GET "https://net.info/ip"
const response = await fetch('https://net.info/ip', {
method: 'GET'
});
const data = await response.json();
import requests
response = requests.get('https://net.info/ip')
data = response.json()
[
"string"
]
{
"data": [
null
]
}
{
"statusCode": 400,
"error": "Bad Request",
"message": "Invalid IP Address"
}
{
"statusCode": 429,
"error": "Too Many Requests",
"message": "Lookup quota exceeded: the request costs 3; retry after 2s"
}
{
"statusCode": 503,
"error": "Service Unavailable",
"message": "The lookup quota is unavailable"
}
curl -X POST "https://net.info/ip" \
-H "Content-Type: application/json" \
-d '[ "string"]'
const response = await fetch('https://net.info/ip', {
method: 'POST',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify([ "string"])
});
const data = await response.json();
import requests
response = requests.post(
'https://net.info/ip',
headers={
'Content-Type': 'application/json'
},
json=[ "string"]
)
data = response.json()
| Name | Type | In | Description |
|---|---|---|---|
| ipAddress * | string | path | The IP address. |
{
"ip": "string",
"type": "private",
"location": {
"country": "string",
"region": "string",
"city": "string",
"lat": 0,
"lng": 0,
"postalCode": "string",
"timezone": "string",
"geonameId": 0
}
}
{
"statusCode": 400,
"error": "Bad Request",
"message": "Invalid IP Address"
}
{
"statusCode": 404,
"error": "Not Found",
"message": "IP Address not found: ::1"
}
{
"statusCode": 429,
"error": "Too Many Requests",
"message": "Lookup quota exceeded: the request costs 3; retry after 2s"
}
{
"statusCode": 500,
"error": "Internal Server Error",
"message": "Unable to lookup Ip: ::1"
}
{
"statusCode": 503,
"error": "Service Unavailable",
"message": "The lookup quota is unavailable"
}
curl -X GET "https://net.info/ip/{ipAddress}"
const response = await fetch('https://net.info/ip/{ipAddress}', {
method: 'GET'
});
const data = await response.json();
import requests
response = requests.get('https://net.info/ip/{ipAddress}')
data = response.json()
speed test
Lightweight endpoint for measuring latency and jitter, at rest and while a transfer loads the link. A failed probe is a failed HTTP request, not a lost packet.
{
"t": 0
}
curl -X GET "https://net.info/speedtest/ping"
const response = await fetch('https://net.info/speedtest/ping', {
method: 'GET'
});
const data = await response.json();
import requests
response = requests.get('https://net.info/speedtest/ping')
data = response.json()
Streams incompressible random data for measuring download throughput.
| Name | Type | In | Description |
|---|---|---|---|
| bytes | integer | query | Number of bytes to stream. |
curl -X GET "https://net.info/speedtest/download?bytes={bytes}"
const response = await fetch('https://net.info/speedtest/download?bytes={bytes}', {
method: 'GET'
});
const data = await response.json();
import requests
response = requests.get(
'https://net.info/speedtest/download',
params={
'bytes': '{bytes}'
}
)
data = response.json()
Accepts and discards an octet-stream body, returning the number of bytes received.
{
"bytes": 0
}
curl -X POST "https://net.info/speedtest/upload"
const response = await fetch('https://net.info/speedtest/upload', {
method: 'POST'
});
const data = await response.json();
import requests
response = requests.post('https://net.info/speedtest/upload')
data = response.json()
Returns the caller's own IP geolocation and ISP/ASN for the speed test UI.
{
"ip": "string",
"type": "private",
"location": {
"country": "string",
"region": "string",
"city": "string",
"lat": 0,
"lng": 0,
"postalCode": "string",
"timezone": "string"
},
"dataVersion": "string",
"confirmations": {
"retentionDays": 0
},
"isp": {
"asn": 0,
"asnOrg": "string"
}
}
curl -X GET "https://net.info/speedtest/whoami"
const response = await fetch('https://net.info/speedtest/whoami', {
method: 'GET'
});
const data = await response.json();
import requests
response = requests.get('https://net.info/speedtest/whoami')
data = response.json()
Records a user-suggested correction to their detected location.
{
"detected": {
"country": "string",
"region": "string",
"city": "string",
"lat": 0,
"lng": 0,
"postalCode": "string"
},
"suggested": {
"country": "string",
"region": "string",
"city": "string",
"lat": 0,
"lng": 0,
"postalCode": "string"
},
"browserLocation": {
"lat": 0,
"lng": 0,
"accuracy": 0
}
}
{
"id": "string",
"status": "string"
}
curl -X POST "https://net.info/speedtest/location-suggestion" \
-H "Content-Type: application/json" \
-d '{ "detected": { "country": "string", "region": "string", "city": "string", "lat": 0, "lng": 0, "postalCode": "string" }, "suggested": { "country": "string", "region": "string", "city": "string", "lat": 0, "lng": 0, "postalCode": "string" }, "browserLocation": { "lat": 0, "lng": 0, "accuracy": 0 }}'
const response = await fetch('https://net.info/speedtest/location-suggestion', {
method: 'POST',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify({ "detected": { "country": "string", "region": "string", "city": "string", "lat": 0, "lng": 0, "postalCode": "string" }, "suggested": { "country": "string", "region": "string", "city": "string", "lat": 0, "lng": 0, "postalCode": "string" }, "browserLocation": { "lat": 0, "lng": 0, "accuracy": 0 }})
});
const data = await response.json();
import requests
response = requests.post(
'https://net.info/speedtest/location-suggestion',
headers={
'Content-Type': 'application/json'
},
json={ "detected": { "country": "string", "region": "string", "city": "string", "lat": 0, "lng": 0, "postalCode": "string" }, "suggested": { "country": "string", "region": "string", "city": "string", "lat": 0, "lng": 0, "postalCode": "string" }, "browserLocation": { "lat": 0, "lng": 0, "accuracy": 0 }}
)
data = response.json()
Records that the location detected for the caller's address is right. The service detects the location again and records it with the version of the data it came from, keeping the record for the number of days whoami reports. If that location or data version no longer matches the one confirmed, nothing is recorded and the answer is 409. While confirmations are not recorded, the answer is 404.
{
"id": "string",
"dataVersion": "string",
"purposeVersion": "string",
"detected": {
"country": "string",
"region": "string",
"city": "string"
},
"browserLocation": {
"lat": 0,
"lng": 0,
"accuracy": 0
}
}
{
"id": "string",
"status": "string"
}
curl -X POST "https://net.info/speedtest/location-confirmation" \
-H "Content-Type: application/json" \
-d '{ "id": "string", "dataVersion": "string", "purposeVersion": "string", "detected": { "country": "string", "region": "string", "city": "string" }, "browserLocation": { "lat": 0, "lng": 0, "accuracy": 0 }}'
const response = await fetch('https://net.info/speedtest/location-confirmation', {
method: 'POST',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify({ "id": "string", "dataVersion": "string", "purposeVersion": "string", "detected": { "country": "string", "region": "string", "city": "string" }, "browserLocation": { "lat": 0, "lng": 0, "accuracy": 0 }})
});
const data = await response.json();
import requests
response = requests.post(
'https://net.info/speedtest/location-confirmation',
headers={
'Content-Type': 'application/json'
},
json={ "id": "string", "dataVersion": "string", "purposeVersion": "string", "detected": { "country": "string", "region": "string", "city": "string" }, "browserLocation": { "lat": 0, "lng": 0, "accuracy": 0 }}
)
data = response.json()