Skip to content
Browse documentation

OpenAPI operations

List portal tokens

GET
/v1/applications/{id}/portal-tokens
curl --request GET \
--url https://api.hooks.events/v1/applications/example/portal-tokens \
--header 'Authorization: Bearer <token>'

Requires the endpoints:read scope.

id
required
string

Success

Media typeapplication/json
object
data
required
Array<object>

Short-lived portal capability; the plaintext token is returned once

object
id
required

Resource id

string
applicationId
required
string
name
required

Label shown in the workspace, e.g. an email

string | null
tokenPrefix
required

First characters of the token, for recognition

string
expiresAt
required

ISO-8601 timestamp

string
lastUsedAt
required
Any of:

ISO-8601 timestamp

string
revokedAt
required
Any of:

ISO-8601 timestamp

string
createdAt
required

ISO-8601 timestamp

string
key
additional properties
key
additional properties

Example generated

{
"data": [
{
"id": "example",
"applicationId": "example",
"name": "example",
"tokenPrefix": "example",
"expiresAt": "example",
"lastUsedAt": "example",
"revokedAt": "example",
"createdAt": "example"
}
]
}

Validation error

Media typeapplication/json
object
error
required
object
code
required

Machine-readable error code

string
message
required
string
requestId
required

Request id, also echoed in x-request-id

string
key
additional properties

Example generated

{
"error": {
"code": "example",
"message": "example",
"requestId": "example"
}
}

Missing or invalid credentials

Media typeapplication/json
object
error
required
object
code
required

Machine-readable error code

string
message
required
string
requestId
required

Request id, also echoed in x-request-id

string
key
additional properties

Example generated

{
"error": {
"code": "example",
"message": "example",
"requestId": "example"
}
}

The credential lacks the required scope, or the workspace is not writable

Media typeapplication/json
object
error
required
object
code
required

Machine-readable error code

string
message
required
string
requestId
required

Request id, also echoed in x-request-id

string
key
additional properties

Example generated

{
"error": {
"code": "example",
"message": "example",
"requestId": "example"
}
}

Resource not found

Media typeapplication/json
object
error
required
object
code
required

Machine-readable error code

string
message
required
string
requestId
required

Request id, also echoed in x-request-id

string
key
additional properties

Example generated

{
"error": {
"code": "example",
"message": "example",
"requestId": "example"
}
}

Rate limited

Media typeapplication/json
object
error
required
object
code
required

Machine-readable error code

string
message
required
string
requestId
required

Request id, also echoed in x-request-id

string
key
additional properties

Example generated

{
"error": {
"code": "example",
"message": "example",
"requestId": "example"
}
}
X-RateLimit-Limit
integer

Requests allowed per window

X-RateLimit-Remaining
integer
X-RateLimit-Reset
integer

Seconds until the window resets