Substy Developers
Account and agency

Get account profile

Read the authenticated user’s profile, primary email ID, email verification statuses, linked sign-in providers and enabled security settings. Use returned email and external-account IDs when requesting sensitive account changes.

GET/v1/agencies/{agencyId}/account/profile

Read the authenticated user’s profile, primary email ID, email verification statuses, linked sign-in providers and enabled security settings. Use returned email and external-account IDs when requesting sensitive account changes.

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Path Parameters

agencyId*string
Length1 <= length

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/v1/agencies/string/account/profile" \  -H "Authorization: Bearer YOUR_API_KEY"
{  "data": {    "id": "string",    "firstName": null,    "lastName": null,    "imageUrl": "string",    "primaryEmailAddressId": null,    "emails": [      {        "id": "string",        "emailAddress": "string",        "verificationStatus": null      }    ],    "externalAccounts": [      {        "id": "string",        "provider": "string",        "emailAddress": "string"      }    ],    "passwordEnabled": true,    "twoFactorEnabled": true,    "deleteSelfEnabled": true  },  "meta": {    "requestId": "string"  }}