# 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
Response
The authenticated credential, workspace, environment and granted scopes. No secret is included.
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, dispositions:read, dispositions:write, scheduled_calls:read, scheduled_calls:write