Skip to content

Get Enterprise license state

GET
/orgs/{orgId}/enterprise
curl --request GET \
--url https://example.com/api/v1/orgs/example/enterprise \
--cookie better-auth.session_token=<better-auth.session_token>

Returns the organization’s hosted Enterprise contract (cloud) or the self-hosted installation license state and installationId.

Requires a signed-in browser session; API tokens are rejected with 403.

orgId
required

Organization ID.

string

Enterprise contract or installation license state

Media typeapplication/json
object
canActivate
required
boolean
configured
required
boolean
contract
required
Any of:

Active Enterprise contract (hosted) or signed installation license (self-hosted).

object
customer
required

Licensed customer name.

string
>= 1 characters <= 200 characters
expiresAt
required

ISO-8601 UTC timestamp when the contract or license expires.

string format: date-time
id
required

Contract or license identifier.

string
>= 1 characters <= 200 characters
startsAt
required

ISO-8601 UTC timestamp when the contract or license takes effect.

string format: date-time
installationId
required
Any of:
string
scope
required
string
Allowed values: organization installation
status
required
string
Allowed values: none scheduled active grace expired invalid

Example

{
"scope": "organization",
"status": "none"
}

Authentication required or credentials invalid.

Media typeapplication/json

Standard REST error envelope.

object
code
required

Machine-readable error code.

string
data

Optional structured error details.

message
required

Human-readable error explanation.

string

Example generated

{
"code": "example",
"data": "example",
"message": "example"
}

Insufficient role, bucket grant, or token scope.

Media typeapplication/json

Standard REST error envelope.

object
code
required

Machine-readable error code.

string
data

Optional structured error details.

message
required

Human-readable error explanation.

string

Example generated

{
"code": "example",
"data": "example",
"message": "example"
}

Unexpected server error. Quote data.requestId when you report it.

Media typeapplication/json

Error returned when Sendcrate or one of its providers fails (5xx).

object
code
required
string
Allowed values: INTERNAL_SERVER_ERROR PROVIDER_FAILED
data
object
debug

Error chain with stack traces. Present only when the server runs in development mode.

Array
requestId

Request reference to quote when you report the error.

string
message
required

Human-readable error explanation.

string

Example

{
"code": "INTERNAL_SERVER_ERROR"
}