Users

Get users.

get

Retrieve a list of platform users.

Authorizations
AuthorizationstringRequired

Bearer authentication

Query parameters
filterstringOptionalDeprecated

Filter results by user attribute.

Example: runai.is_local:true
filterBystring[]Optional

Filter results by a parameter. Use the format field-name operator value. Operators are <= Less than or equal, >= Greater than or equal, =@ contains. Dates are in ISO 8601 timestamp format and available for operators <=, >= and ==.

Example: ["username=@test,lastLogin>=2024-09-24T00:00:00.00Z,isLocal==false"]
sortBystring · enumOptional

Sort results by a parameters.

Possible values:
sortOrderstring · enumOptional

Sort results in descending or ascending order.

Default: ascPossible values:
offsetinteger · int32Optional

The offset of the first item returned in the collection.

Example: 100
limitinteger · int32 · min: 1 · max: 500Optional

The maximum number of entries to return.

Default: 500
searchstringOptional

Filter results by a free text search.

Example: test@run
Responses
chevron-right
200

Executed successfully.

application/json
get
/api/v1/users

Create a local user.

post

Use to create a local platform user.

Authorizations
AuthorizationstringRequired

Bearer authentication

Body
emailstring · min: 5 · max: 254Required

The email of the user. Must be a valid email address.

Pattern: ^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$
resetPasswordboolean · nullableOptional
notifyboolean · nullableOptional

When true, send an email to the user. The email includes a link to reset the password.

Responses
post
/api/v1/users

Count users

get

count users

Authorizations
AuthorizationstringRequired

Bearer authentication

Query parameters
filterBystring[]Optional

Filter results by a parameter. Use the format field-name operator value. Operators are <= Less than or equal, >= Greater than or equal, =@ contains. Dates are in ISO 8601 timestamp format and available for operators <=, >= and ==.

Example: ["username=@test,lastLogin>=2024-09-24T00:00:00.00Z,isLocal==false"]
searchstringOptional

Filter results by a free text search.

Example: test@run
Responses
chevron-right
200

ok

application/json
get
/api/v1/users/count

Logout a user.

post

Use to force a user to logout.

Authorizations
AuthorizationstringRequired

Bearer authentication

Path parameters
userIdstringRequired

The id of the user

Responses
chevron-right
200

Executed successfully.

No content

post
/api/v1/users/{userId}/logout

No content

Reset a user's password.

post

Use to to reset a user's password.

Authorizations
AuthorizationstringRequired

Bearer authentication

Path parameters
userIdstringRequired

The id of the user

Responses
chevron-right
200

Regenerated successfully.

application/json
post
/api/v1/users/{userId}/password

Get a user by id.

get

Retrieve a user's details by id.

Authorizations
AuthorizationstringRequired

Bearer authentication

Path parameters
userIdstringRequired

The id of the user

Responses
chevron-right
200

Executed successfully.

application/json
get
/api/v1/users/{userId}

Delete a user by id.

delete

Use to delete a user by id.

Authorizations
AuthorizationstringRequired

Bearer authentication

Path parameters
userIdstringRequired

The id of the user

Responses
delete
/api/v1/users/{userId}

No content

change user password

post
Authorizations
AuthorizationstringRequired

Bearer authentication

Body
currentPasswordstring · min: 8 · max: 255Required
newPasswordstring · min: 8 · max: 255Required
Responses
chevron-right
200

Password changed successfully.

application/json
post
/api/v1/me/password

Last updated