# Get

Launch stage: Beta

`GET /api/2.0/identity/service-principals/{service_principal_id}`

Fetches a service principal by its internal ID
 from the <Databricks> account that parents the calling workspace.

API scopes: identity

## Path parameters

- `service_principal_id` (string, optional)
  Required. Internal ID of the service principal in <Databricks>.

## Returns

Returns the ServicePrincipal object.

## Response

```json
{
  "account_id": "string",
  "service_principal_id": "string",
  "external_id": "string",
  "application_id": "string",
  "display_name": "string",
  "account_sp_status": "string"
}
```

