Skip to main content

Generate portal login link

POST 

https://api.freemius.com/v1/products/{product_id}/portal/login.json

Auth:Bearer TokenSCOPE: PRODUCT

Product-scoped API tokens allow you to operate on the product itself. This token usually allows read-only access to the product configuration and write access to several operations on subscriptions, customers, payments, and more. For most SaaS or app integrations, this is the token you will need.

  1. Go to the Freemius Developer Dashboard.
  2. Open the Settings page of the relevant product.
  3. Click the API & Keys tab.
  4. Copy the API Bearer Authorization Token from the UI.

Generate a direct login link for a user in the context of the store of the product. The login link is valid for 5 minutes from generation. Either user ID or email must be provided.

Request

Path Parameters

    product_id integer<int64>required

    The ID of the product.

    Possible values: >= 1

    Example: 1234

Bodyrequired

    idstring<int64>

    The ID of the user. Either id or email is required.

    Possible values: >= 0

    emailstring<email>

    The email of the user. Either id or email is required.

Responses

Portal login link generated successfully.

Schema
tokenstring

The generated portal session token.

linkstring<uri>

The complete portal login URL with the token.

We use essential cookies to enable our site to function. With your consent, we also use analytics and advertising cookies to understand how visitors interact with our site and to improve our services.
Learn More