Skip to main content

Create Device

POST 

/v1/:clientId/user-devices

The only required field in the body is deviceId - the rest are optional.

You can associate a device with an InCrowd SSO (auth) ID by supplying an InCrowd access token in the Authorization header, for example:

Authorization: Bearer {access_token}

This will populate the authId field automatically with their SSO ID.

Duration is measured in seconds.

Request

Path Parameters

    clientId stringrequired

Header Parameters

    X-API-KEY string
    Example: bsKXkZhhdczuaHZ4xwVGk47Mbm77Epcf
    X-REALM string
    Example: incrowd
    X-APP-ID string
    Example: ios
    CloudFront-Viewer-Longitude number
    Example: 50.8268325
    CloudFront-Viewer-Latitude number
    Example: 0.2
    CloudFront-Viewer-Country string
    Example: GB
    Accept-Language string
    Example: en-gb
    Authorization string

    [Optional] InCrowd access token

    Example: Bearer {{access_token}}

Body

    object

Responses

OK

Response Headers

  • Content-Type

    string

  • Content-Length

    integer

  • Connection

    string

  • Vary

    string

  • Date

    string

  • X-Cache

    string

  • Via

    string

  • X-Amz-Cf-Pop

    string

  • X-Amz-Cf-Id

    string

Schema

    object

Loading...