Skip to main content
POST
/
v1
/
projects
/
{projectId}
/
images
Add Image
curl --request POST \
  --url https://api.migma.ai/v1/projects/{projectId}/images \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "url": "<string>",
  "description": "<string>",
  "tags": [
    "<string>"
  ]
}
'
{
  "status": "success",
  "data": {
    "url": "<string>",
    "description": "<string>",
    "tags": [
      "<string>"
    ]
  },
  "message": "<string>"
}

Authorizations

Authorization
string
header
required

API key authentication. Use 'Authorization: Bearer YOUR_API_KEY' where YOUR_API_KEY is obtained from the Migma dashboard under Settings → API Integration.

Path Parameters

projectId
string
required

Project ID (MongoDB ObjectId)

Pattern: ^[0-9a-fA-F]{24}$

Body

application/json
url
string<uri>
required

URL of the image

description
string

Description of the image

Maximum string length: 1000
tags
string[]

Tags for the image

Maximum array length: 10
Maximum string length: 50

Response

Image added

status
enum<string>
Available options:
success
data
object
message
string