Release Notes

July 24, 2023

User details API and User invite accepted webhook are available in the Karbon API.

This document provides an overview of the July 24, 2023 Karbon API release.

We have added an API endpoint that expands on the

JSONCopied!
/v3/Users/
endpoint, making it possible to retrieve more information about a user.

It is also possible to subscribe to a new User Webhook Subscription type, to receive information about a user.

  1. JSONCopied!
    GET User by UserId
  2. JSONCopied!
    POST Webhook Subscription for WebhookType User

JSONCopied!
GET Users by UserId

Endpoint:

JSONCopied!
https://api.karbonhq.com/v3/Users/{UserId}

When used with

JSONCopied!
GET
method, this end point returns information about a user, including their Permissions, Roles, Teams and billable Capacity.

See an example of the

JSONCopied!
Users
by
JSONCopied!
UserId
endpoint in our API documentation.


JSONCopied!
POST WebhookSubscription for WebhookType User

Endpoint:

JSONCopied!
https://api.karbonhq.com/v3/WebhookSubscription

When successfully called with a JSON payload including your

JSONCopied!
TargetUrl
and
JSONCopied!
WebhookType
of
JSONCopied!
User
, this API will return a status code of 201 and JSON payload confirming the
JSONCopied!
TargetUrl
and
JSONCopied!
WebhookType
supplied in the initial request.

Additional information about the

JSONCopied!
WebhookSubscriptions
API can be found in our API documentation.

Example use case

You want to retrieve a notification when a user invited to Karbon has accepted their invite:

JSONCopied!
POST https://api.karbonhq.com/v3/WebhookSubscriptions

Payload:

JSONCopied!
{ "TargetUrl": "https://example.com/", "WebhookType": "User" }

This will create a Webhook Subscription that will be triggered for each new user that accepts an invitation to join Karbon. When triggered, a

JSONCopied!
POST
request will be made to the
JSONCopied!
TargetUrl
with the payload:

JSONCopied!
{ "ResourcePermaKey": "{UserId}", "ResourceType": "User", "ActionType": "InviteAccepted" }