Skip to main content
POST
/
galleries
Create a gallery
curl --request POST \
  --url https://api.neuraldraft.io/v1/galleries \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "Home carousel",
  "slug": "home-carousel",
  "items": [
    {
      "url": "https://cdn.neuraldraft.io/galleries/atelier/hero-1.jpg",
      "alt": "Atelier studio entrance"
    }
  ]
}
'
{
  "data": {
    "slug": "home-carousel",
    "name": "Home carousel",
    "items": [
      {
        "url": "https://cdn.neuraldraft.io/galleries/atelier/hero-1.jpg",
        "alt": "Atelier studio entrance"
      }
    ],
    "items_count": 3,
    "created_at": "2023-11-07T05:31:56Z",
    "updated_at": "2023-11-07T05:31:56Z"
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.neuraldraft.io/llms.txt

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

Authorizations

Authorization
string
header
required

Project API key. Pass as Authorization: Bearer ndsk_live_.... Manage keys via /projects/me/api-keys. Test-mode keys use the ndsk_test_ prefix.

Body

application/json
name
string
required
Maximum string length: 255
Example:

"Home carousel"

slug
string

Optional explicit slug. Omit to auto-derive from name. On collision the server appends -2, -3, … to find a free slug.

Pattern: ^[a-z0-9][a-z0-9-]{0,254}$
Example:

"home-carousel"

items
object[]
Maximum array length: 200

Response

Created

data
object