POST
/
user
curl --request POST \
  --url https://api.sandbox.metriport.com/user \
  --header 'x-api-key: <api-key>'
import { MetriportDevicesApi } from "@metriport/api-sdk";

const metriportClient = new MetriportDevicesApi("YOUR_API_KEY");

const metriportUserId = await metriportClient.getMetriportUserId("your-app-user-id");

Query Params

appUserId
string
required

The user ID you identify this user with in your app.

Response

userId
string
required

The Metriport user ID to be used in subsequent requests for this user.

{
  "userId": "66d4f01f-6ebe-44f8-8bbc-15a65adbe8c2"
}