SlideShare a Scribd company logo
SDK-first: the new
API-first?
Nordic APIs - 18/10/2023
Nolan Di Mare Sullivan
Head of developer relations at Speakeasy,
working to bring a first-class DevEx to every
company’s API.
Previously led product for LiveRamp’s API
Platform.
Here’s a pattern…
- Company launches an API initiative
as part of a platformization effort
- Makes important parts of their API
available publicly
Initiative starts with excitement
Then you run into problems
- Adoption has been slower than
hoped
- Integration takes a long time:
months, quarters.
What’s going on??
- Company launches an API initiative as part
of a platformization effort
- Makes important parts of their API available
publicly
- Adoption has been slower than hoped
- Integration takes a long time: months,
quarters.
Now Imagine…
A restaurant with fantastic food that doesn’t have
a front door.
Instead, potential customers climb through the
front window…
Today: API Integrations =
entering through the window
Read API
Docs
1
Identify the
relevant
endpoints
2
Curl API in
sequence to
check it
works
3
Write auth &
networking
boilerplate
4
Write
production
API calls
5
Expand API
usage for
new use
cases
10
Add retries,
pagination &
rate limiting
9
Write code
for error
handling.
8
Test &
debug
7
Parse & use
Response
data
6
The Solution: Become
SDK-first
API Integrations via SDK =
A beautiful front door
Install the
Package
1
Copy & paste
relevant code
snippets
2
Adjust
snippet for
your use
case
3
Test &
debug
4
Expand to
new use
cases
5
Some Social Proof
While everyone was busy becoming API-first,
Stripe became SDK-first…
How SDKs Help API Users
1. Reduce users time to ‘200’
2. Remove room for error
3. Supercharge your
documentation
Faster Time to 200? Provide the Boilerplate
- SDKs handle the tedious aspects of building API integrations for
your users:
- Authentication
- Networking Client Code
- They can also handle the features that support enterprise use
cases:
- Retries
- Pagination
- Rate Limiting
Eliminate Errors? Type Safety
- Type safety is the single best
tool you can give to your users
- In IDE hints make life 10x
better
- You’ll prevent runtime
errors
- SDKs make Co-Pilot even more
powerful
Unhelpful Docs? Add Usage Snippets
- If you build it, they will come doesn’t work for API Docs
- There’s nothing more tedious than having to meander through
technical references to find relevant API Details.
- Usage snippets are great, developers love to copy & paste, then
adjust as needed.
- Fetch commands are fine, but usage Snippets are even more
powerful when they’re linked with an official SDK.
How SDKs Help API Builders
For Internal Developers, SDKs are a great
communication interface.
- Share types natively between
teams.
- Package relevant APIs into custom
team-dependent generations.
- Track exact versions of an API for
client and server at time of
deployment.
How to Build an SDK
Strategy
Consistent
Idempotent
Backward Compatible
Documented
Versioned
Secure
Stable
Generalizable
S
i
m
p
l
e
Start with an API Strategy
Idiomatic
Layer 1 SDKs (HTTP Client)
- HTTP clients are a great first step in
your SDK strategy:
- They alleviate the pain of
writing boilerplate code.
- They dramatically reduce
errors
- They enhance usage with
enterprise features
- They enrich your docs
Layer 2 SDKs (API Client)
- Level 2 SDKs add in business logic that
lives outside the API itself.
- You chain together API primitives into
methods that are tailored to a specific
use case
They’re called layer 2 because they sit
on top of your HTTP client.
- Don’t build this until you’ve found PMF
with your API.
Generate your SDKs!
Thank You!
Email: nolan@speakeasyapi.dev
Linkedin: https://www.linkedin.com/in/nolan-dm-sullivan-010/
Phone: +44 7795-371694
Meet me outside!
Resources
Why SDKs ?
- Ebook: Supercharge your API
adoption
- Speakeasy feature week
Speakeasy v OpenAPI Generator:
- Typescript
- Go
- Python

More Related Content

PPTX
Documenting the Mobile API Development Process 2023.pptx
PPTX
OracleDeveloperMeetup - London 19-12-17
PDF
SlideShare Test-1
PDF
Creating compelling user experiences through APIs
PDF
Practical guide to building public APIs
PDF
Transform Your Operations with Cutting-Edge API Development Services.pdf
PDF
Simplifying the OpenAPI Development Experience
PDF
INTERFACE, by apidays - Lessons learned from implementing our custom ‘Big Da...
Documenting the Mobile API Development Process 2023.pptx
OracleDeveloperMeetup - London 19-12-17
SlideShare Test-1
Creating compelling user experiences through APIs
Practical guide to building public APIs
Transform Your Operations with Cutting-Edge API Development Services.pdf
Simplifying the OpenAPI Development Experience
INTERFACE, by apidays - Lessons learned from implementing our custom ‘Big Da...

Similar to From API-First to SDK-First (20)

PDF
React Native App Development in 2023-Tips to Practice.pdf
PDF
Why You Should Be Doing Contract-First API Development
PDF
apidays LIVE Paris 2021 - Low-Code API DevOps approach to API Lifecycle Manag...
PDF
Rebooting APIs at scale
PDF
Spec-first API Design for Speed and Safety
PDF
Clickslide Datadipity Beta V1
PPSX
APIs as a Product Strategy
PPTX
Building a REST API for Longevity
PDF
6 Best OpenAPI Documentation Tools that You must Know
PPTX
Creating Datadipity
PDF
Why big organizations like tesla, facebook, walmart, skype are using react na...
PPTX
My presentation at Grace Hopper Conference 2014, about Rewrite/Refactor with ...
PDF
Securely expose protected resources as ap is with app42 api gateway
PPTX
INF104 - HCL Domino AppDev Pack – The Future of Domino App Dev Nobody Knows A...
PDF
How AWS Mobile Services Providers Will Benefit From Amplify Studio_.pdf
PDF
To SDK or not to SDK?
PDF
Dev Learn Handout - Session 604
PDF
Meetup 2022 - API Gateway landscape.pdf
PDF
Mobile apps for web developers
PDF
APIs +Micro services technology for Computing
React Native App Development in 2023-Tips to Practice.pdf
Why You Should Be Doing Contract-First API Development
apidays LIVE Paris 2021 - Low-Code API DevOps approach to API Lifecycle Manag...
Rebooting APIs at scale
Spec-first API Design for Speed and Safety
Clickslide Datadipity Beta V1
APIs as a Product Strategy
Building a REST API for Longevity
6 Best OpenAPI Documentation Tools that You must Know
Creating Datadipity
Why big organizations like tesla, facebook, walmart, skype are using react na...
My presentation at Grace Hopper Conference 2014, about Rewrite/Refactor with ...
Securely expose protected resources as ap is with app42 api gateway
INF104 - HCL Domino AppDev Pack – The Future of Domino App Dev Nobody Knows A...
How AWS Mobile Services Providers Will Benefit From Amplify Studio_.pdf
To SDK or not to SDK?
Dev Learn Handout - Session 604
Meetup 2022 - API Gateway landscape.pdf
Mobile apps for web developers
APIs +Micro services technology for Computing
Ad

More from Nordic APIs (20)

PPTX
How to Choose the Right API Platform - We Have the Tool You Need! - Mikkel Iv...
PPTX
Bulletproof Backend Architecture: Building Adaptive Services with Self-Descri...
PDF
Implementing Zero Trust Security in API Gateway with Cilium - Pubudu Gunatila...
PPTX
Event-Driven Architecture the Cloud-Native Way - Manuel Ottlik, HDI Global SE
PPTX
Navigating the Post-OpenAPI Era with Innovative API Design Frameworks - Danie...
PDF
Using Typespec for Open Finance Standards - Chris Wood, Ozone API
PPTX
Schema-first API Design Using Typespec - Cailin Smith, Microsoft
PPTX
Avoiding APIpocalypse; API Resiliency Testing FTW! - Naresh Jain, Xnsio
PPTX
How to Build an Integration Platform with Open Source - Magnus Hedner, Benify
PPTX
API Design First in Practise – An Experience Report - Hari Krishnan, Specmatic
PPTX
The Right Kind of API – How To Choose Appropriate API Protocols and Data Form...
PPTX
Why Frequent API Hackathons Are Key to Product Market Feedback and Go-to-Mark...
PPTX
Maximizing API Management Efficiency: The Power of Shifting Down with APIOps ...
PPTX
APIs Vs Events - Bala Bairapaka, Sandvik AB
PPTX
GraphQL in the Post-Hype Era - Daniel Hervas, Reckon Digital
PPTX
From Good API Design to Secure Design - Axel Grosse, 42Crunch
PPTX
API Revolution in IoT: How Platform Engineering Streamlines API Development -...
PPTX
Unlocking the ROI of API Platforms: What Success Actually Looks Like - Budhad...
PDF
Increase Your Productivity with No-Code GraphQL Mocking - Hugo Guerrero, Red Hat
PPTX
Securely Boosting Any Product with Generative AI APIs - Ruben Sitbon, Theodo ...
How to Choose the Right API Platform - We Have the Tool You Need! - Mikkel Iv...
Bulletproof Backend Architecture: Building Adaptive Services with Self-Descri...
Implementing Zero Trust Security in API Gateway with Cilium - Pubudu Gunatila...
Event-Driven Architecture the Cloud-Native Way - Manuel Ottlik, HDI Global SE
Navigating the Post-OpenAPI Era with Innovative API Design Frameworks - Danie...
Using Typespec for Open Finance Standards - Chris Wood, Ozone API
Schema-first API Design Using Typespec - Cailin Smith, Microsoft
Avoiding APIpocalypse; API Resiliency Testing FTW! - Naresh Jain, Xnsio
How to Build an Integration Platform with Open Source - Magnus Hedner, Benify
API Design First in Practise – An Experience Report - Hari Krishnan, Specmatic
The Right Kind of API – How To Choose Appropriate API Protocols and Data Form...
Why Frequent API Hackathons Are Key to Product Market Feedback and Go-to-Mark...
Maximizing API Management Efficiency: The Power of Shifting Down with APIOps ...
APIs Vs Events - Bala Bairapaka, Sandvik AB
GraphQL in the Post-Hype Era - Daniel Hervas, Reckon Digital
From Good API Design to Secure Design - Axel Grosse, 42Crunch
API Revolution in IoT: How Platform Engineering Streamlines API Development -...
Unlocking the ROI of API Platforms: What Success Actually Looks Like - Budhad...
Increase Your Productivity with No-Code GraphQL Mocking - Hugo Guerrero, Red Hat
Securely Boosting Any Product with Generative AI APIs - Ruben Sitbon, Theodo ...
Ad

Recently uploaded (20)

PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PDF
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
KodekX | Application Modernization Development
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PDF
cuic standard and advanced reporting.pdf
PDF
Approach and Philosophy of On baking technology
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PDF
Network Security Unit 5.pdf for BCA BBA.
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
Encapsulation theory and applications.pdf
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
DOCX
The AUB Centre for AI in Media Proposal.docx
PDF
Machine learning based COVID-19 study performance prediction
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
Review of recent advances in non-invasive hemoglobin estimation
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
Encapsulation_ Review paper, used for researhc scholars
NewMind AI Weekly Chronicles - August'25 Week I
Chapter 3 Spatial Domain Image Processing.pdf
KodekX | Application Modernization Development
Building Integrated photovoltaic BIPV_UPV.pdf
cuic standard and advanced reporting.pdf
Approach and Philosophy of On baking technology
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
Network Security Unit 5.pdf for BCA BBA.
20250228 LYD VKU AI Blended-Learning.pptx
Encapsulation theory and applications.pdf
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
The AUB Centre for AI in Media Proposal.docx
Machine learning based COVID-19 study performance prediction
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
Per capita expenditure prediction using model stacking based on satellite ima...
Review of recent advances in non-invasive hemoglobin estimation
Mobile App Security Testing_ A Comprehensive Guide.pdf

From API-First to SDK-First

  • 2. Nolan Di Mare Sullivan Head of developer relations at Speakeasy, working to bring a first-class DevEx to every company’s API. Previously led product for LiveRamp’s API Platform.
  • 3. Here’s a pattern… - Company launches an API initiative as part of a platformization effort - Makes important parts of their API available publicly Initiative starts with excitement Then you run into problems - Adoption has been slower than hoped - Integration takes a long time: months, quarters. What’s going on?? - Company launches an API initiative as part of a platformization effort - Makes important parts of their API available publicly - Adoption has been slower than hoped - Integration takes a long time: months, quarters.
  • 4. Now Imagine… A restaurant with fantastic food that doesn’t have a front door. Instead, potential customers climb through the front window…
  • 5. Today: API Integrations = entering through the window Read API Docs 1 Identify the relevant endpoints 2 Curl API in sequence to check it works 3 Write auth & networking boilerplate 4 Write production API calls 5 Expand API usage for new use cases 10 Add retries, pagination & rate limiting 9 Write code for error handling. 8 Test & debug 7 Parse & use Response data 6
  • 7. API Integrations via SDK = A beautiful front door Install the Package 1 Copy & paste relevant code snippets 2 Adjust snippet for your use case 3 Test & debug 4 Expand to new use cases 5
  • 8. Some Social Proof While everyone was busy becoming API-first, Stripe became SDK-first…
  • 9. How SDKs Help API Users 1. Reduce users time to ‘200’ 2. Remove room for error 3. Supercharge your documentation
  • 10. Faster Time to 200? Provide the Boilerplate - SDKs handle the tedious aspects of building API integrations for your users: - Authentication - Networking Client Code - They can also handle the features that support enterprise use cases: - Retries - Pagination - Rate Limiting
  • 11. Eliminate Errors? Type Safety - Type safety is the single best tool you can give to your users - In IDE hints make life 10x better - You’ll prevent runtime errors - SDKs make Co-Pilot even more powerful
  • 12. Unhelpful Docs? Add Usage Snippets - If you build it, they will come doesn’t work for API Docs - There’s nothing more tedious than having to meander through technical references to find relevant API Details. - Usage snippets are great, developers love to copy & paste, then adjust as needed. - Fetch commands are fine, but usage Snippets are even more powerful when they’re linked with an official SDK.
  • 13. How SDKs Help API Builders For Internal Developers, SDKs are a great communication interface. - Share types natively between teams. - Package relevant APIs into custom team-dependent generations. - Track exact versions of an API for client and server at time of deployment.
  • 14. How to Build an SDK Strategy
  • 16. Layer 1 SDKs (HTTP Client) - HTTP clients are a great first step in your SDK strategy: - They alleviate the pain of writing boilerplate code. - They dramatically reduce errors - They enhance usage with enterprise features - They enrich your docs Layer 2 SDKs (API Client) - Level 2 SDKs add in business logic that lives outside the API itself. - You chain together API primitives into methods that are tailored to a specific use case They’re called layer 2 because they sit on top of your HTTP client. - Don’t build this until you’ve found PMF with your API. Generate your SDKs!
  • 17. Thank You! Email: nolan@speakeasyapi.dev Linkedin: https://www.linkedin.com/in/nolan-dm-sullivan-010/ Phone: +44 7795-371694 Meet me outside!
  • 18. Resources Why SDKs ? - Ebook: Supercharge your API adoption - Speakeasy feature week Speakeasy v OpenAPI Generator: - Typescript - Go - Python