-
Notifications
You must be signed in to change notification settings - Fork 5
RequestCloudinarySignature
Walter Lara edited this page May 27, 2022
·
2 revisions
Allows to request the authentication signature and other parameters needed to upload images into Cloudinary.
URL: /v1/cloudinary/sign
Method: POST
Path Parameters: None
Query Parameters: None
Headers:
Authorization: Bearer {accessToken}
Content-Type: application/json
Content:
Any Cloudinary Upload Optional Parameter.
Content example:
{
"public_id": "7bd2862f-8deb-4814-8943-156d9dab80dd",
"eager": "w_400,h_300,c_pad",
"overwrite": true,
"auto_tagging": 0.5
}
Code: 200 OK
Headers:
Content-Type: application/json
Content:
Field | Type | Description | Condition |
---|---|---|---|
signature | string | Generated signature. | Always |
timestamp | number | UNIX time in seconds. | Always |
cloudName | string | Cloudinary Cloud Name. | Always |
apiKey | string | Cloudinary API Key. | Always |
Content example:
{
"signature": "eceb5b5e22bdfafd5bd7b036b10aa94152b534bc",
"timestamp": 1653336779,
"cloudName": "newm",
"apiKey": "1234567890"
}
Code: 401 UNAUTHORIZED
Condition: If {accessToken}
is invalid or expired.