Skip to main content

Connected user

After authentication, call /me to check the account behind your access token. This is useful when displaying a connection such as “Connected as Alex.” It is separate from the recipients you add to a signing.

curl --fail-with-body --silent --show-error \
"${KREBIT_API}/me" \
--header "Authorization: Bearer ${ACCESS_TOKEN}" \
--header 'Accept: application/json'

The response includes the user's name and email at the top level. For example, this excerpt shows the fields needed for a connection label:

{
"name": "Alex Integrator",
"email": "alex@example.com"
}

A successful identity check does not guarantee access to every operation. Handle authorization errors on each request. See API conventions for the distinction between 401 and 403.

Next step​

Use this connection to send a PDF or create a contract. The current-user reference describes the endpoint.