Skip to main content
GET
Get Extruct User

Overview

This endpoint returns details about the authenticated user, including available credits. Use it as your first authenticated request to validate API access.

Example request

Key parameters

  • Authorization header (required): Bearer ${EXTRUCT_API_TOKEN}.

Success signal

A successful response includes email and available_credits.

Common errors

401 Unauthorized

Check that your token is valid and the header includes Bearer prefix.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Response

200 - application/json

Successful Response

user_id
string
required
email
string
required
available_credits
integer
required
organization_id
string | null
organization_name
string | null
organization_slug
string | null
organization_is_active
boolean | null