# Course lesson OG image template

Course name, lesson number, title, instructor and a progress bar on a full-colour background.

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

For course platforms, cohorts and YouTube series. The whole frame is your accent colour and the text colour adapts to it, so a yellow brand gets dark text automatically. The progress bar shows how far into the course this lesson is.

## 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 |
|---|---|---|---|
| `title` | text | Lesson title. (default: Lesson title) | Designing idempotent REST APIs |
| `course` | text | Course name. | API Design Masterclass |
| `lesson` | text | Lesson label, e.g. Lesson 4 of 12. | Lesson 4 of 12 |
| `instructor` | text | Instructor name. | Daniel Okafor |
| `duration` | text | Running time, e.g. 48 min. | 18 min |
| `progress` | text | Course progress, a number from 0 to 100. | 33 |
| `site` | text | Your domain or a short URL. | learn.northwind.dev |
| `photo` | image URL | Instructor photo. | https://example.com/images/avatar-man.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. | — |

## 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": "course-lesson",
    "modifications": {
        "title": "Designing idempotent REST APIs",
        "course": "API Design Masterclass",
        "lesson": "Lesson 4 of 12",
        "instructor": "Daniel Okafor",
        "duration": "18 min",
        "progress": 33,
        "site": "learn.northwind.dev",
        "photo": "https://example.com/images/avatar-man.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/course-lesson/copy" -H "Authorization: Bearer sk_live_YOUR_KEY"
```
