# Social post OG image template

A post card with avatar, name, handle, text and reply, repost and like counts.

- Slug: `social-post`
- Preview (real render): https://shareglint.com/img/templates/social-post.jpg
- Page: https://shareglint.com/en/templates/social-post

Turn a post into an image that reads anywhere: a clean card on a gradient in your accent colour, with the author, the text (line breaks kept) and the counts. No third-party logos, so it works for any network and for your own community.

## Fields

Every field is optional. Long text shrinks to fit instead of overflowing; an image field takes a public URL that we fetch on our side.

| Field | Type | Description | Example |
|---|---|---|---|
| `text` | text | The post itself. Line breaks are kept. (default: Post text) | We shipped dynamic OG images for every docs page this morning.  Click-through from Slack and LinkedIn is up 41% in the first week. |
| `name` | text | Author's display name. | Daniel Okafor |
| `handle` | text | Social handle, e.g. @mayacodes. | @danokafor |
| `verified` | text | Any value shows a check mark next to the name; leave it empty to hide. | yes |
| `date` | text | Time and date as you want them printed. | 9:41 AM · Oct 22, 2026 |
| `replies` | text | Reply count, e.g. 86. | 86 |
| `reposts` | text | Repost count, e.g. 312. | 312 |
| `likes` | text | Like count, e.g. 2.4k. | 2.4k |
| `avatar` | image URL | Author's avatar. Without it, the first letter of the name. | https://example.com/images/avatar-man2.jpg |
| `accent` | colour | Brand colour as hex, e.g. #6366f1. Drives buttons, highlights and the background glow. (default: #7c3aed) | #7c3aed |
| `theme` | dark | light | Colour scheme: dark or light. (default: light) | — |

## Render it with one request

```bash
curl -X POST "https://shareglint.com/v1/images?wait=true" \
  -H "Authorization: Bearer sk_live_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "template": "social-post",
    "modifications": {
        "text": "We shipped dynamic OG images for every docs page this morning.\n\nClick-through from Slack and LinkedIn is up 41% in the first week.",
        "name": "Daniel Okafor",
        "handle": "@danokafor",
        "verified": "yes",
        "date": "9:41 AM · Oct 22, 2026",
        "replies": "86",
        "reposts": "312",
        "likes": "2.4k",
        "avatar": "https://example.com/images/avatar-man2.jpg"
    }
}'
```

## Make it yours

accent and theme change per request. For anything more, copy the template into your account: you get an ordinary HTML template with the same fields that you can edit in the dashboard or through the API. If the slug is free on your account, the copy takes it — your integrations switch to your version without changing a line.

```bash
curl -X POST "https://shareglint.com/v1/templates/library/social-post/copy" -H "Authorization: Bearer sk_live_YOUR_KEY"
```
