Skip to content
Suomi

Handover requests waiting for the integration's organisation

GET
/v1/handover-requests/incoming
Code sample: Shell / cURL
curl --request GET \
--url https://api.whatsbuilt.fi/v1/handover-requests/incoming \
--header 'Authorization: Bearer <token>'

Needs organisation:admin. The pending requests other organisations sent to this one; the whole list in one answer.

Pending requests

Media typeapplication/json

The answer of listIncomingHandovers.

object
data
required
Array<object>

IncomingHandoverRequest: a pending request to the principal’s organisation.

object
id
required
string format: uuid
project_id
required
string format: uuid
summary
required

The project as it stood when the request was made.

object
project_name
required
string
project_created_at
required
string
from_account_name
required
string
to_account_name
required
string
named_admin
required

The admin a request names.

object
name
required
string | null
email
required
string
elements
required
number format: double
inspections
required
number format: double
findings
required
number format: double
members
required
number format: double
requested_by_name
required
string | null
requested_by_email
required
string | null
requested_via
required

integration or app when the request was made through one; null for a person in the app

string | null
requested_by_client_name
required

The app’s registered name when requested_via is app

string | null
requested_at
required
string
expires_at
required
string
entered_later
boolean
recorded_at
string

Example

{
"data": [
{
"entered_later": true
}
]
}

Missing, malformed, expired or revoked token

Media typeapplication/json

The error body of every /v1 answer of 400 or more.

object
error
required

A sentence for people; it may change

string
code
required

Part of the contract

string
details

What the code names, where it names something

request_id
required

The X-Request-Id of the call

string

Example generated

{
"error": "example",
"code": "example",
"details": "example",
"request_id": "example"
}

INSUFFICIENT_SCOPE; INSUFFICIENT_ROLE when the integration is not an admin of its organisation; FEATURE_OFF when the organisation does not use handovers

Media typeapplication/json

The error body of every /v1 answer of 400 or more.

object
error
required

A sentence for people; it may change

string
code
required

Part of the contract

string
details

What the code names, where it names something

request_id
required

The X-Request-Id of the call

string

Example generated

{
"error": "example",
"code": "example",
"details": "example",
"request_id": "example"
}

RATE_LIMITED; wait for Retry-After seconds

Media typeapplication/json

The error body of every /v1 answer of 400 or more.

object
error
required

A sentence for people; it may change

string
code
required

Part of the contract

string
details

What the code names, where it names something

request_id
required

The X-Request-Id of the call

string

Example generated

{
"error": "example",
"code": "example",
"details": "example",
"request_id": "example"
}