POST
/
v1
/
users
/
self
/
auth-sync
curl --request POST \
  --url https://api.storytell.ai/v1/users/self/auth-sync \
  --header 'Content-Type: application/json' \
  --data '{
  "defaultFavoritesCollectionLabel": "<string>",
  "defaultOrganizationCollectionLabel": "<string>",
  "defaultOrganizationDisplayName": "<string>",
  "defaultOrganizationName": "<string>",
  "defaultOrganizationSlug": "<string>",
  "defaultPersonalCollectionLabel": "<string>",
  "defaultProjectDisplayName": "<string>",
  "defaultProjectName": "<string>",
  "defaultProjectSlug": "<string>",
  "deviceID": "<string>",
  "displayName": "<string>",
  "email": "<string>",
  "isEmailVerified": true,
  "locale": "<string>",
  "photoURL": "<string>",
  "userAgent": "<string>",
  "workflowVariants": [
    "<string>"
  ]
}'
{
  "code": "<string>",
  "data": {
    "didSignUp": true,
    "tokenRefreshReason": "<string>",
    "tokenRefreshRequired": true,
    "user": {
      "address": [
        {
          "city": "<string>",
          "country": "<string>",
          "countryCode": "<string>",
          "extendedAddress": "<string>",
          "formatted": "<string>",
          "metadata": {
            "createdAt": "2023-11-07T05:31:56Z",
            "createdBy": [
              127
            ],
            "deletedAt": "2023-11-07T05:31:56Z",
            "deletedBy": [
              127
            ],
            "modifiedAt": "2023-11-07T05:31:56Z",
            "modifiedBy": [
              127
            ]
          },
          "poBox": "<string>",
          "postalCode": "<string>",
          "region": "<string>",
          "streetAddress": "<string>",
          "type": "<string>"
        }
      ],
      "authDisplayName": "<string>",
      "authPictureURL": "<string>",
      "displayName": "<string>",
      "email": "<string>",
      "emails": [
        {
          "email": "<string>",
          "type": "<string>",
          "verifiedAt": "2023-11-07T05:31:56Z"
        }
      ],
      "etag": "<string>",
      "externalIdentifiers": [
        {
          "id": "<string>",
          "label": "<string>",
          "metadata": {
            "createdAt": "2023-11-07T05:31:56Z",
            "createdBy": [
              127
            ],
            "deletedAt": "2023-11-07T05:31:56Z",
            "deletedBy": [
              127
            ],
            "modifiedAt": "2023-11-07T05:31:56Z",
            "modifiedBy": [
              127
            ]
          }
        }
      ],
      "familyName": "<string>",
      "givenName": "<string>",
      "id": [
        127
      ],
      "lifecycleState": "<string>",
      "locale": "<string>",
      "maintenanceActivities": [
        {
          "activity": "<string>",
          "applied_at": "2023-11-07T05:31:56Z"
        }
      ],
      "markedForAbuseAt": "2023-11-07T05:31:56Z",
      "markedForAbuseBy": [
        127
      ],
      "metadata": {
        "createdAt": "2023-11-07T05:31:56Z",
        "createdBy": [
          127
        ],
        "deletedAt": "2023-11-07T05:31:56Z",
        "deletedBy": [
          127
        ],
        "markedForAbuseAt": "2023-11-07T05:31:56Z",
        "markedForAbuseBy": [
          127
        ],
        "modifiedAt": "2023-11-07T05:31:56Z",
        "modifiedBy": [
          127
        ]
      },
      "organizations": [
        {
          "costCenter": "<string>",
          "department": "<string>",
          "metadata": {
            "createdAt": "2023-11-07T05:31:56Z",
            "createdBy": [
              127
            ],
            "deletedAt": "2023-11-07T05:31:56Z",
            "deletedBy": [
              127
            ],
            "modifiedAt": "2023-11-07T05:31:56Z",
            "modifiedBy": [
              127
            ]
          },
          "occupation": "<string>",
          "organizationId": [
            127
          ],
          "tenantId": [
            127
          ],
          "title": "<string>"
        }
      ],
      "phoneticName": "<string>",
      "pictureURL": "<string>",
      "potentialScore": 123,
      "slug": "<string>",
      "version": 123
    },
    "workingContext": {
      "CollectionTree": [
        {
          "children": [
            "<any>"
          ],
          "collection": {
            "collectionKind": "<string>",
            "description": "<string>",
            "etag": "<string>",
            "icon": "<string>",
            "id": [
              127
            ],
            "label": "<string>",
            "lifecycleState": "<string>",
            "organizationId": [
              127
            ],
            "path": [
              [
                127
              ]
            ],
            "tenantId": [
              127
            ],
            "version": 123
          }
        }
      ],
      "organizationId": [
        127
      ],
      "tenantId": [
        127
      ]
    }
  },
  "details": {
    "consumption": {
      "units": 123
    },
    "operation": {
      "duration": 123,
      "operationId": "<string>"
    }
  },
  "done": true,
  "eventKey": "<string>",
  "message": "<string>"
}

Body

application/json
defaultFavoritesCollectionLabel
string
required

to the root collection when the user is created. The server will assign a default if omitted.

defaultOrganizationCollectionLabel
string
required

automatically to the root collection when the organization is created. The server will assign a default if omitted.

defaultOrganizationDisplayName
string
required

should provide a localized string. This value is always required but will have no effect on returning users.

defaultOrganizationName
string
required

provide a localized string. This value is always required but will have no effect on returning users.

defaultOrganizationSlug
string
required
defaultPersonalCollectionLabel
string
required

to the root collection when the user is created. The server will assign a default if omitted.

defaultProjectDisplayName
string
required

should provide a localized string. This value is always required but will have no effect on returning users.

defaultProjectName
string
required

provide a localized string. This value is always required but will have no effect on returning users.

defaultProjectSlug
string
required
deviceID
string
required
displayName
string
required
email
string
required
isEmailVerified
boolean
required
locale
string
required
photoURL
string
required
userAgent
string
required
workflowVariants
string[]
required

This value should be omitted or left as an empty string unless otherwise instructed.

Response

200
application/json
Success response
code
string
required
data
object
required
details
object
required
done
boolean
required
eventKey
string
required
message
string
required