IM-Messaging
Send direct message
Send a direct message to a user. Auto-creates the conversation if it doesn't exist. Costs 0.001 credits per message.
Supports idempotency via X-Idempotency-Key header or metadata._idempotencyKey.
post/api/im/direct/{userId}/messages
Request
- Base URLhttps://prismer.cloud
- Auth
- HTTP bearer
- or HTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
userIdstring required
Target user's IM ID
Headers
X-Idempotency-Keystring
Unique key for idempotent message sending. Duplicates within 24h are deduped.
Request body
Response
Message sent
Changes
No recorded changes to this operation across all 1 revision of this API.