# Replace example resource IDs and ownerId with values from your workspace.
: "${POWERDIALER_API_KEY:?Set POWERDIALER_API_KEY to your scoped API key}"
curl --request GET \
--url 'https://api.migration.powerdialer.ai/api/public/v2/me' \
--header "Authorization: Bearer $POWERDIALER_API_KEY"{
"credentialId": "00000000-0000-4000-8000-000000000001",
"workspaceId": "org_example",
"kind": "personal",
"ownerId": "user_example",
"allowedUserIds": [],
"scopes": [
"calls:read",
"lists:read"
],
"environment": "live",
"apiVersion": "v2"
}{
"error": {
"code": "invalid_api_key",
"message": "API key is invalid, expired or revoked",
"requestId": "00000000-0000-4000-8000-000000000004"
}
}Check your API connection
Confirm which workspace, environment and permissions your API key uses before importing contacts or reading customer data. Requires a valid scoped bearer key; no additional resource scope is needed.
The response identifies the credential, its personal or workspace kind, owner restrictions, scopes and API version. An empty allowedUserIds array on a workspace key means workspace-wide access; a personal key remains limited to its owner. This endpoint does not return the secret or issue new credentials.
A 401 invalid_api_key means the token is invalid, expired, revoked or belongs to another environment. 401 inactive_membership means the personal key’s owner has left the workspace. Remove acting-user headers if you receive 400 acting_user_not_supported. This read can be retried after a transient failure without an idempotency key.
Start with authentication.
# Replace example resource IDs and ownerId with values from your workspace.
: "${POWERDIALER_API_KEY:?Set POWERDIALER_API_KEY to your scoped API key}"
curl --request GET \
--url 'https://api.migration.powerdialer.ai/api/public/v2/me' \
--header "Authorization: Bearer $POWERDIALER_API_KEY"{
"credentialId": "00000000-0000-4000-8000-000000000001",
"workspaceId": "org_example",
"kind": "personal",
"ownerId": "user_example",
"allowedUserIds": [],
"scopes": [
"calls:read",
"lists:read"
],
"environment": "live",
"apiVersion": "v2"
}{
"error": {
"code": "invalid_api_key",
"message": "API key is invalid, expired or revoked",
"requestId": "00000000-0000-4000-8000-000000000004"
}
}Authorizations
Issued in Developers. Workspace/owner/scopes come from credential, never acting-user headers. API keys cannot manage API credentials.
Response
The authenticated credential, workspace, environment and granted scopes. No secret is included.
Identifier of the API key used for this request.
Workspace this key can access. Requests cannot select a different workspace.
Personal keys follow one member; workspace keys use the configured member allowlist.
personal, workspace Member ID for a personal key; null for a workspace key.
Member IDs allowed by a workspace key. An empty array means all owners in that workspace; it does not widen a personal key.
Permissions granted to this key.
contacts:read, contacts:write, lists:read, lists:write, calls:read, recordings:read, transcripts:read, analytics:read, changes:read, webhooks:manage Environment the key was issued for.
live, test Version of the public API.
v2