Users
Users
User authentication and profile operations. Users can access multiple entities and manage their account settings.
Get current user
/users/meRetrieve the authenticated user's profile information. Returns the user details associated with the provided Bearer token.
Returns
{
"id": "6595a27b5d35015c3ef0c3fd",
"email": "example@spaceinvoices.com",
"email_verified": false,
"name": null,
"account_id": null,
"metadata": {},
"settings": {},
"created_at": "2024-01-01T00:00:00.000Z",
"updated_at": "2024-01-01T00:00:00.000Z"
}Update current user
/users/meUpdate the authenticated user's profile. Currently supports updating the display name and preferred UI language (locale).
Body parameters
curl -X PATCH "https://eu.spaceinvoices.com/users/me" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "x-entity-id: YOUR_ENTITY_ID" \
-H "Content-Type: application/json" \
-d '{
"locale": "sl"
}'Returns
{
"id": "6595a27b5d35015c3ef0c3fd",
"email": "example@spaceinvoices.com",
"email_verified": false,
"name": null,
"account_id": null,
"metadata": {},
"settings": {},
"created_at": "2024-01-01T00:00:00.000Z",
"updated_at": "2024-01-01T00:00:00.000Z"
}Update user FURS operator settings
/users/me/settings/fursUpdate FURS operator settings (tax number, label) for the current user. Settings are stored per-entity using the x-entity-id header. These settings are used when the user creates invoices through the web interface.
Header parameters
Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.
Body parameters
curl -X PUT "https://eu.spaceinvoices.com/users/me/settings/furs" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "x-entity-id: YOUR_ENTITY_ID" \
-H "Content-Type: application/json" \
-d '{
"operator_tax_number": "12345678",
"operator_label": "John Doe"
}'Returns
{
"id": "6595a27b5d35015c3ef0c3fd",
"email": "example@spaceinvoices.com",
"email_verified": false,
"name": null,
"account_id": null,
"metadata": {},
"settings": {},
"created_at": "2024-01-01T00:00:00.000Z",
"updated_at": "2024-01-01T00:00:00.000Z"
}Update user FINA operator settings
/users/me/settings/finaUpdate FINA operator settings (OIB, label) for the current user. Settings are stored per-entity using the x-entity-id header. These settings are used when the user creates invoices through the web interface.
Header parameters
Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.
Body parameters
curl -X PUT "https://eu.spaceinvoices.com/users/me/settings/fina" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "x-entity-id: YOUR_ENTITY_ID" \
-H "Content-Type: application/json" \
-d '{
"operator_oib": "12345678901",
"operator_label": "Ivan Horvat"
}'Returns
{
"id": "6595a27b5d35015c3ef0c3fd",
"email": "example@spaceinvoices.com",
"email_verified": false,
"name": null,
"account_id": null,
"metadata": {},
"settings": {},
"created_at": "2024-01-01T00:00:00.000Z",
"updated_at": "2024-01-01T00:00:00.000Z"
}Update user Portugal operator settings
/users/me/settings/ptUpdate PT operator snapshot settings for the current user. Settings are stored per-entity using the x-entity-id header and used to auto-fill PT operator fields when the user creates PT documents.
Header parameters
Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.
Body parameters
curl -X PUT "https://eu.spaceinvoices.com/users/me/settings/pt" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "x-entity-id: YOUR_ENTITY_ID" \
-H "Content-Type: application/json" \
-d '{
"account_first_name": "Joao",
"account_last_name": "Silva",
"account_tax_number": "123456789"
}'Returns
{
"id": "6595a27b5d35015c3ef0c3fd",
"email": "example@spaceinvoices.com",
"email_verified": false,
"name": null,
"account_id": null,
"metadata": {},
"settings": {},
"created_at": "2024-01-01T00:00:00.000Z",
"updated_at": "2024-01-01T00:00:00.000Z"
}