## Get Status `client.messages.getStatus(MessageGetStatusParamsquery, RequestOptionsoptions?): MessageResponse` **get** `/api/status` Retrieve the current status of a message using its message handle. Useful for resolving pending message statuses and avoiding duplicate messages. ### Parameters - `query: MessageGetStatusParams` - `handle: string` The message handle of the message you want to check status for ### Returns - `MessageResponse` - `account_email?: string` Email of the account that sent the message - `content?: string` Message content - `date_created?: string` When the message was created - `date_updated?: string` When the message was last updated - `error_code?: number` Numeric error code if message failed - `error_message?: string` Error message if message failed - `from_number?: string` Sending phone number - `is_outbound?: boolean` Whether this is an outbound message - `media_url?: string` URL of attached media - `message_handle?: string` Unique identifier for tracking the message - `number?: string` Recipient phone number - `send_style?: "celebration" | "shooting_star" | "fireworks" | 10 more` The iMessage expressive message style - `"celebration"` - `"shooting_star"` - `"fireworks"` - `"lasers"` - `"love"` - `"confetti"` - `"balloons"` - `"spotlight"` - `"echo"` - `"invisible"` - `"gentle"` - `"loud"` - `"slam"` - `status?: "QUEUED" | "SENT" | "DELIVERED" | "ERROR"` - `"QUEUED"` - `"SENT"` - `"DELIVERED"` - `"ERROR"` ### Example ```typescript import SendblueAPI from 'sendblue'; const client = new SendblueAPI({ apiKey: process.env['SENDBLUE_API_API_KEY'], // This is the default and can be omitted apiSecret: process.env['SENDBLUE_API_API_SECRET'], // This is the default and can be omitted }); const messageResponse = await client.messages.getStatus({ handle: 'msg_abc123def456' }); console.log(messageResponse.account_email); ```