Make Your First API Call
With your M2M API key in hand, verify everything works.
Get the authenticated user / app identity
export PIP_API_KEY="pip_live_xxxxxxxx"
curl https://pip.pcampus.co/identity/me \
-H "Authorization: Bearer $PIP_API_KEY"Expected response
{
"id": "usr_xxxxxxxxxxxx",
"email": "you@example.com",
"displayName": "Your Name",
"organizationId": "org_xxxxxxxxxxxx",
"createdAt": "2026-01-01T00:00:00.000Z"
}If you see a JSON response with your user or application details, you're all set.
Troubleshooting
| Status | Cause | Fix |
|---|---|---|
401 Unauthorized | Key missing or malformed | Check Authorization: Bearer pip_… header |
403 Forbidden | Key revoked or insufficient scope | Regenerate key in Console |
404 Not Found | Wrong endpoint path | Check the API Reference |
What's next?
- Identity Platform → — users, orgs, access control
- API Reference → — full endpoint listing
- SDKs → — JavaScript SDK (coming soon)