Log in to Freesound

Problems logging in?
Don't have an account? Join now

Problems logging in?

Enter your email or username below and we'll send you a link to help you login into your account.

Back to log in

Almost there!

We've sent a verification link by email

Didn't receive the email? Check your Spam folder, it may have been caught by a filter. If you still don't see it, you can resend the verification email.

Default title

  • Sounds
  • Tags
  • Forum
  • Map
    • Sounds
    • Packs
    • Forum
    • Map
    • Tags
    • Random sound
    • Charts
    • Donate
    • Help

Freesound Forums

  • Freesound Forums
  • Bug Reports, Errors and Feature Requests
  • Cannot use /me endpoint

Cannot use /me endpoint

Subscribe

Started March 6th, 2022 · 1 reply · Latest reply by junodenizen 4 years ago

J
junodenizen

1 sound

4 posts

4 years ago Edited: 3 years, 11 months ago
#1

Hi I have built an app to search and save sounds from Freesound.org. I'm trying to get the username of the user once they have logged in. The app makes a get request to https://freesound.org/apiv2/me with "Authorization: Bearer [access_token]", where [access_token] is the access_token I get when the user logs in using OAuth2. Every time I do this, the response is a 401 error. It says “detail: Authentication credentials were not provided."

I know that my access_token is valid, because I can download files with it using the https://freesound.org/apiv2/sounds/[soundID]/download endpoint. My access_token works to do that.

I can only assume this is a bug. If it's not a bug, can anyone point me at a piece of code, or command line tool that uses the /me endpoint successfully?

Here's a link to my app. Use it!
https://apps.apple.com/us/app/freesound-safari/id1610644893

Edit: Okay I added a slash at the end of the URL (https://freesound.org/apiv2/me/) and now it’s working.

Post reply
About Freesound Terms of use Privacy Cookies Developers Help Donations Blog Freesound Labs Get your t-shirt!
© 2026 Universitat Pompeu Fabra