Skip to main content
An App is an external application that integrates with Profy’s identity and calls experts with an OAuth token. Model calls deduct the authorizing user’s credits.

What Is a Profy App

Development Workflow

1

Create an App

Create a new App in Profy Studio. You will receive:
  • App UUID (i.e., client_id)
  • App Secret (i.e., client_secret, displayed only once)
  • OAuth configuration entry
Configure OAuth settings in your App:
  • Register one or more Redirect URIs (callback URLs)
  • Set the App’s name, description, and icon
2

Implement the OAuth Flow

Implement the standard OAuth 2.0 Authorization Code flow in your application:
For the full flow, see OAuth Integration.
3

Integrate the API

Use the OAuth Token to call the Profy API:Call an AI model (METERED billing):
4

Submit for Review

Once your App is complete, submit it for review to publish on the Profy App Marketplace:
  1. Complete the App information in Studio (name, description, icon, screenshots)
  2. Click the “Publish” button to submit for review
  3. The review team will check the App’s functionality and security
  4. After approval, the App goes live on the marketplace
5

Publish to the Marketplace

After approval, your App will appear in the Profy App Marketplace. Users can discover, authorize, and use your App.Credit revenue earned through usage will be distributed according to the creator incentive program.

Billing Models

Model calls deduct the user’s credits by token:

METERED (Per-Token Billing)

Suitable for AI model invocation scenarios. When users call the Chat Completions API, credits are deducted from the user’s account based on actual token consumption.

App Review Process

App publishing uses a dual-track review mechanism (consistent with Expert review): Review focus areas:
  • Whether the App is fully functional
  • Whether the OAuth flow meets security standards
  • Whether the user experience is reasonable
  • Whether billing is transparent

OAuth and App Status

The OAuth authorization flow is available as soon as the App is created, regardless of application.status. The status only controls discoverability in the marketplace: This means you can complete OAuth integration and testing before the App goes live.

Full Integration Example

Here is a complete App backend example built with Express + Profy SDK:

Best Practices

OAuth Tokens should be encrypted and stored in your server-side database. Do not expose them on the frontend. Use httpOnly cookies or sessions to pass user identity.
Access Tokens have a 1-hour validity period. When an API call returns 401, automatically use the Refresh Token to obtain a new token, making it transparent to the user.
When a model call fails because the balance is too low, show users a top-up prompt instead of failing silently.

Next Steps

OAuth Integration

Complete OAuth 2.0 integration flow