Costfluent Public API

List users

GET
https://api.costfluent.com
/v1/users
Bearer (API token)

Returns the organization's members and pending invitations.

Needs an organization token with viewMembers.

List users › query Parameters

includeRemoved
​boolean | null
page
​integer · int32

The page to return, counted from 1. A page below 1 reads page 1; one past the last returns no items.

Default: 1
limit
​integer · int32

Items per page, from 1 to 100. A larger value is clamped to 100, a smaller one to 1.

Default: 20

List users › Responses

Success

​PaginationLinks · required
​UserResponse[] · required

Invite user

POST
https://api.costfluent.com
/v1/users
Bearer (API token)

Invites a person to the organization by email as a viewer, editor or integration owner; the invitation stands for seven days. Owner is granted in the product, not by invitation. A person who is already a member, or suspended, is a conflict. An organization sends at most 100 invitations in 24 hours, and one address at most 3; past either the call is refused with 429 and Retry-After.

Needs an organization token with inviteUser.

Invite user › Headers

Idempotency-Key
​string · minLength: 1 · maxLength: 255

A unique value, at most 255 printable ASCII characters, such as a UUID, that makes retrying this create safe. A retry with the same key and the same request within 24 hours answers the first response again, marked Idempotent-Replayed: true, and creates nothing; the same key with another request answers 422 idempotency_key_reused. A key is kept only for a create that succeeded. Without it, every request creates.

Invite user › Request Body

email
​string · minLength: 0 · maxLength: 320 · required
firstName
​string · minLength: 0 · maxLength: 100 · required
lastName
​string · minLength: 0 · maxLength: 100 · required
role
​InvitationRole · enum · required
Enum values:
viewer
editor
integrationOwner

Invite user › Responses

Created

id
​UserPublicId · pattern: ^usr_[A-Za-z0-9_-]{2… · required
email
​string · required

Get user

GET
https://api.costfluent.com
/v1/users/{userId}
Bearer (API token)

Returns a member of the organization, or a pending invitation.

Needs an organization token with viewMembers.

Get user › path Parameters

userId
​UserPublicId · pattern: ^usr_[A-Za-z0-9_-]{2… · required

Get user › Responses

Success

id
​UserPublicId · pattern: ^usr_[A-Za-z0-9_-]{2… · required
email
​string · required
firstName
​string · required
lastName
​string · required
role
​OrganizationRole · required
status
​string · required
joinedAt
​string · date-time · required
lastLoginAt
​string | null · date-time
inviteExpiresAt
​string | null · date-time