ChakraHQ APIs
HomeSign In
HomeSign In
  1. Photo
  • API Keys
  • Response Format
  • Whatsapp
    • Inbound Events Webhook
    • Pass Through APIs
      • Create WhatsApp Message Template (pass-through)
      • List WhatsApp Message Templates (pass-through)
      • Update WhatsApp Message Template (pass-through)
    • Send Whatsapp Template Message For Process
      POST
    • Send Whatsapp Template Message For A Phone Number
      POST
    • Upload Public Media
      POST
    • Whatsapp Messages API (pass-through)
      POST
  • Platform
    • Process
      • Fetch Process By Id
      • List Processes
      • Create Process
      • Update Process
      • Update Process By Primary Key
      • Delete Process
      • Delete Process By Primary Key Value
      • Bulk Create Process API
      • Bulk Update Process API
    • Task
      • Create Task API
    • User
      • List Users API
      • List Users API (V2)
      • Fetch User API
      • Fetch User API (V2)
      • Update User API
    • Photo
      • Fetch Photo API
        GET
      • Upload Photo API
        POST
      • Upload Photo API With Id
        POST
    • Background Job
      • Fetch Background Job
      • Fetch Background Job Entries API
    • Fetch Config
      GET
  1. Photo

Upload Photo API With Id

POST
https://api.chakrahq.com/v1/ext/photo/{photoId}
The following API allow you to upload a single photo and generate a photo object.

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Path Params
photoId
string 
required
A photo id - has to be a uuid
Example:
f03ee609-cd2d-4e61-821d-9b0531e4ad8c
Body Params multipart/form-data
photo
file 
required
pass the photo data. Can be a Buffer object or a ReadableStream depending on your client library. While testing in postman you can directly select a file for this formdata parameter
filename
string 
optional
name of the photo being uploaded
Example:
IMG_00001
filetype
string 
optional
filetype of the file being uploaded
Example:
png

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.chakrahq.com/v1/ext/photo/f03ee609-cd2d-4e61-821d-9b0531e4ad8c' \
--form 'photo=@""' \
--form 'filename="IMG_00001"' \
--form 'filetype="png"'

Responses

🟢200Success
application/json
Body
_data
object 
required
id
string 
required
createdAt
integer 
required
updatedAt
integer 
required
filetype
string 
required
filename
string 
required
height
null 
required
width
null 
required
isPublic
boolean 
required
team
string 
required
user
null 
required
Example
{
	"_data": {
		"id": "f03ee609-cd2d-4e61-821d-9b0531e4ad8c",
		"createdAt": 1700558337172,
		"updatedAt": 1700558337172,
		"filetype": "png",
		"filename": "mobile_screenshot",
		"height": null,
		"width": null,
		"isPublic": false,
		"team": "5fc9f8e3-af4a-4f29-bfd8-6c02e3abe3ee",
		"user": null
	}
}
Previous
Upload Photo API
Next
Fetch Background Job
Built with