Skip to content

Events

Events

How Events works in Paycux, what it is for, and the smallest setup that gets it running.

Agent registration events

Agent registration events is handled by Events rather than by your application code. Paycux exposes it through the same API surface as the rest of the platform, so the client you already configured needs no additional setup.

Configuration lives in the dashboard and is versioned per environment. Change it in staging, confirm the behaviour, then apply the same change to production.

API key events

Every API request is authenticated with a bearer token in the Authorization header. Keys are scoped to a single environment and are shown once at creation — store them in a secret manager, not in source control.

1curl -X GET 'https://api.paycux.com/v1/organizations' \
2 -H 'Authorization: Bearer $PAYCUX_API_KEY'

Authentication events

Authentication events is delivered as an event you can subscribe to. Events carry the object as it looked after the change, plus the actor that caused it.

Subscribe to the specific event types you handle rather than all of them — a wildcard subscription turns every new event type into unexpected traffic.

Connection events

Connection events is handled by Events rather than by your application code. Paycux exposes it through the same API surface as the rest of the platform, so the client you already configured needs no additional setup.

Configuration lives in the dashboard and is versioned per environment. Change it in staging, confirm the behaviour, then apply the same change to production.

Directory Sync events

Directory Sync keeps your user list in step with the customer's directory. Paycux receives create, update and delete operations and normalizes them into a single shape regardless of the source system.

Deletes arrive as deactivations. Treat a deactivated user as a user who can no longer sign in, and decide separately whether to delete their data.

Email verification events

Verify the setup end to end before you hand it to a customer. Run the flow from a private browser window so no existing session masks a broken step.

  1. 1Open the connection in the dashboard and confirm its status reads Active.
  2. 2Start the flow from your application, not from the provider, so the redirect URI is exercised.
  3. 3Sign in as a test user and confirm the profile arrives with an email address.
  4. 4Check the connection's event list — a successful sign-in appears within a few seconds.

Feature flag events

Feature flags are evaluated per user and per organization, so you can ship a change to one customer before the rest. Evaluation happens locally against a cached rule set, so a flag check never adds a network round trip.

Flags are configuration, not permissions. Do not use a flag to gate access to data a user should not see — use a permission check for that.

Group events

Assign the users and groups who should have access. Anyone outside the assignment is rejected at the provider, before the request reaches Paycux.

Group names sync as-is. If you use groups to drive roles in your application, map them once in the dashboard under Authorization rather than branching on group names in code.