Skip to main content
GET
/
api
/
v1
/
styleguides
/
{id}
Get a Style Guide
curl --request GET \
  --url https://eu.phrase.com/styleguide/api/v1/styleguides/{id} \
  --header 'Authorization: Bearer <token>'
{
  "id": "018e1234-5678-7890-abcd-ef1234567890",
  "name": "English Style Guide",
  "description": "Style guide for English content",
  "language": {
    "bcpCode": "en-GB",
    "description": "English (United Kingdom)",
    "language": "cs",
    "region": "gb",
    "script": "LATN"
  },
  "isDefault": false,
  "createdBy": {
    "id": "0015oCjtouINgRCDIvQtjo",
    "username": "john.doe",
    "fullName": "John Doe",
    "email": "john.doe@example.com",
    "avatarUrl": "https://example.com/avatars/john-doe.png"
  },
  "lastModifiedBy": {
    "id": "0015oCjtouINgRCDIvQtjo",
    "username": "john.doe",
    "fullName": "John Doe",
    "email": "john.doe@example.com",
    "avatarUrl": "https://example.com/avatars/john-doe.png"
  },
  "versions": [
    {
      "id": "018e1234-5678-7890-abcd-ef1234567890",
      "versionNumber": 1,
      "name": "English Style Guide v1",
      "description": "Initial version of the style guide",
      "changeNotes": "Updated grammar rules and added new terminology",
      "fileName": "StyleGuide.md",
      "fileSizeBytes": 1024,
      "fileType": "text/markdown",
      "createdAt": "2024-01-15T10:30:00Z",
      "lastModifiedAt": "2024-01-15T10:30:00Z",
      "lastModifiedBy": {
        "id": "0015oCjtouINgRCDIvQtjo",
        "username": "john.doe",
        "fullName": "John Doe",
        "email": "john.doe@example.com",
        "avatarUrl": "https://example.com/avatars/john-doe.png"
      }
    }
  ],
  "createdAt": "2024-01-15T10:30:00Z",
  "lastModifiedAt": "2024-01-15T10:30:00Z"
}

Documentation Index

Fetch the complete documentation index at: https://developers.phrase.com/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

JWT from IDM (Authorization: Bearer )

Path Parameters

id
string<uuid>
required

Style Guide ID

Query Parameters

includeVersions
boolean
default:false

Whether to include versions in the response

Response

Style Guide retrieved successfully

Style Guide information

id
string<uuid>

Unique identifier of the Style Guide

Example:

"018e1234-5678-7890-abcd-ef1234567890"

name
string

Name of the Style Guide (latest version)

Maximum string length: 50
Example:

"English Style Guide"

description
string

Description of the Style Guide (latest version)

Maximum string length: 250
Example:

"Style guide for English content"

language
object

Language details

isDefault
boolean

Whether this is the default Style Guide

Example:

false

createdBy
object

User who created the Style Guide

lastModifiedBy
object

User who last modified the Style Guide

versions
object[]

List of all versions of this Style Guide. Only present when includeVersions=true.

createdAt
string<date-time>

Timestamp when the Style Guide was created

Example:

"2024-01-15T10:30:00Z"

lastModifiedAt
string<date-time>

Timestamp when the Style Guide was last modified

Example:

"2024-01-15T10:30:00Z"