Download the PHP package yannelli/laravel-plaud without Composer
On this page you can find all versions of the php package yannelli/laravel-plaud. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download yannelli/laravel-plaud
More information about yannelli/laravel-plaud
Files in yannelli/laravel-plaud
Package laravel-plaud
Short Description Unofficial Laravel package for the Plaud API - manage recordings, transcriptions, and summaries
License MIT
Rated 5.00 based on 1 reviews
Informations about the package laravel-plaud
Laravel Plaud API Package
An unofficial Laravel package for the Plaud API. This package provides a clean, Laravel-idiomatic interface for managing recordings, transcriptions, and summaries from the Plaud platform.
Plaud does not publish a general-purpose public API for consumer accounts. This library talks to the same api.plaud.ai (and regional) hosts the web app uses. Those endpoints change without notice.
Features
- Email/password login, email OTP login, and pasted bearer tokens
- User token (UT) vs workspace token (WT) helpers, including workspace minting
- Regional API hosts (US/global, EU, APAC) with automatic
-302redirects - List, filter, upload, and manage recordings
- Download audio, transcripts, and summaries
- Start / poll / save cloud transcription (
/ai/transsumm,PATCH /file/{id}) - Speakers, devices, workspaces, file tags, and share links
- Laravel HTTP client integration with browser-like headers and 429 retries
- Facade support, deferred service provider, type-safe models
- PHP 8.2–8.5 and Laravel 12 / 13
Requirements
- PHP 8.2 or higher (Laravel 13 requires PHP 8.3+)
- Laravel 12.x or 13.x
- Guzzle HTTP client 7.9+ or 8.x
Installation
Install the package via Composer:
Publish Configuration (Optional)
You can publish the configuration file if you want to customize it:
This will create a config/plaud.php file in your Laravel application.
Environment Configuration
Usage
Authentication
Plaud currently issues two kinds of JWT, and newer web sessions may not put a token in the JSON body at all.
| Credential | Where it shows up | Lifetime | Use |
|---|---|---|---|
| User token (UT) | localStorage.pld_tokenstr, cookie pld_ut, OTP/password login |
days to ~months | Identity, minting WTs. Store this. |
| Workspace token (WT) | Authorization on /file/simple/web and /device/list |
~24h | Data endpoints. Claims include ut_ref / wid. Do not paste this as your long-lived secret — it cannot mint a replacement. |
Refresh cookie pld_urt |
Set-Cookie on v3 login | ~30 days | POST /auth/refresh-user-token only |
Plaud::isUsingWorkspaceToken() is true when the current Bearer has WT claims.
Email + password
Still works for accounts that have a Plaud password (SSO-only accounts must set one first, or use OTP / a pasted UT).
Some v3 logins return an empty access_token and put the session in pld_ut / pld_urt cookies. The client captures those cookies and will refresh on 401 when PLAUD_REFRESH_TOKEN (or a captured pld_urt) is present.
Password login is not ECIES-encrypted in this package. If Plaud starts rejecting plaintext /auth/access-token for your account, use OTP or paste a UT from the web app.
Email OTP (recommended for SSO)
OTP send follows regional -302 redirects (data.domains.api).
Pasted token from web.plaud.ai
- Sign in at web.plaud.ai
- Copy
pld_tokenstrfrom localStorage (UT), not the Bearer on/file/simple/web(usually a WT) - Set
PLAUD_ACCESS_TOKEN/PLAUD_USER_TOKEN
Then mint a WT if data calls require one:
Regional hosts
Accounts are sharded. The client defaults to https://api.plaud.ai, maps a JWT region claim when the host is still the discovery URL, and retries once when the body is status: -302 with data.domains.api.
Known hosts include api.plaud.ai (global/US), api-euc1.plaud.ai (EU), and api-apse1.plaud.ai (APAC), plus other api-*.plaud.ai names derived from AWS region claims.
Using Dependency Injection
You can also use dependency injection instead of the facade:
Get User Information
Get System Status
Retrieve Recordings
Get All Recordings
Get Recordings with Filters
Get Specific Recordings by ID
File Tags (Folders)
Create Shareable Links
Download Files
Download Audio File
Download Transcript
Download Summary
Manage Recordings
Move to Trash
Restore from Trash
Permanently Delete
Upload an audio file
Transcription and AI
Speakers, devices, workspaces
Available File Types
The package provides a FileTypes constant class with the following supported formats:
Error Handling
The package throws PlaudException for API errors:
Advanced Usage
Using the Low-Level Client
If you need more control, you can use the PlaudClient directly:
Accessing the Client from the Service
Available Methods
PlaudService Methods
| Method | Description |
|---|---|
authenticate($username, $password) |
Email + password login (POST /auth/access-token) |
sendOtpCode($email) |
Email a one-time code (POST /auth/otp-send-code) |
otpLogin($code, $otpToken) |
Finish OTP login (POST /auth/otp-login) |
refreshUserToken() |
Refresh a v3 cookie session |
getWorkspaces() |
List workspaces (GET /team-app/workspaces/list) |
useWorkspace($id) |
Mint a WT (POST /user-app/auth/workspace/token/{id}) |
isUsingWorkspaceToken() |
Whether the current Bearer is a WT |
getMyUser() |
Current user (GET /user/me) |
getStatus() |
Processing status (GET /ai/status) |
getAllRecordings() |
List recordings (GET /file/simple/web) |
getRecordingsWithFilter(...) |
List with skip/limit/trash/sort/tag filters |
getSpecificRecordings($ids) |
Batch detail (POST /file/list with a JSON array of IDs) |
getRecording($id) |
Single detail (GET /file/detail/{id}, falls back to POST /file/list) |
updateRecording($id, $attributes) |
Patch metadata (PATCH /file/{id}) |
renameRecording($id, $filename) |
Rename a recording |
setRecordingTags($id, $tagIds) |
Replace filetag_id_list on a recording |
getFileTags() |
Folders (GET /filetag/) |
createFileTag($name, $color, $icon) |
Create a folder (POST /filetag/) |
deleteFileTag($id) |
Delete a folder (DELETE /filetag/{id}) |
getRecordingsByTag($id) |
List recordings in a folder |
createShareableLink($id, $permissions) |
Create share URL |
getPrivateShare($id) / getPublicShare($id) |
Existing share payloads |
getAudioTempUrl($id) |
Presigned audio URL (GET /file/temp-url/{id}) |
downloadAudioFile($id) |
Audio as base64 via temp URL |
downloadAudioDirect($id) |
Audio as base64 via GET /file/download/{id} |
downloadTranscriptFile($id, $type) |
Export transcript as base64 |
downloadSummaryFile($id, $type) |
Export summary as base64 |
startAnalysis($id, $language) |
PATCH /file/{id} with tranConfig |
getTranssumm($id, ...) |
POST /ai/transsumm/{id} |
getFileTaskStatus($id) |
GET /ai/file-task-status |
getAiNotes($id) |
GET /ai/query_note |
saveAnalysisResults($id, $result) |
Persist transsumm output |
getSpeakers() |
GET /speaker/list |
getSpeakersForRecording($id) |
Unique names in a transcript |
renameSpeaker($id, $old, $new) |
Patch trans_result speaker labels |
getDevices() |
GET /device/list |
uploadRecording($path, $name) |
Presign → S3 PUT (all parts) → merge → confirm |
trashRecordings($ids) |
Move recordings to trash |
untrashRecordings($ids) |
Restore recordings from trash |
permanentlyDeleteRecordings($ids) |
Permanently delete recordings |
setAccessToken / setRegion / setBaseUrl |
Client configuration |
Unofficial API coverage
Cross-checked in September 2026 against recent unofficial clients (including arbuzmell/plaud-api, sergivalverde/plaud-toolkit, giovi321/plaud-unofficial-api, jaisonerick/plaud-cli, leonardsellem/n8n-nodes-plaud-unofficial, leonardsellem/plaud-sync-for-obsidian, and riffado/riffado).
Implemented here
- Auth:
/auth/access-token,/auth/otp-send-code,/auth/otp-login,/auth/refresh-user-token - Workspaces:
/team-app/workspaces/list,/user-app/auth/workspace/token/{id} - Files:
/file/simple/web,/file/list,/file/detail/{id},PATCH /file/{id},/file/temp-url/{id},/file/download/{id}, trash/untrash/delete, document export, share URL - Upload:
/file/get_upload_presigned_url,/file/merge_multipart,/file/confirm_upload(every presigned part is PUT, not only the first) - Tags:
GET/POST /filetag/,DELETE /filetag/{id}, assign tags withPATCH /file/{id}filetag_id_list - AI:
/ai/status,/ai/transsumm/{id},/ai/file-task-status,/ai/query_note - Other:
/user/me,/speaker/list,/device/list,/share/private/get,/share/public/get - Client behaviour: regional
-302follow, JWTregionrouting, browserUser-Agent, 429 retry, v3pld_ut/pld_urtcookies, leftover negative APIstatustreated as an error
Still different from some other clients (not implemented)
- ECIES-encrypted password login (
GET /config/security+ secp256k1 seal used by plaud-cli) - WebSocket device streams
/speaker/sync(present as a constant in arbuzmell/plaud-api; request body is not documented in recent clients)- Plaud's official MCP/CLI at docs.plaud.ai (
platform.plaud.ai/developer/api) — a separate product from this unofficial web API
Live traffic from a Plaud web session is still the best way to confirm an account's exact host and token scheme. This refresh did not replay a live web.plaud.ai session (no account credentials were available). Web-app access can be used to validate anything that still 401s or 403s.
Testing
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
Security
If you discover any security-related issues, please email the package maintainer instead of using the issue tracker.
Credits
- Original .NET library: JamesStuder/Plaud_API
- Laravel package maintainer: Ryan Yannelli
- Recent unofficial clients used to map endpoint drift (2026): arbuzmell/plaud-api, sergivalverde/plaud-toolkit, giovi321/plaud-unofficial-api, jaisonerick/plaud-cli, leonardsellem/n8n-nodes-plaud-unofficial, leonardsellem/plaud-sync-for-obsidian, riffado/riffado
License
The MIT License (MIT). Please see License File for more information.
Disclaimer
This is an unofficial package and is not affiliated with, maintained, or endorsed by Plaud. Use at your own risk.
All versions of laravel-plaud with dependencies
illuminate/support Version ^12.0|^13.0
illuminate/http Version ^12.0|^13.0
guzzlehttp/guzzle Version ^7.9|^8.0