API Design · Senior · Question 49 of 75

Why should an API avoid sequential, guessable identifiers for sensitive resources even with authorization in place?

Explanation

Opaque IDs are an extra layer, never a replacement for authorization.

Further reading

Problem with a question

API Design · Senior · question 49

Test yourself

Take the API Design · Senior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz