Token issue with FE2

Big fan of the new naming system and the nested branching.

Has the speckle API been changed to interact with the new front end? I’ve been using the following code with a new token from the FE2 but I can’t get the account from token, any suggestions would be much appreciated.

speckleServer = “speckle.systems”
api_token = “”
server_url = ‘https://latest.speckle.systems
client = SpeckleClient(host=speckleServer)

authenticate the client with a token

account = get_account_from_token(api_token, server_url)
client.authenticate_with_account(account)
branch_id = client.branch.create(f"{stream_id}", “new_model”, “new model description”)

Thanks,

Ed

1 Like

Hey Ed, welcome to the forum!

No breaking API changes have been introduced as part of the rename; all the existing endpoints and SDKs should keep working for the foreseeable future.

What error are you getting? Does the token have the required scopes?
Does it work if you use https://latest.speckle.dev/ instead (same test server but using the old frontend)?

3 Likes

Thanks for the help Matteo; that has resolved the issue

2 Likes