v1
Create a permanent, unauthenticated public URL for an existing file. The underlying file is unaffected and can still be fetched through the authenticated content endpoint. Use this when you want to share a stored asset (image, video, PDF) outside your API-keyed environment. Public URLs can be revoked at any time via `POST /v1/files/{file_id}/public-url/revoke`.
post/v1/files/{file_id}/public-url
Request
- Base URL: https://docs.x.ai (the document declares no server; this is the origin it was published from)
- URL: https://docs.x.ai/v1/files/{file_id}/public-url
- Auth: HTTP bearer
Path parameters
file_idstring required
The file's id.
Request body
Response
Success
Changes
No recorded changes to this operation across all 1 revision of this API.