# MailSlurp\ExpiredControllerApi

All URIs are relative to https://api.mailslurp.com

Method HTTP request Description
GetExpirationDefaults Get /expired/defaults Get default expiration settings
GetExpiredInboxByInboxId Get /expired/inbox/{inboxId} Get expired inbox record for a previously existing inbox
GetExpiredInboxRecord Get /expired/{expiredId} Get an expired inbox record
GetExpiredInboxes Get /expired List records of expired inboxes

# GetExpirationDefaults

ExpirationDefaults GetExpirationDefaults(ctx, )

Get default expiration settings

Return default times used for inbox expiration

# Required Parameters

This endpoint does not need any parameter.

# Return type

ExpirationDefaults

# Authorization

API_KEY

# HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

# GetExpiredInboxByInboxId

ExpiredInboxDto GetExpiredInboxByInboxId(ctx, inboxId)

Get expired inbox record for a previously existing inbox

Use the inboxId to return an ExpiredInboxRecord if an inbox has expired. Inboxes expire and are disabled if an expiration date is set or plan requires. Returns 404 if no expired inbox is found for the inboxId

# Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
inboxId string ID of inbox you want to retrieve (not the inbox ID)

# Return type

ExpiredInboxDto

# Authorization

API_KEY

# HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

# GetExpiredInboxRecord

ExpiredInboxDto GetExpiredInboxRecord(ctx, expiredId)

Get an expired inbox record

Inboxes created with an expiration date will expire after the given date and be moved to an ExpiredInbox entity. You can still read emails in the inbox but it can no longer send or receive emails. Fetch the expired inboxes to view the old inboxes properties

# Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
expiredId string ID of the ExpiredInboxRecord you want to retrieve. This is different from the ID of the inbox you are interested in. See other methods for getting ExpiredInboxRecord for an inbox inboxId)

# Return type

ExpiredInboxDto

# Authorization

API_KEY

# HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

# GetExpiredInboxes

PageExpiredInboxRecordProjection GetExpiredInboxes(ctx, optional)

List records of expired inboxes

Inboxes created with an expiration date will expire after the given date. An ExpiredInboxRecord is created that records the inboxes old ID and email address. You can still read emails in the inbox (using the inboxes old ID) but the email address associated with the inbox can no longer send or receive emails. Fetch expired inbox records to view the old inboxes properties

# Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
optional *GetExpiredInboxesOpts optional parameters nil if no parameters

# Optional Parameters

Optional parameters are passed through a pointer to a GetExpiredInboxesOpts struct

Name Type Description Notes
page optional.Int32 Optional page index in inbox sent email list pagination [default to 0]
size optional.Int32 Optional page size in inbox sent email list pagination [default to 20]
sort optional.String Optional createdAt sort direction ASC or DESC [default to ASC]

# Return type

PageExpiredInboxRecordProjection

# Authorization

API_KEY

# HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]