Need help with your APIs? I offer API discovery, governance & evangelism services. Explore services →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

Zeplin Spacing API

The Spacing API from Zeplin — 6 operation(s) for spacing.

Zeplin Spacing API is one of 16 APIs that Zeplin publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

Tagged areas include Spacing. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, authentication docs, and rate-limit docs.

This API exposes 6 operations across 6 paths, and defines 9 schemas. It is described by OpenAPI 3.0.2, at version 1.38.0.

Requests are made against a single base URL, https://api.zeplin.dev.

6 operations 6 paths 9 schemas 4 GET2 PATCH

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.0.2
API Version
1.38.0
Base URL
https://api.zeplin.io
Authentication
OAuth 2.0, HTTP Bearer
Contact
Resource Areas
1

Authentication & Security 2

Zeplin Spacing API declares 2 security schemes for authenticating requests. It supports OAuth 2.0 (OAuth2) using the authorizationCode flow. It accepts HTTP bearer tokens (JWT) (PersonalAccessToken). By default, every request must be authenticated.

Paths & Operations 6

Across 6 paths, the API surfaces 6 operations — 4 GET, 2 PATCH. Each is listed below with its method, path, parameters, and response codes.

Spacing 6
GET
/v1/projects/{project_id}/spacing_tokens
Get spacing tokens of the project
GetProjectSpacingTokens 4 params → 200404422
PATCH
/v1/projects/{project_id}/spacing_tokens/{spacing_token_id}
Update project spacing token
UpdateProjectSpacingToken 2 params body → 204403404422
GET
/v1/projects/{project_id}/spacing_sections
Get spacing sections of the project
GetProjectSpacingSections 3 params → 200404422
GET
/v1/styleguides/{styleguide_id}/spacing_tokens
Get spacing tokens of the styleguide
GetStyleguideSpacingTokens 6 params → 200404422
PATCH
/v1/styleguides/{styleguide_id}/spacing_tokens/{spacing_token_id}
Update styleguide spacing token
UpdateStyleguideSpacingToken 2 params body → 204403404422
GET
/v1/styleguides/{styleguide_id}/spacing_sections
Get spacing sections of the styleguide
GetStyleguideSpacingSections 5 params → 200404422

Schemas 9

The contract defines 9 schemas that model the data the API accepts and returns. The most detailed are SpacingToken (6 properties), SpacingSection (4 properties), SpacingTokenColor (4 properties), ResourceProjectSource (4 properties). Each schema is shown below with its type and property counts.

SpacingSection
object
4 properties 3 required
ResourceProjectSource
object
The source project of the resource
4 properties 3 required
SpacingTokenUpdateBody
object
2 properties
EntityReference
object
1 property 1 required
ErrorResponse
object
3 properties 1 required
ResourceSource
object
Source details for resource. It has to be either project or styleguide.
2 properties
SpacingTokenColor
object
4 properties 4 required
SpacingToken
object
6 properties 5 required
ResourceStyleguideSource
object
The source styleguide of the resource
4 properties 3 required

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

zeplin-spacing-api-openapi.yml Raw ↑

Other APIs Zeplin publishes across the network.

Zeplin Authorization API
Zeplin Colors API
Zeplin Components API
Zeplin Connected Components API
Zeplin Design Tokens API
Zeplin Flows API
Zeplin Notifications API
Zeplin Organizations API
Zeplin Projects API
Zeplin Screens API
Zeplin Styleguides API
Zeplin TextStyles API