Page contents

Account

Get and manage account information.

Part of the API reference collection

This page is part of the Crunchy Bridge API reference, and primarily meant to act as an exhaustive guide for technical integrations which are already in progress. To understand the basics of using the API, see API concepts and getting started.

Get account

Get the currently authenticated account.

GET /account

Request

cURL example

curl -X GET https://api.crunchybridge.com/account
    -H "Authorization: Bearer $CRUNCHY_ACCESS_TOKEN"

Response

Status: 200

A user account.

During a SSO-based authentication, GET /account still returns an account API resource, but a synthetic one that’s missing some normal fields.

Content type: application/json

Name Nullable Type Description
id string in EID format

Primary ID of the account.

created_at string of date/time formatted as RFC 3339

Time at which the account was created.

Always present for a real account, but not present for a synthetic account resource returned during SSO-based authentication.

default_team_id string in EID format

The account’s default team. If null, the account’s default team is their personal team (which has the same ID as the account).

email string

Email associated with the account.

first_name string

First name associated with the account.

last_name string

Last name associated with the account.

last_seen_at string of date/time formatted as RFC 3339

Time at which the account was last seen in either the API of web dashboard.

login_url string

name string

Full name associated with the account.

updated_at string of date/time formatted as RFC 3339

Time at which the account was last updated.

Always present for a real account, but not present for a synthetic account resource returned during SSO-based authentication.

Example

{
    "created_at": "2021-07-11T01:02:03Z",
    "default_team_id": null,
    "email": "[email protected]",
    "first_name": "First",
    "id": "qvcw4hylovgyzbwzp53bmmlhga",
    "last_name": "Last",
    "last_seen_at": "2021-07-11T01:02:03Z",
    "login_url": null,
    "name": "First Last",
    "updated_at": "2021-07-11T01:02:03Z"
}