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

Direct instance address (development only)

GET
/v1/branches/{id}/connection
curl --request GET \
--url 'https://api.elefork.com/v1/branches/example/connection?wake=true' \
--header 'Authorization: Bearer <token>'

Production clients connect through the gateway with POST /v1/branches/{id}/credentials.

id
required
string
wake
string
Allowed values: true false
wait
string

Long-poll up to this duration (e.g. 10s; capped at 30 s).

Connection details

Media typeapplication/json
object
endpoint_id
required
string
address
required
string
generation
required
integer
database
required
string
user
required
string
note
string

Example generated

{
"endpoint_id": "example",
"address": "example",
"generation": 1,
"database": "example",
"user": "example",
"note": "example"
}

Operation started

Media typeapplication/json
object
operation
required
object
id
required
string
org_id
required
string
branch_id
required
One of:
string
kind
required
string
Allowed values: create checkpoint reset pause wake delete recover
state
required
string
Allowed values: pending running succeeded failed
error
string
params
required
object
result
required
object
created_at
required
string format: date-time
finished_at
required
One of:
string format: date-time
request_id

The API request that started the operation (X-Request-Id).

string

Example

{
"operation": {
"kind": "create",
"state": "pending"
}
}

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"
}
}

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"
}
}