# Get all blog authors

GET https://services.leadconnectorhq.com/blogs/authors

The "Get all blog authors" API returns the blog authors for a given location ID.

## Authentication

Send `Authorization: Bearer <token>` using:

- **Sub-Account token: OAuth access token or Private Integration Token.** Scopes: `blogs/author.readonly`

## Parameters

### Header Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `Version` | string | Yes | API Version |

### Query Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `locationId` | string | Yes | Sub-account (location) identifier the author belongs to |
| `limit` | number | Yes | Maximum number of authors to return (0-50) |
| `offset` | number | Yes | Number of authors to skip before returning results |
| `searchTerm` | string | No | Free-text search across author name and description |

## OpenAPI Specification

```json
{
  "openapi": "3.0.0",
  "info": {
    "title": "HighLevel API",
    "version": "v3"
  },
  "servers": [
    {
      "url": "https://services.leadconnectorhq.com"
    }
  ],
  "paths": {
    "/blogs/authors": {
      "get": {
        "summary": "Get all blog authors",
        "operationId": "getAllBlogAuthors",
        "description": "The \"Get all blog authors\" API returns the blog authors for a given location ID.",
        "parameters": [
          {
            "name": "locationId",
            "required": true,
            "in": "query",
            "description": "Sub-account (location) identifier the author belongs to",
            "schema": {
              "example": "ve9EPM428h8vShlRW1KT",
              "type": "string"
            }
          },
          {
            "name": "limit",
            "required": true,
            "in": "query",
            "description": "Maximum number of authors to return (0-50)",
            "schema": {
              "example": 10,
              "type": "number"
            }
          },
          {
            "name": "offset",
            "required": true,
            "in": "query",
            "description": "Number of authors to skip before returning results",
            "schema": {
              "example": 0,
              "type": "number"
            }
          },
          {
            "name": "searchTerm",
            "required": false,
            "in": "query",
            "description": "Free-text search across author name and description",
            "schema": {
              "example": "jane",
              "type": "string"
            }
          },
          {
            "name": "Version",
            "in": "header",
            "description": "API Version",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "v3"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthorsResponseDTO"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestDTO"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnauthorizedDTO"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UnprocessableDTO"
                }
              }
            }
          }
        },
        "security": [
          {
            "Location-Access": [
              "blogs/author.readonly"
            ]
          }
        ]
      }
    }
  },
  "components": {
    "securitySchemes": {
      "bearer": {
        "scheme": "bearer",
        "bearerFormat": "JWT",
        "name": "Authorization",
        "in": "header",
        "description": "Use the Access Token generated with user type as Sub-Account (OR) Private Integration Token of Sub-Account.",
        "type": "http"
      },
      "Location-Access": {
        "scheme": "bearer",
        "bearerFormat": "JWT",
        "name": "Authorization",
        "in": "header",
        "description": "Use the Access Token generated with user type as Sub-Account (OR) Private Integration Token of Sub-Account.",
        "type": "http"
      },
      "Location-Access-Only": {
        "scheme": "bearer",
        "bearerFormat": "JWT",
        "name": "Authorization",
        "in": "header",
        "description": "Use the Access Token generated with user type as Sub-Account.",
        "type": "http"
      },
      "Agency-Access": {
        "scheme": "bearer",
        "bearerFormat": "JWT",
        "name": "Authorization",
        "in": "header",
        "description": "Use the Access Token generated with user type as Agency (OR) Private Integration Token of Agency.",
        "type": "http"
      },
      "Agency-Access-Only": {
        "scheme": "bearer",
        "bearerFormat": "JWT",
        "name": "Authorization",
        "in": "header",
        "description": "Use the Access Token generated with user type as Agency.",
        "type": "http"
      }
    },
    "schemas": {
      "AuthorsResponseDTO": {
        "type": "object",
        "properties": {
          "authors": {
            "description": "Array of authors",
            "example": [
              {
                "_id": "66c381b38be80858b9af62b6",
                "locationId": "ve9EPM428h8vShlRW1KT",
                "name": "Jane Doe",
                "description": "Content strategist",
                "imageUrl": "https://storage.googleapis.com/blog-assets/authors/jane.png"
              }
            ],
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "locationId": {
                  "type": "string",
                  "description": "Sub-account (location) identifier the author belongs to",
                  "example": "ve9EPM428h8vShlRW1KT"
                },
                "name": {
                  "type": "string",
                  "description": "Display name of the author",
                  "example": "Jane Doe"
                },
                "description": {
                  "type": "string",
                  "description": "Short biography or description of the author",
                  "example": "Content strategist with 10+ years of experience."
                },
                "role": {
                  "type": "string",
                  "description": "Role of the author within the blog (e.g., author, editor, contributor)",
                  "example": "author"
                },
                "imageUrl": {
                  "type": "string",
                  "description": "Profile image URL for the author",
                  "example": "https://storage.googleapis.com/blog-assets/authors/jane-doe.png"
                },
                "imageAltText": {
                  "type": "string",
                  "description": "Alt text for the author profile image",
                  "example": "Portrait of Jane Doe"
                },
                "socials": {
                  "description": "Social media profiles for the author",
                  "example": [
                    {
                      "url": "https://twitter.com/example",
                      "type": "twitter"
                    },
                    {
                      "url": "https://linkedin.com/in/example",
                      "type": "linkedIn"
                    }
                  ],
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "url": {
                        "type": "string",
                        "description": "URL of the social profile",
                        "example": "https://twitter.com/example"
                      },
                      "type": {
                        "type": "string",
                        "description": "Type of social platform",
                        "example": "twitter"
                      }
                    },
                    "required": [
                      "url",
                      "type"
                    ],
                    "title": "Social"
                  }
                },
                "canonicalLink": {
                  "type": "string",
                  "description": "Canonical link override for the author profile page",
                  "example": "https://example.com/authors/jane-doe"
                },
                "_id": {
                  "type": "string",
                  "description": "Identifier of the author",
                  "example": "66c381b38be80858b9af62b6"
                },
                "updatedAt": {
                  "format": "date-time",
                  "type": "string",
                  "description": "When the author was last updated",
                  "example": "2026-05-13T17:14:57.000Z"
                }
              },
              "required": [
                "locationId",
                "name",
                "_id"
              ],
              "title": "BlogAuthorResponseDTO"
            }
          },
          "count": {
            "type": "number",
            "description": "Total number of authors matching the query, ignoring limit/offset",
            "example": 42
          }
        },
        "required": [
          "authors",
          "count"
        ],
        "title": "AuthorsResponseDTO"
      },
      "BadRequestDTO": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number",
            "example": 400
          },
          "message": {
            "type": "string",
            "example": "Bad Request"
          }
        },
        "title": "BadRequestDTO"
      },
      "UnauthorizedDTO": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number",
            "example": 401
          },
          "message": {
            "type": "string",
            "example": "Invalid token: access token is invalid"
          },
          "error": {
            "type": "string",
            "example": "Unauthorized"
          }
        },
        "title": "UnauthorizedDTO"
      },
      "UnprocessableDTO": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "number",
            "example": 422
          },
          "message": {
            "example": [
              "Unprocessable Entity"
            ],
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "error": {
            "type": "string",
            "example": "Unprocessable Entity"
          }
        },
        "title": "UnprocessableDTO"
      }
    }
  }
}
```

## HighLevel SDK Examples

**Node.js** (`@gohighlevel/api-client`)

```javascript
import HighLevel from '@gohighlevel/api-client';

const ghl = new HighLevel({
  privateIntegrationToken: '<PRIVATE_INTEGRATION_TOKEN>'
});

const response = await ghl.blogs.getAllBlogAuthors({ locationId: '<LOCATIONID>', limit: '<LIMIT>', offset: '<OFFSET>' });
console.log(response);
```

**Python** (`gohighlevel-api-client`)

```python
from highlevel import HighLevel

client = HighLevel(
    private_integration_token='<PRIVATE_INTEGRATION_TOKEN>'
)

response = await client.blogs.get_all_blog_authors(locationId='<LOCATIONID>', limit='<LIMIT>', offset='<OFFSET>')
print(response)
```

**PHP** (`gohighlevel/api-client`)

```php
<?php
require_once 'vendor/autoload.php';

use HighLevel\HighLevel;
use HighLevel\HighLevelConfig;

$config = new HighLevelConfig([
    'privateIntegrationToken' => '<PRIVATE_INTEGRATION_TOKEN>'
]);
$ghl = new HighLevel($config);

$response = $ghl->blogs->getAllBlogAuthors(['locationId' => '<LOCATIONID>', 'limit' => '<LIMIT>', 'offset' => '<OFFSET>']);
echo json_encode($response, JSON_PRETTY_PRINT);
```

## Code Examples

**cURL**

```bash
curl -L -X GET 'https://services.leadconnectorhq.com/blogs/authors?locationId=<LOCATIONID>&limit=<LIMIT>&offset=<OFFSET>' \
  -H 'Authorization: Bearer <TOKEN>' \
  -H 'Version: v3'
```

**Node.js**

```javascript
const options = {
  method: 'GET',
  headers: {
    Authorization: 'Bearer <TOKEN>',
    Version: 'v3'
  }
};

try {
  const response = await fetch('https://services.leadconnectorhq.com/blogs/authors?locationId=<LOCATIONID>&limit=<LIMIT>&offset=<OFFSET>', options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

**Python**

```python
import requests

url = "https://services.leadconnectorhq.com/blogs/authors"

headers = {
    "Authorization": "Bearer <TOKEN>",
    "Version": "v3"
}

params = {
    "locationId": "<LOCATIONID>",
    "limit": "<LIMIT>",
    "offset": "<OFFSET>"
}

response = requests.get(url, params=params, headers=headers)
print(response.json())
```

**PHP**

```php
<?php
$curl = curl_init();

curl_setopt_array($curl, [
  CURLOPT_URL => 'https://services.leadconnectorhq.com/blogs/authors?locationId=<LOCATIONID>&limit=<LIMIT>&offset=<OFFSET>',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_CUSTOMREQUEST => 'GET',
  CURLOPT_HTTPHEADER => [
    'Authorization: Bearer <TOKEN>',
    'Version: v3',
  ],
]);

$response = curl_exec($curl);
curl_close($curl);
echo $response;
```

**Java**

```java
HttpResponse<String> response = Unirest
  .get("https://services.leadconnectorhq.com/blogs/authors?locationId=<LOCATIONID>&limit=<LIMIT>&offset=<OFFSET>")
  .header("Authorization", "Bearer <TOKEN>")
  .header("Version", "v3")
  .asString();
```

**Go**

```go
package main

import (
  "fmt"
  "net/http"
  "io"
)

func main() {
  url := "https://services.leadconnectorhq.com/blogs/authors?locationId=<LOCATIONID>&limit=<LIMIT>&offset=<OFFSET>"
  req, _ := http.NewRequest("GET", url, nil)
  req.Header.Add("Authorization", "Bearer <TOKEN>")
  req.Header.Add("Version", "v3")

  res, _ := http.DefaultClient.Do(req)
  defer res.Body.Close()
  body, _ := io.ReadAll(res.Body)
  fmt.Println(string(body))
}
```

**Ruby**

```ruby
require 'uri'
require 'net/http'

url = URI("https://services.leadconnectorhq.com/blogs/authors?locationId=<LOCATIONID>&limit=<LIMIT>&offset=<OFFSET>")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["Authorization"] = "Bearer <TOKEN>"
request["Version"] = "v3"

response = http.request(request)
puts response.read_body
```

**PowerShell**

```powershell
$headers = @{
  "Authorization" = "Bearer <TOKEN>"
  "Version" = "v3"
}

$response = Invoke-RestMethod -Uri 'https://services.leadconnectorhq.com/blogs/authors?locationId=<LOCATIONID>&limit=<LIMIT>&offset=<OFFSET>' -Method 'GET' -Headers $headers
$response | ConvertTo-Json
```
