Retrieve file URL
Retrieve the URL for a team or user logo using the specified file ID.
description: "Retrieve the URL for a team or user logo using the specified file ID."
Retrieve file URL
Retrieve the URL for a team or user logo using the specified file ID.
Authorizations
AuthorizationstringRequired
For accessing the API a valid JWT jwt must be passed in all queries in the 'Authorization' header. The following syntax must be used in the 'Authorization' header. (Bearer xxx.yyy.zzz)
Body
Responses
200
The details of the fetched Image
application/json
expiryinteger · int32OptionalExample:
The number of seconds until the public URL link expires. The default expiration time is 3600 seconds.
3600fileIdstringOptionalExample:
The unique ID of the file for which the URL is retrieved.
1ceee624-7c87-4e98-9995-042da2a32525publicUrlstringOptionalExample:
The public URL of the file corresponding to the given file ID.
https://storage.googleapis.com/user_logo/.../path-to-public-image400
There was a problem with input.
application/json
401
Access denied due to insufficient permissions.
application/json
403
Login failed or token not valid.
application/json
default
An unexpected error response.
application/json
post/v2/retrieve-file-url
POST /v2/retrieve-file-url HTTP/1.1
Host: auth.<env>.citrusad.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 151
{
"fileUrl": {
"fileId": "1ceee624-7c87-4e98-9995-042da2a32525",
"fileType": "FILE_TYPE_USER_LOGO",
"managerTeamId": "manager_team_67890",
"teamId": "Team-101"
}
}{
"expiry": 3600,
"fileId": "1ceee624-7c87-4e98-9995-042da2a32525",
"publicUrl": "https://storage.googleapis.com/user_logo/.../path-to-public-image"
}
