Create User
수면을 기록할 사용자의 식별자(user id)를 생성하며, 이 식별자를 사용해서 사용자의 수면을 지속적으로 관리할 수 있습니다.
기 생성된 사용자의 식별자를 고객의 적절한 저장소에 저장 및 관리하여 지속적으로 사용할 수 있습니다.
1. Request
2.1 URL
POST https://api.asleep.ai/ai/v1/users
2.2 Header
| Parameter | Type | Required | Description | 
|---|---|---|---|
| x-api-key | String | O | API Key | 
Example
curl "https://api.asleep.ai/ai/v1/users" -XPOST \
  -H "x-api-key: <YOUR_API_KEY>"2. Response
2.1 201 Created
- 사용자 생성 생성 성공
 
Body (result field)
| Field | Type | Description | 
|---|---|---|
| user_id | String | user id | 
{
  "detail": "success",
  "result": {
    "user_id": "<USER_ID>"
  }
}Updated 5 months ago
