The Dex REST API
Version: v1
{
id: string,
redirectURIs: [
string
]
}
{
clients: [
Client
],
nextPageToken: string
}
{
id: string,
redirectURIs: [
string
],
secret: string
}
{
error: string,
error_description: string
}
A client with associated public metadata.
{
clientID: string,
clientName: string,
clientURI: string,
logoURI: string
}
{
clients: [
RefreshClient
]
}
{
redirectURL: string
}
{
emailSent: boolean,
resetPasswordLink: string
}
{
admin: boolean,
createdAt: string,
disabled: boolean,
displayName: string,
email: string,
emailVerified: boolean,
id: string
}
{
redirectURL: string,
user: User
}
{
emailSent: boolean,
resetPasswordLink: string,
user: User
}
{
disable: boolean // If true, disable this user, if false, enable them. No error is signaled if the user state doesn't change.
}
{
ok: boolean
}
{
user: User
}
{
nextPageToken: string,
users: [
User
]
}
Summary
List RefreshClient
Description
List all clients that hold refresh tokens for the specified user.
Parameters
|Name|Located in|Description|Required|Type| |:-----|:-----|:-----|:-----|:-----| | userid | path | | Yes | string |
Responses
|Code|Description|Type| |:-----|:-----|:-----| | 200 | | RefreshClientList | | default | Unexpected error | |
Summary
Revoke RefreshClient
Description
Revoke all refresh tokens issues to the client for the specified user.
Parameters
|Name|Located in|Description|Required|Type| |:-----|:-----|:-----|:-----|:-----| | clientid | path | | Yes | string | | userid | path | | Yes | string |
Responses
|Code|Description|Type| |:-----|:-----|:-----| | default | Unexpected error | |
Summary
List Clients
Description
Retrieve a page of Client objects.
Parameters
|Name|Located in|Description|Required|Type| |:-----|:-----|:-----|:-----|:-----| | nextPageToken | query | | No | string |
Responses
|Code|Description|Type| |:-----|:-----|:-----| | 200 | | ClientPage | | default | Unexpected error | |
Summary
Create Clients
Description
Register a new Client.
Parameters
|Name|Located in|Description|Required|Type| |:-----|:-----|:-----|:-----|:-----| | | body | | Yes | Client |
Responses
|Code|Description|Type| |:-----|:-----|:-----| | 200 | | ClientWithSecret | | default | Unexpected error | |
Summary
List Users
Description
Retrieve a page of User objects.
Parameters
|Name|Located in|Description|Required|Type| |:-----|:-----|:-----|:-----|:-----| | nextPageToken | query | | No | string | | maxResults | query | | No | integer |
Responses
|Code|Description|Type| |:-----|:-----|:-----| | 200 | | UsersResponse | | default | Unexpected error | |
Summary
Create Users
Description
Create a new User.
Parameters
|Name|Located in|Description|Required|Type| |:-----|:-----|:-----|:-----|:-----| | | body | | Yes | UserCreateRequest |
Responses
|Code|Description|Type| |:-----|:-----|:-----| | 200 | | UserCreateResponse | | default | Unexpected error | |
Summary
Get Users
Description
Get a single User object by id.
Parameters
|Name|Located in|Description|Required|Type| |:-----|:-----|:-----|:-----|:-----| | id | path | | Yes | string |
Responses
|Code|Description|Type| |:-----|:-----|:-----| | 200 | | UserResponse | | default | Unexpected error | |
Summary
Disable Users
Description
Enable or disable a user.
Parameters
|Name|Located in|Description|Required|Type| |:-----|:-----|:-----|:-----|:-----| | id | path | | Yes | string | | | body | | Yes | UserDisableRequest |
Responses
|Code|Description|Type| |:-----|:-----|:-----| | 200 | | UserDisableResponse | | default | Unexpected error | |
Summary
ResendEmailInvitation Users
Description
Resend invitation email to an existing user with unverified email.
Parameters
|Name|Located in|Description|Required|Type| |:-----|:-----|:-----|:-----|:-----| | id | path | | Yes | string | | | body | | Yes | ResendEmailInvitationRequest |
Responses
|Code|Description|Type| |:-----|:-----|:-----| | 200 | | ResendEmailInvitationResponse | | default | Unexpected error | |