# What changed from v1

If you are moving from v1, five things differ:
- **Authentication.**
 v1 sends the client key in a
`client_key`
 header

and signs the body with the secret key. v2 sends the client key in

`X-Dime-Client`
 and the secret key as
`Authorization: Bearer`
. See

**Authentication**
.
- **Plain JSON.**
 v1 signs the request body as a JWT and wraps it in a

`data`
 field. v2 takes the body directly. Sending
`data`
 is rejected.
- **No envelope.**
 v1 returns
`{ statusCode, headers, body }`
. v2 returns

the resource at the top level.
- **One error shape.**
 Every failure returns a single
`error`
 object with a

`type`
,
`code`
,
`message`
, and often the offending
`param`
.
- **Registered webhooks.**
 Register a URL once with

`POST /webhook-endpoints`
 to receive events for your account. Every

delivery is signed, and you can review and replay deliveries. See

**Webhooks**
.

v1 is unchanged and continues to work.

