Keystone Developers
Open Keystone
API reference

Console API

Accounts

5 endpoints.

POST/api/v1/admin/account-user-invites/{invite_id}/accept

Accept a pending account invite for the authenticated user

Authentication

Authorization: Bearer <token>.

Parameters

NameInTypeDescription
invite_idrequiredpathstring

Responses

200Successful Response
application/jsonSuccessResponse_AccountInviteConsumeData_
FieldTypeDescription
request_idrequiredstring
successtruedefault true
datarequiredAccountInviteConsumeData
AccountInviteConsumeData fields
FieldTypeDescription
business_idrequiredstring
userrequiredAccountUserData
AccountUserData fields
FieldTypeDescription
idrequiredstring
kindrequiredstring
first_namestringdefault ""
last_namestringdefault ""
emailrequiredstring (email)
phonestring | null
rolerequiredstring
statusrequiredstring
delivery_statusstring | null
joined_atrequiredstring (date-time)
business_role_idinteger | null

The person's role in this business (an invite's: the one accepting grants): 300 its admin, 400 a member.

pending_emailstring (email) | null

A new email set for this person that waits for the code sent to it (`business_confirm_member_address`); `email` signs in until then. Only while Heimdal holds address changes (SIGN_IN_BY_CODE_ENABLED).

pending_phonestring | null

A new phone set for this person that waits for the code texted to it (`business_confirm_member_address`); `phone` stands until then. Only while Heimdal holds address changes (SIGN_IN_BY_CODE_ENABLED).

metadataResponseMetadata | null
ResponseMetadata fields
FieldTypeDescription
paginationPaginationMetadata | null
PaginationMetadata fields
FieldTypeDescription
limitrequiredinteger
next_cursorstring | null
prev_cursorstring | null
has_morerequiredboolean
has_prevbooleandefault false
total_countinteger | null
status_countsobject | null
object | null fields

Map of string to integer

lifecycle_countsLifecycleCounts | null
LifecycleCounts fields
FieldTypeDescription
allintegerdefault 0
leadintegerdefault 0
prospectintegerdefault 0
customerintegerdefault 0
former_customerintegerdefault 0
classification_countsClassificationCounts | null
ClassificationCounts fields
FieldTypeDescription
signalobject
object fields

Nested object (not expanded)

touchobject
object fields

Nested object (not expanded)

stageobject
object fields

Nested object (not expanded)

metaResponseMeta | null
ResponseMeta fields
FieldTypeDescription
totalinteger | null
total_countinteger | null
pageinteger | null
per_pageinteger | null
  • 400Bad request
  • 401Unauthorized
  • 403Forbidden
  • 404Not found
  • 422Validation error
  • 500Internal server error
  • 503Service unavailable

Error bodies: ErrorResponse. See Errors.

GET/api/v1/admin/accounts

List admin account summaries

Authentication

Authorization: Bearer <token>.

Parameters

NameInTypeDescription
qquerystring | null

Narrow to accounts whose name contains this, or, for an email address, that a member or pending invitee with exactly that email belongs to (case-insensitive).

limitqueryinteger | null

Page size; every match when omitted.

cursorquerystring | null

``next_cursor`` of the previous page.

Responses

200Successful Response
application/jsonSuccessResponse_list_AccountSummaryData__
FieldTypeDescription
request_idrequiredstring
successtruedefault true
datarequiredAccountSummaryData[]
AccountSummaryData[] fields
FieldTypeDescription
idrequiredstring
business_namerequiredstring
statusrequiredstring
created_atrequiredinteger
planAccountPlanData | null

Null without a subscription, or when billing could not be read

AccountPlanData fields

AccountPlanData (not expanded)

metadataResponseMetadata | null
ResponseMetadata fields

ResponseMetadata, expanded above.

metaResponseMeta | null
ResponseMeta fields

ResponseMeta, expanded above.

  • 400Bad request
  • 401Unauthorized
  • 403Forbidden
  • 404Not found
  • 422Validation error
  • 500Internal server error
  • 503Service unavailable

Error bodies: ErrorResponse. See Errors.

POST/api/v1/admin/me/account-invites/resend

Send the authenticated user's pending invites again, to their invited address

For an invited owner who signed in without the invite link: the invite emails go out again — to the address they were sent to, never to the caller — and expired ones work again. Joining stays the link's job. ``sent`` is 0 when each was sent moments ago.

Authentication

Authorization: Bearer <token>.

Responses

200Successful Response
application/jsonSuccessResponse_MyInvitesResendData_
FieldTypeDescription
request_idrequiredstring
successtruedefault true
datarequiredMyInvitesResendData
MyInvitesResendData fields
FieldTypeDescription
sentrequiredinteger
metadataResponseMetadata | null
ResponseMetadata fields

ResponseMetadata, expanded above.

metaResponseMeta | null
ResponseMeta fields

ResponseMeta, expanded above.

  • 400Bad request
  • 401Unauthorized
  • 403Forbidden
  • 404Not found
  • 422Validation error
  • 500Internal server error
  • 503Service unavailable

Error bodies: ErrorResponse. See Errors.

GET/api/v1/admin/me/businesses

List businesses linked to the authenticated user

Authentication

Authorization: Bearer <token>.

Responses

200Successful Response
application/jsonSuccessResponse_list_MyBusinessSummary__
FieldTypeDescription
request_idrequiredstring
successtruedefault true
datarequiredMyBusinessSummary[]
MyBusinessSummary[] fields
FieldTypeDescription
idrequiredstring
business_namerequiredstring
business_role_idrequiredinteger

The caller's role in this business: 300 its admin (may do there everything Keystone's admin may), 400 a member.

logo_urlrequiredstring | null

The business's logo, a thumbnail; null without one.

last_opened_atrequiredstring (date-time) | null

When the caller last opened this business (PUT /me/last-opened-business); null if never.

metadataResponseMetadata | null
ResponseMetadata fields

ResponseMetadata, expanded above.

metaResponseMeta | null
ResponseMeta fields

ResponseMeta, expanded above.

  • 400Bad request
  • 401Unauthorized
  • 403Forbidden
  • 404Not found
  • 422Validation error
  • 500Internal server error
  • 503Service unavailable

Error bodies: ErrorResponse. See Errors.

PUT/api/v1/admin/me/last-opened-business

Record that the authenticated user opened one of their businesses

``last_opened_at`` on ``GET /me/businesses`` is when this was last called for the business, so the console opens the latest one first. 404 unless the caller is a member of the business.

Authentication

Authorization: Bearer <token>.

Request bodyrequired

application/jsonLastOpenedBusinessBody
FieldTypeDescription
business_idrequiredstring (uuid)

Responses

200Successful Response
application/jsonSuccessResponse_MyBusinessSummary_
FieldTypeDescription
request_idrequiredstring
successtruedefault true
datarequiredMyBusinessSummary
MyBusinessSummary fields

MyBusinessSummary, expanded above.

metadataResponseMetadata | null
ResponseMetadata fields

ResponseMetadata, expanded above.

metaResponseMeta | null
ResponseMeta fields

ResponseMeta, expanded above.

  • 400Bad request
  • 401Unauthorized
  • 403Forbidden
  • 404Not found
  • 422Validation error
  • 500Internal server error
  • 503Service unavailable

Error bodies: ErrorResponse. See Errors.