Skip to main content
GET
/
workspace
/
{workspace-id}
/
project
/
{project-id}
/
styles
Retrieve the list of styles defined for the project (scope: styles.read)
curl --request GET \
  --url https://api.standards.site/beta/workspace/{workspace-id}/project/{project-id}/styles \
  --header 'Authorization: Bearer <token>'
{
  "workspace": "z3plqkvf52r",
  "project": "3e95a13e7f1",
  "colors": [
    {
      "id": "strong-blue",
      "name": "Strong Blue",
      "rgb": "0,102,204",
      "cmyk": "100,50,0,20",
      "hex": "#0066CC",
      "pms": "300 C",
      "pms2": "2935 U",
      "ral": 5015
    }
  ],
  "types": [
    {
      "id": "body-small",
      "name": "Body Small",
      "family": "font-sohne-buch",
      "size": 14,
      "leading": 20,
      "tracking": 0,
      "casing": "none",
      "spacing": 0,
      "responsive": true,
      "features": {}
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

workspace-id
string
required

The identifier for the workspace

project-id
string
required

The identifier for the project in the workspace

Response

The list of styles was retrieved successfully

workspace
string
required

The workspace id (matches the workspace-id sent with the request)

Example:

"z3plqkvf52r"

project
string
required

The project id (matches the project-id sent with the request)

Example:

"3e95a13e7f1"

colors
object[]
required

The color styles that have been defined for the project

types
object[]
required

The type styles that have been defined for the project