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 |
|---|---|---|---|
| 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 |
|---|---|---|---|
| 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. |
{
"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. |
| 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 |
|---|---|---|---|
| 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. |
| 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. |
| 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()
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()
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()
Integrations
{
"data": [
{
"type": "aws",
"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()
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()
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"
}
}
]
}
{
"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"
}
}
{
"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"
}
}
{
"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. |
| 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"
}
}
{
"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()
| 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()
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"
},
"availability": "99.000",
"scale": "small",
"trafficRegions": [
"na"
],
"projectEnvironment": {
"id": "string",
"alternateId": "string",
"name": "string"
}
}
}
],
"isReady": true,
"readinessIssues": [
{
"error": "string",
"target": "string",
"projectId": "string"
}
],
"previews": [
{
"id": "string",
"name": "string",
"hostPrefix": "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. |
{
"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"
},
"availability": "99.000",
"scale": "small",
"trafficRegions": [
"na"
]
}
}
]
}
{
"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"
},
"availability": "99.000",
"scale": "small",
"trafficRegions": [
"na"
],
"projectEnvironment": {
"id": "string",
"alternateId": "string",
"name": "string"
}
}
}
],
"isReady": true,
"readinessIssues": [
{
"error": "string",
"target": "string",
"projectId": "string"
}
],
"previews": [
{
"id": "string",
"name": "string",
"hostPrefix": "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 '{ "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" }, "availability": "99.000", "scale": "small", "trafficRegions": [ "na" ] } } ]}'
const response = await fetch('https://api.hyphen.ai/api/organizations/{organizationId}/deployments/', {
method: 'POST',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify({ "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" }, "availability": "99.000", "scale": "small", "trafficRegions": [ "na" ] } } ]})
});
const data = await response.json();
import requests
response = requests.post(
'https://api.hyphen.ai/api/organizations/{organizationId}/deployments/',
headers={
'Content-Type': 'application/json'
},
json={ "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" }, "availability": "99.000", "scale": "small", "trafficRegions": [ "na" ] } } ]}
)
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"
},
"availability": "99.000",
"scale": "small",
"trafficRegions": [
"na"
],
"projectEnvironment": {
"id": "string",
"alternateId": "string",
"name": "string"
}
}
}
],
"isReady": true,
"readinessIssues": [
{
"error": "string",
"target": "string",
"projectId": "string"
}
],
"previews": [
{
"id": "string",
"name": "string",
"hostPrefix": "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. |
{
"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"
},
"availability": "99.000",
"scale": "small",
"trafficRegions": [
"na"
]
}
}
]
}
{
"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"
},
"availability": "99.000",
"scale": "small",
"trafficRegions": [
"na"
],
"projectEnvironment": {
"id": "string",
"alternateId": "string",
"name": "string"
}
}
}
],
"isReady": true,
"readinessIssues": [
{
"error": "string",
"target": "string",
"projectId": "string"
}
],
"previews": [
{
"id": "string",
"name": "string",
"hostPrefix": "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 '{ "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" }, "availability": "99.000", "scale": "small", "trafficRegions": [ "na" ] } } ]}'
const response = await fetch('https://api.hyphen.ai/api/organizations/{organizationId}/deployments/{deploymentId}', {
method: 'PATCH',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify({ "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" }, "availability": "99.000", "scale": "small", "trafficRegions": [ "na" ] } } ]})
});
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={ "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" }, "availability": "99.000", "scale": "small", "trafficRegions": [ "na" ] } } ]}
)
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"
}
{
"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",
"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"
},
"availability": "99.000",
"scale": "small",
"trafficRegions": [
"na"
],
"projectEnvironment": {
"id": "string",
"alternateId": "string",
"name": "string"
}
}
}
],
"isReady": true,
"readinessIssues": [
{
"error": "string",
"target": "string",
"projectId": "string"
}
],
"previews": [
{
"id": "string",
"name": "string",
"hostPrefix": "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"
}
}
],
"artifacts": [
{
"appId": "string",
"artifact": {
"type": "Docker",
"target": "googleCloud",
"image": {
"uri": "string"
}
}
}
],
"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",
"ipAddress": "string",
"target": {
"id": "string",
"type": "aws"
},
"status": "Pending",
"archivedAt": "string"
}
],
"apps": [
{
"id": "string",
"app": {
"id": "string",
"name": "string"
},
"hostname": "string",
"path": "string",
"instances": [
{
"id": "string",
"location": "string",
"target": {
"id": "string",
"type": "aws"
},
"status": "Pending",
"url": "string",
"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",
"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"
},
"availability": "99.000",
"scale": "small",
"trafficRegions": [
"na"
],
"projectEnvironment": {
"id": "string",
"alternateId": "string",
"name": "string"
}
}
}
],
"isReady": true,
"readinessIssues": [
{
"error": "string",
"target": "string",
"projectId": "string"
}
],
"previews": [
{
"id": "string",
"name": "string",
"hostPrefix": "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"
}
}
],
"artifacts": [
{
"appId": "string",
"artifact": {
"type": "Docker",
"target": "googleCloud",
"image": {
"uri": "string"
}
}
}
],
"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",
"ipAddress": "string",
"target": {
"id": "string",
"type": "aws"
},
"status": "Pending",
"archivedAt": "string"
}
],
"apps": [
{
"id": "string",
"app": {
"id": "string",
"name": "string"
},
"hostname": "string",
"path": "string",
"instances": [
{
"id": "string",
"location": "string",
"target": {
"id": "string",
"type": "aws"
},
"status": "Pending",
"url": "string",
"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",
"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"
},
"availability": "99.000",
"scale": "small",
"trafficRegions": [
"na"
],
"projectEnvironment": {
"id": "string",
"alternateId": "string",
"name": "string"
}
}
}
],
"isReady": true,
"readinessIssues": [
{
"error": "string",
"target": "string",
"projectId": "string"
}
],
"previews": [
{
"id": "string",
"name": "string",
"hostPrefix": "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"
}
}
],
"artifacts": [
{
"appId": "string",
"artifact": {
"type": "Docker",
"target": "googleCloud",
"image": {
"uri": "string"
}
}
}
],
"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",
"ipAddress": "string",
"target": {
"id": "string",
"type": "aws"
},
"status": "Pending",
"archivedAt": "string"
}
],
"apps": [
{
"id": "string",
"app": {
"id": "string",
"name": "string"
},
"hostname": "string",
"path": "string",
"instances": [
{
"id": "string",
"location": "string",
"target": {
"id": "string",
"type": "aws"
},
"status": "Pending",
"url": "string",
"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"
},
"availability": "99.000",
"scale": "small",
"trafficRegions": [
"na"
],
"projectEnvironment": {
"id": "string",
"alternateId": "string",
"name": "string"
}
}
}
],
"isReady": true,
"readinessIssues": [
{
"error": "string",
"target": "string",
"projectId": "string"
}
],
"previews": [
{
"id": "string",
"name": "string",
"hostPrefix": "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()
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 |
|---|---|---|---|
| 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()
| 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()
.Env Files
| 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"
}
]
}
]
}
{
"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()
| 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()
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",
"organization": {
"id": "string",
"name": "string"
},
"references": [
{
"type": "BillingAccount",
"id": "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. |
null
{
"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",
"organization": {
"id": "string",
"name": "string"
},
"references": [
{
"type": "BillingAccount",
"id": "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": "The request was valid but could not be processed",
"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 'null'
const response = await fetch('https://api.hyphen.ai/api/organizations/{organizationId}/agent-tasks/', {
method: 'POST',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify(null)
});
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=null
)
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",
"organization": {
"id": "string",
"name": "string"
},
"references": [
{
"type": "BillingAccount",
"id": "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()
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()
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": "aws"
},
"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": "aws",
"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"
}
{
"id": "string",
"status": "Pending",
"type": "DistributionList",
"entity": {
"type": "Organization",
"id": "string",
"name": "string"
},
"organizationIntegration": {
"id": "string",
"type": "aws"
},
"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"}'
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"})
});
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"}
)
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": "aws"
},
"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 |
|---|---|---|---|
| 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()
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()
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()
Policies
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. |
{}
{
"id": "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": "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. |
{
"id": "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": "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. |
{}
{
"id": "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": "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 retrieve the effective policy for. |
| projectId | string | query | Optional project ID to match policies against |
| deploymentId | string | query | Optional deployment ID to match policies against |
| integrationId | string | query | Optional integration ID to match policies against |
| organizationId * | string | path | The organization Id. |
{
"id": "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": "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/effective/?type={type}&projectId={projectId}&deploymentId={deploymentId}&integrationId={integrationId}"
const response = await fetch('https://api.hyphen.ai/api/organizations/{organizationId}/policies/effective/?type={type}&projectId={projectId}&deploymentId={deploymentId}&integrationId={integrationId}', {
method: 'GET'
});
const data = await response.json();
import requests
response = requests.get(
'https://api.hyphen.ai/api/organizations/{organizationId}/policies/effective/',
params={
'type': '{type}',
'projectId': '{projectId}',
'deploymentId': '{deploymentId}',
'integrationId': '{integrationId}'
}
)
data = response.json()
Segments
| 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()
| 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()
Toggles
| 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()
| 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()
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()
Runs
| 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 | |
| organizationId * | string | path | The organization Id. |
{
"total": 0,
"pageNum": 0,
"pageSize": 0,
"data": [
{
"id": "string",
"organization": {
"id": "string",
"name": "string"
},
"status": "pending",
"type": "deployment",
"references": [
{
"type": "BillingAccount",
"id": "string"
}
],
"workflowId": "string",
"timing": {
"startTime": "string",
"endTime": "string"
},
"input": {
"key": "value"
},
"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/?pageNum={pageNum}&pageSize={pageSize}&type={type}&status={status}"
const response = await fetch('https://api.hyphen.ai/api/organizations/{organizationId}/runs/?pageNum={pageNum}&pageSize={pageSize}&type={type}&status={status}', {
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}'
}
)
data = response.json()
| 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",
"references": [
{
"type": "BillingAccount",
"id": "string"
}
],
"workflowId": "string",
"timing": {
"startTime": "string",
"endTime": "string"
},
"input": {
"key": "value"
},
"data": null
}
],
"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 |
|---|---|---|---|
| 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": "BillingAccount",
"id": "string"
}
],
"workflowId": "string",
"timing": {
"startTime": "string",
"endTime": "string"
},
"input": {
"key": "value"
},
"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 |
|---|---|---|---|
| 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",
"references": [
{
"type": "BillingAccount",
"id": "string"
}
],
"workflowId": "string",
"timing": {
"startTime": "string",
"endTime": "string"
},
"input": {
"key": "value"
},
"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}/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",
"references": [
{
"type": "BillingAccount",
"id": "string"
}
],
"workflowId": "string",
"timing": {
"startTime": "string",
"endTime": "string"
},
"input": {
"key": "value"
},
"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": "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",
"references": [
{
"type": "BillingAccount",
"id": "string"
}
],
"workflowId": "string",
"timing": {
"startTime": "string",
"endTime": "string"
},
"input": {
"key": "value"
},
"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}/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()
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()
Project Environments
| 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()
| 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()
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()
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()
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()
@net.info/net-info
v3.6.6Enable location-based experiences, security and analytics with city-level ip geolocation information, including latitude, longitude, time zone, postal code, and more.
To learn more about this service visit docs.hyphen.ai
ip address
| Name | Type | In | Description |
|---|---|---|---|
| organizationId | string | query | The organization Id. |
{
"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": 403,
"error": "Forbidden",
"message": "Forbidden"
}
{
"statusCode": 404,
"error": "Not Found",
"message": "IP Address not found: ::1"
}
{
"statusCode": 500,
"error": "Internal Server Error",
"message": "Unable to lookup Ip: ::1"
}
curl -X GET "/ip?organizationId={organizationId}"
const response = await fetch('/ip?organizationId={organizationId}', {
method: 'GET'
});
const data = await response.json();
import requests
response = requests.get(
'/ip',
params={
'organizationId': '{organizationId}'
}
)
data = response.json()
| Name | Type | In | Description |
|---|---|---|---|
| organizationId | string | query | The organization Id. |
[
"string"
]
{
"data": [
null
]
}
{
"statusCode": 400,
"error": "Bad Request",
"message": "Invalid IP Address"
}
{
"statusCode": 403,
"error": "Forbidden",
"message": "Forbidden"
}
curl -X POST "/ip?organizationId={organizationId}" \
-H "Content-Type: application/json" \
-d '[ "string"]'
const response = await fetch('/ip?organizationId={organizationId}', {
method: 'POST',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify([ "string"])
});
const data = await response.json();
import requests
response = requests.post(
'/ip',
params={
'organizationId': '{organizationId}'
},
headers={
'Content-Type': 'application/json'
},
json=[ "string"]
)
data = response.json()
| Name | Type | In | Description |
|---|---|---|---|
| organizationId | string | query | The organization Id. |
| 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": 403,
"error": "Forbidden",
"message": "Forbidden"
}
{
"statusCode": 404,
"error": "Not Found",
"message": "IP Address not found: ::1"
}
{
"statusCode": 500,
"error": "Internal Server Error",
"message": "Unable to lookup Ip: ::1"
}
curl -X GET "/ip/{ipAddress}?organizationId={organizationId}"
const response = await fetch('/ip/{ipAddress}?organizationId={organizationId}', {
method: 'GET'
});
const data = await response.json();
import requests
response = requests.get(
'/ip/{ipAddress}',
params={
'organizationId': '{organizationId}'
}
)
data = response.json()
system
Ping route to check server status
{
"pong": "string"
}
curl -X GET "/ping"
const response = await fetch('/ping', {
method: 'GET'
});
const data = await response.json();
import requests
response = requests.get('/ping')
data = response.json()
Health Check Route
{
"status": "string"
}
curl -X GET "/healthz"
const response = await fetch('/healthz', {
method: 'GET'
});
const data = await response.json();
import requests
response = requests.get('/healthz')
data = response.json()