Skip to main content
POST
/
v1
/
portrait-styles
cURL
curl --request POST \
  --url https://api.peelapi.com/v1/portrait-styles \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form 'style_image=<string>' \
  --form style_image.0='@example-file'
{
  "data": {
    "job_id": "job_123",
    "links": {
      "self": "/v1/jobs/job_123",
      "stream": "/v1/jobs/job_123/stream"
    }
  },
  "errors": "<unknown>"
}
This endpoint creates a new portrait style that can be repeatedly used via style_id or added into style packs.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

multipart/form-data
style_image
required

Response

Job accepted

data
object
required
errors
unknown