Organizations
Organizations are a container for projects, domains, and KV databases. API access tokens are scoped to access resources within an organization.
Get organization details
/v1/organizations/{organizationId}
Parameters
Name | Type | Description |
---|---|---|
organizationId (required) | string (uuid) | Organization ID |
Responses
- Success (200)
- Invalid Request (400)
- Unauthorized (401)
- Not Found (404)
Response Type
application/json
Response Properties
Name | Type | Description |
---|---|---|
id | string (uuid) | |
name | string | |
createdAt | string (date-time) | |
updatedAt | string (date-time) |
Example
{
"id": "a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11",
"name": "my-org",
"createdAt": "2021-08-01T00:00:00Z",
"updatedAt": "2021-08-01T00:00:00Z"
}
Response Type
application/json
Response Properties
Name | Type | Description |
---|---|---|
code | string | The error code |
message | string | The error message |
Response Type
application/json
Response Properties
Name | Type | Description |
---|---|---|
code | string | The error code |
message | string | The error message |
Response Type
application/json
Response Properties
Name | Type | Description |
---|---|---|
code | string | The error code |
message | string | The error message |
Get analytics for organization
/v1/organizations/{organizationId}/analytics
Parameters
Name | Type | Description |
---|---|---|
organizationId (required) | string (uuid) | Organization ID |
since (required) | string (date-time) | Start of the time range in RFC3339 format. Defaults to 24 hours ago. Note that the maximum allowed time range is 24 hours. |
until (required) | string (date-time) | End of the time range in RFC3339 format. Defaults to the current time. Note that the maximum allowed time range is 24 hours. |
Responses
- Success (200)
- Invalid Request (400)
- Unauthorized (401)
- Not Found (404)
Response Type
application/json
Response Properties
Name | Type | Description |
---|---|---|
fields | array | |
values | array |
Example
{
"fields": [
{
"name": "time",
"type": "time"
},
{
"name": "requestCount",
"type": "number"
},
{
"name": "cpuSeconds",
"type": "number"
},
{
"name": "uptimeSeconds",
"type": "number"
},
{
"name": "maxRssMemoryBytes",
"type": "number"
},
{
"name": "networkIngressBytes",
"type": "number"
},
{
"name": "networkEgressBytes",
"type": "number"
},
{
"name": "kvReadCount",
"type": "number"
},
{
"name": "kvWriteCount",
"type": "number"
},
{
"name": "kvReadUnits",
"type": "number"
},
{
"name": "kvWriteUnits",
"type": "number"
}
],
"values": [
[
"2023-08-01T00:00:00Z",
111,
111,
111,
111,
111,
111,
111,
111,
111,
111
],
[
"2023-08-01T00:15:00Z",
222,
222,
222,
222,
222,
222,
222,
222,
222,
222
],
[
"2023-08-01T00:30:00Z",
333,
333,
333,
333,
333,
333,
333,
333,
333,
333
],
[
"2023-08-01T00:45:00Z",
444,
444,
444,
444,
444,
444,
444,
444,
444,
444
],
[
"2023-08-01T01:00:00Z",
555,
555,
555,
555,
555,
555,
555,
555,
555,
555
]
]
}
Response Type
application/json
Response Properties
Name | Type | Description |
---|---|---|
code | string | The error code |
message | string | The error message |
Response Type
application/json
Response Properties
Name | Type | Description |
---|---|---|
code | string | The error code |
message | string | The error message |
Response Type
application/json
Response Properties
Name | Type | Description |
---|---|---|
code | string | The error code |
message | string | The error message |
List projects for an organization
/v1/organizations/{organizationId}/projects
Link
header of the response.Parameters
Name | Type | Description |
---|---|---|
page | integer | |
limit | integer | |
organizationId (required) | string (uuid) | Organization ID |
Responses
- Success (200)
- Invalid Request (400)
- Unauthorized (401)
- Not Found (404)
Response Type
application/json
Response Properties
Name | Type | Description |
---|---|---|
id | string (uuid) | |
name | string | |
createdAt | string (date-time) | |
updatedAt | string (date-time) |
Example
[
{
"id": "a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11",
"name": "my-project",
"createdAt": "2021-08-01T00:00:00Z",
"updatedAt": "2021-08-01T00:00:00Z"
}
]
Response Type
application/json
Response Properties
Name | Type | Description |
---|---|---|
code | string | The error code |
message | string | The error message |
Response Type
application/json
Response Properties
Name | Type | Description |
---|---|---|
code | string | The error code |
message | string | The error message |
Response Type
application/json
Response Properties
Name | Type | Description |
---|---|---|
code | string | The error code |
message | string | The error message |
Create a new project for an organization
/v1/organizations/{organizationId}/projects
Parameters
Name | Type | Description |
---|---|---|
organizationId (required) | string (uuid) | Organization ID |
Request Body (JSON)
Name | Type | Description |
---|---|---|
name (nullable) | string | The name of the project. If this is |
Example Body
{
"name": "my-project"
}
Responses
- Success (200)
- Invalid Request (400)
- Unauthorized (401)
- Not Found (404)
Response Type
application/json
Response Properties
Name | Type | Description |
---|---|---|
id | string (uuid) | |
name | string | |
createdAt | string (date-time) | |
updatedAt | string (date-time) |
Example
{
"id": "a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11",
"name": "my-project",
"createdAt": "2021-08-01T00:00:00Z",
"updatedAt": "2021-08-01T00:00:00Z"
}
Response Type
application/json
Response Properties
Name | Type | Description |
---|---|---|
code | string | The error code |
message | string | The error message |
Response Type
application/json
Response Properties
Name | Type | Description |
---|---|---|
code | string | The error code |
message | string | The error message |
Response Type
application/json
Response Properties
Name | Type | Description |
---|---|---|
code | string | The error code |
message | string | The error message |
List an organization's KV databases
/v1/organizations/{organizationId}/databases
Link
header of the response.Parameters
Name | Type | Description |
---|---|---|
page | integer | |
limit | integer | |
organizationId (required) | string (uuid) | Organization ID |
Responses
- Success (200)
- Invalid Request (400)
- Unauthorized (401)
- Not Found (404)
Response Type
application/json
Response Properties
Name | Type | Description |
---|---|---|
id | string (uuid) | A KV database ID |
organizationId | string (uuid) | An organization ID that this KV database belongs to |
updatedAt | string (date-time) | |
createdAt | string (date-time) |
Response Type
application/json
Response Properties
Name | Type | Description |
---|---|---|
code | string | The error code |
message | string | The error message |
Response Type
application/json
Response Properties
Name | Type | Description |
---|---|---|
code | string | The error code |
message | string | The error message |
Response Type
application/json
Response Properties
Name | Type | Description |
---|---|---|
code | string | The error code |
message | string | The error message |
Create a KV database for an organization
/v1/organizations/{organizationId}/databases
Parameters
Name | Type | Description |
---|---|---|
organizationId (required) | string (uuid) | Organization ID |
Responses
- Success (200)
- Invalid Request (400)
- Unauthorized (401)
- Not Found (404)
Response Type
application/json
Response Properties
Name | Type | Description |
---|---|---|
id | string (uuid) | A KV database ID |
organizationId | string (uuid) | An organization ID that this KV database belongs to |
updatedAt | string (date-time) | |
createdAt | string (date-time) |
Response Type
application/json
Response Properties
Name | Type | Description |
---|---|---|
code | string | The error code |
message | string | The error message |
Response Type
application/json
Response Properties
Name | Type | Description |
---|---|---|
code | string | The error code |
message | string | The error message |
Response Type
application/json
Response Properties
Name | Type | Description |
---|---|---|
code | string | The error code |
message | string | The error message |
List an organization's domains
/v1/organizations/{organizationId}/domains
Link
header of the response.Parameters
Name | Type | Description |
---|---|---|
page | integer | |
limit | integer | |
organizationId (required) | string (uuid) | Organization ID |
Responses
- Success (200)
- Invalid Request (400)
- Unauthorized (401)
- Not Found (404)
Response Type
application/json
Response Properties
Name | Type | Description |
---|---|---|
id | string (uuid) | The ID of the domain. |
organizationId | string (uuid) | The ID of the organization that the domain is associated with. |
domain | string | The domain value. |
token | string | |
isValidated | boolean | Whether the domain's ownership is validated or not. |
certificates | array | TLS certificates for the domain. |
provisioningStatus | undefined | |
projectId | string (uuid) | The ID of the project that the domain is associated with. If the domain is not associated with any project, this field is omitted. |
createdAt | string (date-time) | |
updatedAt | string (date-time) | |
dnsRecords | array | These records are used to verify the ownership of the domain. |
Response Type
application/json
Response Properties
Name | Type | Description |
---|---|---|
code | string | The error code |
message | string | The error message |
Response Type
application/json
Response Properties
Name | Type | Description |
---|---|---|
code | string | The error code |
message | string | The error message |
Response Type
application/json
Response Properties
Name | Type | Description |
---|---|---|
code | string | The error code |
message | string | The error message |
Add a domain to an organization
/v1/organizations/{organizationId}/domains
Parameters
Name | Type | Description |
---|---|---|
organizationId (required) | string (uuid) | Organization ID |
Request Body (JSON)
Name | Type | Description |
---|---|---|
domain | string |
Responses
- Success (200)
- Invalid Request (400)
- Unauthorized (401)
- Not Found (404)
Response Type
application/json
Response Properties
Name | Type | Description |
---|---|---|
id | string (uuid) | The ID of the domain. |
organizationId | string (uuid) | The ID of the organization that the domain is associated with. |
domain | string | The domain value. |
token | string | |
isValidated | boolean | Whether the domain's ownership is validated or not. |
certificates | array | TLS certificates for the domain. |
provisioningStatus | undefined | |
projectId | string (uuid) | The ID of the project that the domain is associated with. If the domain is not associated with any project, this field is omitted. |
createdAt | string (date-time) | |
updatedAt | string (date-time) | |
dnsRecords | array | These records are used to verify the ownership of the domain. |
Response Type
application/json
Response Properties
Name | Type | Description |
---|---|---|
code | string | The error code |
message | string | The error message |
Response Type
application/json
Response Properties
Name | Type | Description |
---|---|---|
code | string | The error code |
message | string | The error message |
Response Type
application/json
Response Properties
Name | Type | Description |
---|---|---|
code | string | The error code |
message | string | The error message |