GetChatMediaUrl

Updated at:

Retrieves the access URL for a media file in a chat message.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

No authorization for this operation. If you encounter issues with this operation, contact technical support.

Request parameters

Parameter

Type

Required

Description

Example

MediaId

string

Yes

media id

$iAHNCNQCo3dhdgMGBAAFAAbaACOEAaQhIEeoAqpjjBl42N6o_kg7A88AAAGRIRRuBgTOACrxHgcACM8AAAGRIYJLBQ

RequestId

string

No

The request ID.

8707EB29-BAED-4302-B999-40BA61877437

InstanceId

string

Yes

The instance ID.

ccc-test

Response elements

Element

Type

Description

Example

object

GetChatMediaUrlResponse

Data

string

The returned data.

None

RequestId

string

The request ID.

9FBA26B0-462B-4D77-B78F-AF35560DBC71

HttpStatusCode

integer

The HTTP status code.

200

Code

string

The response code.

OK

Message

string

The response message.

Internal service issue. Detail:.

Params

array

The response parameters.

string

The response parameters.

['OFFLINE', 'READY,RINGING,TALKING']

Examples

Success response

JSON format

{
  "Data": "无",
  "RequestId": "9FBA26B0-462B-4D77-B78F-AF35560DBC71",
  "HttpStatusCode": 200,
  "Code": "OK",
  "Message": "Internal service issue. Detail:.",
  "Params": [
    "['OFFLINE', 'READY,RINGING,TALKING']"
  ]
}

Error codes

HTTP status code

Error code

Error message

Description

404 NotExists.InstanceId The specified instance %s does not exist. The specified call center instance does not exist.

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.