Skip to content

Latest commit

 

History

History

micro-user-service

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 

Description

User management and authentication

Example Request

  • Curl
curl "https://api.m3o.com/v1/user/Read" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer {{token}}" \
-d '{
  "id": "usrid-1"
}'
  • Raw
POST /v1/user/Read HTTP/1.1
Host: api.m3o.com
Content-Type: application/json
Authorization: Bearer {{token}}
Content-Length: 21

{
  "id": "usrid-1"
}

Response

  • Success
{
    "account": {
        "id": "fdf34f34f34-f34f34-f43f43f34-f4f34f",
        "username": "usrname-1",
        "email": "[email protected]",
        "created": "1623677579",
        "updated": "1623677579"
    }
}
  • Error
{
    "Id":"v1",
    "Code":401,
    "Detail":"Unauthorized",
    "Status":"Unauthorized"
}

Regex

[A-Za-z0-9]{48}

Example API key

YQ6wba4vACaht9CUK9k5N7QxV2ieRPJ396g94vkWSYauYmch