kustomer-client
    Preparing search index...

    Function createToken

    • Create Token Logs in to an organization with domain, email, and password.

      Machine tokens can be created within the settings section by an administrator for API, tracking, and hook access

      Type Parameters

      • ThrowOnError extends boolean = true

      Parameters

      Returns RequestResult<
          {
              data: {
                  attributes: {
                      createdAt: string;
                      ipAddress: string;
                      lastAccessedAt: string;
                      lastTokenChars: string;
                      name: string;
                      roles: string[];
                      token: string;
                      updatedAt: string;
                      userAgent: string;
                  };
                  id: string;
                  links: { self: string };
                  relationships: {
                      org: { data: { id: string; type: string }; links: { self: string } };
                      user: { data: { id: string; type: string }; links: { self: string } };
                  };
                  type: string;
              };
          },
          unknown,
          ThrowOnError,
      >