Skip to content
EleforkDocs
Internal preview. Elefork is not publicly available yet; APIs and hostnames may change.

Get a project

GET
/v1/projects/{id}
curl --request GET \
--url https://api.elefork.com/v1/projects/example \
--header 'Authorization: Bearer <token>'
id
required
string

Project

Media typeapplication/json
object
id
required
string
org_id
required
string
name
required
string
default_size
required
string
Allowed values: nano small medium large
default_durability
required

L0: reset to the last checkpoint after a crash. L1: async WAL replication. L2: no confirmed commit lost if any single host is lost (L1/L2 return 501 until available).

string
Allowed values: L0 L1 L2
default_branch_id

The project’s default branch (“main”), if it has one.

One of:
string
created_at
required
string format: date-time

Example

{
"default_size": "nano",
"default_durability": "L0"
}

Error

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string

Example

{
"error": {
"code": "not_found"
}
}

Error

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string

Example

{
"error": {
"code": "not_found"
}
}

Error

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string

Example

{
"error": {
"code": "not_found"
}
}

Error

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string

Example

{
"error": {
"code": "not_found"
}
}

Temporarily unavailable; retry after the Retry-After seconds. Codes: database_unavailable (the metadata database is failing over) and cube_admission (a compute node runs a sandbox shim below the platform minimum, so creates, forks, checkpoints and resets are refused until it is upgraded).

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string

Example

{
"error": {
"code": "not_found"
}
}
Retry-After
integer