Me
Operations related to the logged in user
Get my user information by me (logged in user)
OK
Unauthorized
Forbidden
GET /api/me HTTP/1.1
Host: abp-api.akinon.net
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"_id": "63ea10b94a472e003305232b",
"username": "[email protected]",
"language": "en",
"region": "us",
"firstName": "John",
"lastName": "Doe",
"status": 1,
"attributes": {
"iamUserId": "1234567890"
},
"avatarUrl": "text",
"settings": {
"mailOnBuildCompleted": true,
"mailOnCodePushCompleted": true
},
"lastLoginAt": "2020-07-23T12:00:00.000Z",
"createdAt": "2020-07-23T12:00:00.000Z",
"updatedAt": "2020-07-23T12:00:00.000Z",
"organization": {
"_id": "63ea10b94a472e003305232b",
"name": "Akinon",
"slug": "hello-world",
"description": "Akinon is a software company",
"owner": "63ea10b94a472e003305232b",
"isExecutive": false,
"status": 1,
"privileges": [
"project:read",
"project:write"
],
"imageUrl": "https://akinon.com/wp-content/uploads/akinon-logo-2.svg",
"createdAt": "2020-07-23T12:00:00.000Z",
"updatedAt": "2020-07-23T12:00:00.000Z"
},
"roles": [
{
"_id": "63ea10b94a472e003305232b",
"name": "Presentation",
"description": "Presentation role",
"organization": {
"_id": "63ea10b94a472e003305232b",
"name": "Akinon",
"slug": "hello-world",
"description": "Akinon is a software company",
"owner": "63ea10b94a472e003305232b",
"isExecutive": false,
"status": 1,
"privileges": [
"project:read",
"project:write"
],
"imageUrl": "https://akinon.com/wp-content/uploads/akinon-logo-2.svg",
"createdAt": "2020-07-23T12:00:00.000Z",
"updatedAt": "2020-07-23T12:00:00.000Z"
},
"privileges": [
"project:read",
"project:write"
],
"createdAt": "2020-07-23T12:00:00.000Z",
"updatedAt": "2020-07-23T12:00:00.000Z"
},
{
"organization": "63ea10b94a472e003305232b"
}
],
"userType": "user"
}
Change my password by me (logged in user)
The user old password
123456
The user new password
123456
Created
No content
Bad Request
Unauthorized
Forbidden
POST /api/me HTTP/1.1
Host: abp-api.akinon.net
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 40
{
"password": 123456,
"newPassword": 123456
}
No content
Update my user information by me (logged in user)
The user first name
John
The user last name
Doe
The user language
en
The user region
US
The status
1
Possible values: The user avatar URL
https://akinon.s3.amazonaws.com/.../avatar.jpg
OK
Unauthorized
Forbidden
PATCH /api/me HTTP/1.1
Host: abp-api.akinon.net
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 211
{
"firstName": "John",
"lastName": "Doe",
"language": "en",
"region": "US",
"status": 1,
"avatarUrl": "https://akinon.s3.amazonaws.com/.../avatar.jpg",
"settings": {
"mailOnBuildCompleted": true,
"mailOnCodePushCompleted": true
}
}
{
"_id": "63ea10b94a472e003305232b",
"username": "[email protected]",
"language": "en",
"region": "us",
"firstName": "John",
"lastName": "Doe",
"status": 1,
"attributes": {
"iamUserId": "1234567890"
},
"avatarUrl": "text",
"settings": {
"mailOnBuildCompleted": true,
"mailOnCodePushCompleted": true
},
"lastLoginAt": "2020-07-23T12:00:00.000Z",
"createdAt": "2020-07-23T12:00:00.000Z",
"updatedAt": "2020-07-23T12:00:00.000Z",
"organization": {
"_id": "63ea10b94a472e003305232b",
"name": "Akinon",
"slug": "hello-world",
"description": "Akinon is a software company",
"owner": "63ea10b94a472e003305232b",
"isExecutive": false,
"status": 1,
"privileges": [
"project:read",
"project:write"
],
"imageUrl": "https://akinon.com/wp-content/uploads/akinon-logo-2.svg",
"createdAt": "2020-07-23T12:00:00.000Z",
"updatedAt": "2020-07-23T12:00:00.000Z"
},
"roles": [
{
"_id": "63ea10b94a472e003305232b",
"name": "Presentation",
"description": "Presentation role",
"organization": {
"_id": "63ea10b94a472e003305232b",
"name": "Akinon",
"slug": "hello-world",
"description": "Akinon is a software company",
"owner": "63ea10b94a472e003305232b",
"isExecutive": false,
"status": 1,
"privileges": [
"project:read",
"project:write"
],
"imageUrl": "https://akinon.com/wp-content/uploads/akinon-logo-2.svg",
"createdAt": "2020-07-23T12:00:00.000Z",
"updatedAt": "2020-07-23T12:00:00.000Z"
},
"privileges": [
"project:read",
"project:write"
],
"createdAt": "2020-07-23T12:00:00.000Z",
"updatedAt": "2020-07-23T12:00:00.000Z"
},
{
"organization": "63ea10b94a472e003305232b"
}
],
"userType": "user"
}
Get my public keys by me (logged in user)
OK
Unauthorized
Forbidden
GET /api/me/public-keys HTTP/1.1
Host: abp-api.akinon.net
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
[]
Create a public key by me (logged in user)
The public key label
My public key
The public key
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDQ4QXQ...
The public key file path
Created
Bad Request
POST /api/me/public-keys HTTP/1.1
Host: abp-api.akinon.net
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 105
{
"label": "My public key",
"publicKey": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDQ4QXQ...",
"filePath": "text"
}
{
"_id": "63ea10b94a472e003305232b",
"label": "My public key",
"status": 1,
"publicKey": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDQ4QXQ...",
"awsPublicKeyId": "text",
"filePath": "text",
"createdAt": "2020-07-23T12:00:00.000Z",
"updatedAt": "2020-07-23T12:00:00.000Z"
}
Get a public key by me (logged in user)
The MongoDB ID
63ea10b94a472e003305232b
Pattern: ^[0-9a-fA-F]{24}$
OK
Unauthorized
Forbidden
Not Found
GET /api/me/public-keys/{publicKeyId} HTTP/1.1
Host: abp-api.akinon.net
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"_id": "63ea10b94a472e003305232b",
"label": "My public key",
"status": 1,
"publicKey": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDQ4QXQ...",
"awsPublicKeyId": "text",
"filePath": "text",
"createdAt": "2020-07-23T12:00:00.000Z",
"updatedAt": "2020-07-23T12:00:00.000Z"
}
Delete a public key by me (logged in user)
The MongoDB ID
63ea10b94a472e003305232b
Pattern: ^[0-9a-fA-F]{24}$
No Content
No content
Bad Request
Unauthorized
Forbidden
DELETE /api/me/public-keys/{publicKeyId} HTTP/1.1
Host: abp-api.akinon.net
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
No content
Get user access tokens by me (logged in user)
OK
Unauthorized
Forbidden
GET /api/me/tokens HTTP/1.1
Host: abp-api.akinon.net
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
[
{
"_id": "63ea10b94a472e003305232b",
"name": "My Token",
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9",
"privileges": [
"project:read"
],
"userId": "63ea10b94a472e003305232b",
"organizationId": "63ea10b94a472e003305232b",
"expiresOn": "2020-07-23T12:00:00.000Z",
"createdAt": "2020-07-23T12:00:00.000Z",
"updatedAt": "2020-07-23T12:00:00.000Z"
}
]
Create a user access token by me (logged in user)
The access token name
My Token
The token lifetime
The token privileges
organization:user:read
OK
Bad Request
POST /api/me/tokens HTTP/1.1
Host: abp-api.akinon.net
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 81
{
"name": "My Token",
"lifetime": "one-week",
"privileges": [
"organization:user:read"
]
}
{
"_id": "63ea10b94a472e003305232b",
"name": "My Token",
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9",
"privileges": [
"project:read"
],
"userId": "63ea10b94a472e003305232b",
"organizationId": "63ea10b94a472e003305232b",
"expiresOn": "2020-07-23T12:00:00.000Z",
"createdAt": "2020-07-23T12:00:00.000Z",
"updatedAt": "2020-07-23T12:00:00.000Z"
}
Delete a user access token by me (logged in user)
The MongoDB ID
63ea10b94a472e003305232b
Pattern: ^[0-9a-fA-F]{24}$
No Content
No content
Bad Request
Unauthorized
Forbidden
DELETE /api/me/tokens/{tokenId} HTTP/1.1
Host: abp-api.akinon.net
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
No content
Last updated
Was this helpful?