Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Subaccount Ignored Using Main Account Authentication for TFV #785

Open
calebsyring opened this issue Apr 4, 2024 · 0 comments
Open

Subaccount Ignored Using Main Account Authentication for TFV #785

calebsyring opened this issue Apr 4, 2024 · 0 comments

Comments

@calebsyring
Copy link

Issue Summary

Using main account authentication to access toll-free verification info for a subaccount returns the results for the main account, ignoring the subaccount argument entirely

Steps to Reproduce

  1. Create a toll-free number on your main account
  2. Create a toll-free verification for the number on your main account
  3. Create a subaccount under the main account
  4. Create a toll-free number on the subaccount
  5. Note that using your subaccount sid as the third argument to Client and your main account sid and auth token as the first and second args allows you to fetch this number from the API
  6. Create a toll-free verification for the number on the subaccount
  7. Note that using your subaccount sid as the third argument to Client and your main account sid and auth token as the first and second args fetches the toll-free verification for the main account number, not the subaccount number!

Code Snippet

>>> from twilio.rest import Client
>>> Client(MAIN_ACCT_SID, MAIN_ACCT_TOKEN, SUBACCT_SID).incoming_phone_numbers.list()  # Shows subaccount numbers
>>> Client(MAIN_ACCT_SID, MAIN_ACCT_TOKEN, SUBACCT_SID).messaging.v1.tollfree_verifications.list()  # Shows main account toll-free verifications

Exception/Log

N/A

Technical details:

  • twilio-python version: 9.0.3
  • python version: Python 3.11.8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant