Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent
with a free APIs.io key —
sign in with
GitHub,
Google or
LinkedIn.
No form to fill in; signing in shares your email address with us (Privacy).
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we
store it to create your key and to recognise you if you sign in with another
provider. By signing up you are subscribing to the APIs.io and API Evangelist
newsletters — you can unsubscribe from any issue. See our
Privacy Policy and Terms.
openapi: 3.2.0
info:
title: XFA Users Details API
version: '1'
servers:
- url: https://api.xfa.tech
description: Production stack API url
- url: https://test-api.xfa.tech
description: Test stack API url
security:
- bearerAuth: []
tags:
- name: UsersDetails
paths:
/users/details:
get:
summary: Get user details
description: 'Get user details. Users can get their own details without organizationId.
To get another user''s details, organizationId is required, the requester must have access to that organization,
and the user must be one of that organization''s dashboard users. Another user''s details never include groups.'
x-internal: true
tags:
- UsersDetails
parameters:
- in: query
name: user
description: email of the user
required: true
schema:
type: string
- in: query
name: organizationId
description: Organization ID (required when getting another user's details, optional when getting own details)
required: false
schema:
type: string
responses:
'200':
description: User details
content:
application/json:
schema:
$ref: '#/components/schemas/UserDetails'
'400':
description: Bad request (missing required parameters)
'403':
description: Forbidden (insufficient permissions)
operationId: getUsersDetails
x-operation-id-source: derived
patch:
summary: Update user details
description: 'Update user details. Authorization depends on what fields are being updated:
- Language, FirstName, LastName: Only the user themselves can update (email must match)'
x-internal: true
tags:
- UsersDetails
parameters:
- in: query
name: user
description: email of the user
required: true
schema:
type: string
- in: query
name: organizationId
description: Organization ID (optional; not needed for any update)
required: false
schema:
type: string
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/UserDetails'
responses:
'204':
description: User details updated successfully
'400':
description: Bad request (missing required parameters or validation error)
'403':
description: Forbidden (insufficient permissions)
operationId: patchUsersDetails
x-operation-id-source: derived
/users/revoke:
post:
summary: Revoke user sessions
description: 'Revoke all sessions for a user, invalidating their previous authentication tokens.
Users can revoke their own sessions without organizationId.
Administrators can revoke the sessions of their organization''s dashboard users (organizationId required).'
x-internal: true
tags:
- UsersDetails
parameters:
- in: query
name: user
description: email of the user whose sessions should be revoked
required: true
schema:
type: string
- in: query
name: organizationId
description: Organization ID (required when revoking another user's sessions, optional when revoking own sessions)
required: false
schema:
type: string
responses:
'204':
description: User sessions revoked successfully
'400':
description: Bad request (missing required parameters)
'403':
description: Forbidden (insufficient permissions)
operationId: postUsersRevoke
x-operation-id-source: derived
components:
schemas:
UserDetails:
type: object
properties:
firstName:
type: string
lastName:
type: string
language:
type: string
securitySchemes:
bearerAuth:
type: http
scheme: bearer
bearerFormat: JWT