{ "opencollection": "1.0.0", "info": { "name": "MagicBell apns teams API", "version": "2.0.0" }, "items": [ { "info": { "name": "teams", "type": "folder" }, "items": [ { "info": { "name": "get_teams_tokens", "type": "http" }, "http": { "method": "GET", "url": "https://api.magicbell.com/v2/channels/teams/tokens", "params": [ { "name": "page[size]", "value": "", "type": "query" }, { "name": "page[after]", "value": "", "type": "query" }, { "name": "page[before]", "value": "", "type": "query" } ] }, "docs": "Lists all teams tokens belonging to the authenticated user. Returns a paginated list of tokens, including their status, creation dates, and associated metadata." }, { "info": { "name": "save_teams_token", "type": "http" }, "http": { "method": "POST", "url": "https://api.magicbell.com/v2/channels/teams/tokens", "body": { "type": "json", "data": "{}" } }, "docs": "Saves a teams token for the authenticated user. This token serves as a credential for accessing channel-specific functionality. Each token is unique to the user and channel combination, allowing for direct communication with the user via the channel." }, { "info": { "name": "get_teams_token", "type": "http" }, "http": { "method": "GET", "url": "https://api.magicbell.com/v2/channels/teams/tokens/:token_id", "params": [ { "name": "token_id", "value": "", "type": "path" } ] }, "docs": "Retrieves details of a specific teams token belonging to the authenticated user. Returns information about the token's status, creation date, and any associated metadata. Users can only access their own tokens." }, { "info": { "name": "discard_teams_token", "type": "http" }, "http": { "method": "DELETE", "url": "https://api.magicbell.com/v2/channels/teams/tokens/:token_id", "params": [ { "name": "token_id", "value": "", "type": "path" } ] }, "docs": "Revokes one of the authenticated user's teams tokens. This permanently invalidates the specified token, preventing it from being used for future channel access. This action cannot be undone. Users can only revoke their own tokens." }, { "info": { "name": "get_teams_user_tokens", "type": "http" }, "http": { "method": "GET", "url": "https://api.magicbell.com/v2/users/:user_id/channels/teams/tokens", "params": [ { "name": "user_id", "value": "", "type": "path" }, { "name": "page[size]", "value": "", "type": "query" }, { "name": "page[after]", "value": "", "type": "query" }, { "name": "page[before]", "value": "", "type": "query" } ] }, "docs": "Lists all teams tokens associated with a specific user. This endpoint is available to project administrators and returns a paginated list of tokens, including both active and revoked tokens." }, { "info": { "name": "get_teams_user_token", "type": "http" }, "http": { "method": "GET", "url": "https://api.magicbell.com/v2/users/:user_id/channels/teams/tokens/:token_id", "params": [ { "name": "user_id", "value": "", "type": "path" }, { "name": "token_id", "value": "", "type": "path" } ] }, "docs": "Retrieves a specific teams token by its ID for a given user. This endpoint is available to project administrators and requires project-level authentication. Use this to inspect token details including its status, creation date, and associated metadata." }, { "info": { "name": "discard_teams_user_token", "type": "http" }, "http": { "method": "DELETE", "url": "https://api.magicbell.com/v2/users/:user_id/channels/teams/tokens/:token_id", "params": [ { "name": "user_id", "value": "", "type": "path" }, { "name": "token_id", "value": "", "type": "path" } ] }, "docs": "Revokes a specific user's teams token. This endpoint is available to project administrators and permanently invalidates the specified token. Once revoked, the token can no longer be used to access channel features. This action cannot be undone." } ] } ], "bundled": true }