---
title: "Read one style profile"
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.cloudraker.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Read one style profile

Path: CloudRaker Workspace API › Style profiles

`GET /style-profiles/{profileId}`

Reads a profile by id. Authorization: any member.

## Authentication

- `bearerAuth`, http, header `Authorization`

## Path parameters

- `profileId` (`getStyleProfile.path.profileId`; string, required)
  - minLength 1; maxLength 128

## Code samples

### cURL

```bash
curl --request GET \
  --url 'https://api.cloudraker.com/style-profiles/<profileId>' \
  --header 'Authorization: Bearer <token>'
```

### TypeScript

```typescript
const url = 'https://api.cloudraker.com/style-profiles/<profileId>';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "https://api.cloudraker.com/style-profiles/<profileId>"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.text)
```

## Responses

### 200

The profile.

#### Example

```json
{
  "data": {
    "name": "string",
    "logoFileId": null,
    "colors": {},
    "fonts": {},
    "page": {},
    "headings": {},
    "table": {},
    "isDefault": false,
    "id": "sty_01J9ZQ8YV3K7M2N4P6R8T0W2X4",
    "createdAt": "2019-08-24T14:15:22Z",
    "updatedAt": "2019-08-24T14:15:22Z",
    "createdBy": "string"
  }
}
```

- `data` (`getStyleProfile.response.200.data`; object, required)
  - `name` (`getStyleProfile.response.200.data.name`; string, required)
    - minLength 1; maxLength 120
  - `id` (`getStyleProfile.response.200.data.id`; string, required)
    - example `"sty_01J9ZQ8YV3K7M2N4P6R8T0W2X4"`
  - `createdAt` (`getStyleProfile.response.200.data.createdAt`; string, required)
    - format `date-time`; pattern `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$`
  - `updatedAt` (`getStyleProfile.response.200.data.updatedAt`; string, required)
    - format `date-time`; pattern `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$`
  - `createdBy` (`getStyleProfile.response.200.data.createdBy`; string, required)
  - `logoFileId` (`getStyleProfile.response.200.data.logoFileId`; any of, optional)
    - default `null`
    - any of: `string`, `null`
  - `colors` (`getStyleProfile.response.200.data.colors`; object, optional)
    - default `{}`
    - `primary` (`getStyleProfile.response.200.data.colors.primary`; string, optional)
      - pattern `^#[0-9a-fA-F]{6}$`; default `"#1F6FEB"`; example `"#1F6FEB"`
    - `secondary` (`getStyleProfile.response.200.data.colors.secondary`; string, optional)
      - pattern `^#[0-9a-fA-F]{6}$`; default `"#6E7781"`; example `"#1F6FEB"`
    - `text` (`getStyleProfile.response.200.data.colors.text`; string, optional)
      - pattern `^#[0-9a-fA-F]{6}$`; default `"#111111"`; example `"#1F6FEB"`
  - `fonts` (`getStyleProfile.response.200.data.fonts`; object, optional)
    - default `{}`
    - `body` (`getStyleProfile.response.200.data.fonts.body`; string, optional)
      - minLength 1; maxLength 64; default `"Noto Serif"`
    - `heading` (`getStyleProfile.response.200.data.fonts.heading`; string, optional)
      - minLength 1; maxLength 64; default `"Roboto"`
    - `baseSize` (`getStyleProfile.response.200.data.fonts.baseSize`; number, optional)
      - min 7; max 18; default `10.5`
  - `page` (`getStyleProfile.response.200.data.page`; object, optional)
    - default `{}`
    - `paper` (`getStyleProfile.response.200.data.page.paper`; string, optional)
      - one of `"a4"`, `"us-letter"`; default `"a4"`
    - `margins` (`getStyleProfile.response.200.data.page.margins`; object, optional)
      - default `{}`
      - `top` (`getStyleProfile.response.200.data.page.margins.top`; number, optional)
        - min 1; max 5; default `2.2`
      - `bottom` (`getStyleProfile.response.200.data.page.margins.bottom`; number, optional)
        - min 1; max 5; default `2.2`
      - `left` (`getStyleProfile.response.200.data.page.margins.left`; number, optional)
        - min 1; max 5; default `2`
      - `right` (`getStyleProfile.response.200.data.page.margins.right`; number, optional)
        - min 1; max 5; default `2`
    - `headerText` (`getStyleProfile.response.200.data.page.headerText`; string, optional)
      - maxLength 200; default `""`
    - `footerText` (`getStyleProfile.response.200.data.page.footerText`; string, optional)
      - maxLength 200; default `""`
    - `pageNumbers` (`getStyleProfile.response.200.data.page.pageNumbers`; boolean, optional)
      - default `true`
  - `headings` (`getStyleProfile.response.200.data.headings`; object, optional)
    - default `{}`
    - `numbered` (`getStyleProfile.response.200.data.headings.numbered`; boolean, optional)
      - default `false`
    - `color` (`getStyleProfile.response.200.data.headings.color`; string, optional)
      - one of `"primary"`, `"text"`; default `"primary"`
  - `table` (`getStyleProfile.response.200.data.table`; object, optional)
    - default `{}`
    - `headerFill` (`getStyleProfile.response.200.data.table.headerFill`; string, optional)
      - one of `"primary"`, `"secondary"`, `"none"`; default `"secondary"`
    - `stroke` (`getStyleProfile.response.200.data.table.stroke`; boolean, optional)
      - default `true`
  - `isDefault` (`getStyleProfile.response.200.data.isDefault`; boolean, optional)
    - default `false`

### 400

Validation Error

#### Example

```json
{
  "success": false,
  "error": [
    null
  ],
  "data": null
}
```

- `success` (`getStyleProfile.response.400.success`; boolean, required)
  - one of `false`
- `error` (`getStyleProfile.response.400.error`; array<unknown>, required)
- `data` (`getStyleProfile.response.400.data`; unknown, required)

### 404

`not_found` — no such style profile in this organization.

#### Example

```json
{
  "error": "string",
  "error_code": "string",
  "issues": [
    {
      "path": "string",
      "code": "string",
      "message": "string"
    }
  ]
}
```

- `error` (`getStyleProfile.response.404.error`; string, required) — The sentence a human reads.
- `error_code` (`getStyleProfile.response.404.error_code`; string, required) — The stable snake_case branch key.
- `issues` (`getStyleProfile.response.404.issues`; array<object>, optional) — Per-field detail, present only on a validation failure.
  - `path` (`getStyleProfile.response.404.issues.path`; string, required)
  - `code` (`getStyleProfile.response.404.issues.code`; string, required)
  - `message` (`getStyleProfile.response.404.issues.message`; string, required)


Source: https://docs.cloudraker.com/workspace/api/style-profiles/get-style-profile/index.md
